-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 3.6 breaks PyTorch #242
Comments
I believe there is something wrong with the Linux wheels. It can be reproduced in a
It's a similar issue with #243 that if |
I did some experiments on ubuntu:22.04 today. 1. Install the pre-built DEB packagescurl -O -L https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.0/deb-arm64/apache-pulsar-client-dev.deb
curl -O -L https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.0/deb-arm64/apache-pulsar-client.deb
apt install ./apache-pulsar-client*.deb Then building the pulsar-client-python libraries. cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j8
mv build/lib_pulsar.so .
./setup.py bdist_wheel
python3 -m pip install dist/pulsar_client-3.6.0-cp310-cp310-linux_aarch64.whl --force-reinstall
python3 -c 'import pulsar; import torch' It works well. 2. Build pulsar-client-cpp from source# With the pulsar-client-cpp-3.7.0 source code
cmake -B build-cpp -DINTEGRATE_VCPKG=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DBUILD_DYNAMIC_LIB=ON -DBUILD_STATIC_LIB=ON
cmake --build build-cpp -j8 --target install Then repeat the steps in the previous section. Now it will crash with "Segmentation fault". |
The difference might be that the pre-built library ( root@0008eeb7c08f:~/pulsar-client-python-3.6.0# ldd /usr/lib/libpulsar.so
linux-vdso.so.1 (0x0000ffff9591f000)
libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000ffff958d0000)
librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000ffff958b0000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000ffff94d60000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000ffff95890000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff94bb0000)
/lib/ld-linux-aarch64.so.1 (0x0000ffff958e6000)
root@0008eeb7c08f:~/pulsar-client-python-3.6.0# ldd /usr/local/lib/libpulsar.so
linux-vdso.so.1 (0x0000ffffb6cd4000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffffb6af0000)
/lib/ld-linux-aarch64.so.1 (0x0000ffffb6c9b000) |
When installing both torch (any version, tested with 2.5, 2.4 and 2.3) and pulsar-client==3.6.0, a crash is caused by the following code:
Output:
free(): invalid pointer
[1] 107824 IOT instruction (core dumped)
The same crash is not present when using pulsar-client==3.5.0. The imports work normally.
The text was updated successfully, but these errors were encountered: