BewareMyPower commented on issue #242:
URL:
https://github.com/apache/pulsar-client-python/issues/242#issuecomment-2630624924
I believe there is something wrong with the Linux wheels. It can be
reproduced in a `ubuntu:22.04` container with Python 3.10.
```
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x0000fffff7d825d4 in __pthread_once_slow (once_control=0xfffff47dfc78
<dnnl::impl::cpu::aarch64::acl_thread_utils::acl_thread_bind()::flag_once>,
init_routine=0xfffff64d1e60 <__once_proxy>) at ./nptl/pthread_once.c:116
#2 0x0000fffff1d1e700 in
dnnl::impl::cpu::aarch64::acl_thread_utils::set_acl_threading() ()
from /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cpu.so
#3 0x0000fffff12068d4 in dnnl_engine_create () from
/usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cpu.so
#4 0x0000ffffece70668 in ideep::engine::cpu_engine() () from
/usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cpu.so
#5 0x0000ffffec45cbb4 in _GLOBAL__sub_I_IDeepRegistration.cpp () from
/usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cpu.so
#6 0x0000fffff7fc7624 in call_init (env=0xaaaaab061c20,
argv=0xfffffffff698, argc=2, l=<optimized out>) at ./elf/dl-init.c:70
#7 call_init (l=<optimized out>, argc=2, argv=0xfffffffff698,
env=0xaaaaab061c20) at ./elf/dl-init.c:26
#8 0x0000fffff7fc772c in _dl_init (main_map=0xaaaaab2dff90, argc=2,
argv=0xfffffffff698, env=0xaaaaab061c20) at ./elf/dl-init.c:117
#9 0x0000fffff7e2d360 in __GI__dl_catch_exception (exception=0x0,
operate=0xfffff7fcdd20 <call_dl_init>, args=0xffffffffcb10)
at ./elf/dl-error-skeleton.c:182
#10 0x0000fffff7fcdf5c in dl_open_worker (a=a@entry=0xffffffffcd58) at
./elf/dl-open.c:808
#11 0x0000fffff7e2d308 in __GI__dl_catch_exception
(exception=0xffffffffcd40, operate=0xfffff7fcdeb4 <dl_open_worker>,
args=0xffffffffcd58)
at ./elf/dl-error-skeleton.c:208
#12 0x0000fffff7fce2fc in _dl_open (file=0xfffff66fbed0
"/usr/local/lib/python3.10/dist-packages/torch/_C.cpython-310-aarch64-linux-gnu.so",
mode=-2147483646, caller_dlopen=0xaaaaaacc2780, nsid=-2, argc=2,
argv=0xfffffffff698, env=0xaaaaab061c20) at ./elf/dl-open.c:883
#13 0x0000fffff7d796e4 in dlopen_doit (a=a@entry=0xffffffffd048) at
./dlfcn/dlopen.c:56
#14 0x0000fffff7e2d308 in __GI__dl_catch_exception
(exception=exception@entry=0xffffffffcfa0, operate=0xfffff7d79680
<dlopen_doit>, args=0xffffffffd048)
at ./elf/dl-error-skeleton.c:208
#15 0x0000fffff7e2d3d0 in __GI__dl_catch_error (objname=0xffffffffd018,
errstring=0xffffffffd020, mallocedp=0xffffffffd017, operate=<optimized out>,
args=<optimized out>) at ./elf/dl-error-skeleton.c:227
#16 0x0000fffff7d791c0 in _dlerror_run (operate=operate@entry=0xfffff7d79680
<dlopen_doit>, args=args@entry=0xffffffffd048) at ./dlfcn/dlerror.c:138
#17 0x0000fffff7d79784 in dlopen_implementation (dl_caller=<optimized out>,
mode=<optimized out>, file=<optimized out>) at ./dlfcn/dlopen.c:71
#18 ___dlopen (file=<optimized out>, mode=<optimized out>) at
./dlfcn/dlopen.c:81
```
It's a similar issue with
https://github.com/apache/pulsar-client-python/issues/243 that if `torch` is
imported first, the segmentation fault won't happen. /cc @lhcorralo This issue
might be related to the recent change to how the Linux wheels are built. I will
check it in details when I'm back to work a few days later.
https://github.com/apache/pulsar-client-python/pull/235
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]