Closed bgeltz closed 6 months ago
thanks for reporting the issue, I was able to reproduce it, this seems specific to having mercury compiled with support for dynamic plugins (which is the default for mercury rpms). Looking into a fix now.
fix was merged, I'll propagate the fix into the mercury-2.3.1-3 rpm as well.
Thanks! Much appreciated.
Was this fix ever propagated into mercury-2.3.1-3? If yes, where are those RPMs available?
it was internally but I'm not sure you'll be able to see it until a new release of DAOS is made because of the SDL process. Which repo are you using for your rpms ?
That's a great question. Let me chase this internally and see what I can figure out. Thanks!
Describe the bug When using Python and CFFI to dlopen any library that has a dependency on
libmercury.so.2
, a segfault occurs when Python exits, pointing tolibmercury_util.so.4
.To Reproduce
zypper install python3-cffi
zypper install mercury mercury-devel
gffi = cffi.FFI() dl_mercury = gffi.dlopen('libmercury.so.2')
$ python3 repro.py Segmentation fault (core dumped)
0 0x000014ffd1989a50 n/a (libmercury_util.so.4 + 0x3a50)
1 0x000014ffd242e843 _dl_fini (ld-linux-x86-64.so.2 + 0x11843)
2 0x000014ffd1f54a99 __run_exit_handlers (libc.so.6 + 0x4da99)
3 0x000014ffd1f54c2a exit (libc.so.6 + 0x4dc2a)
4 0x000014ffd1f3c254 __libc_start_main (libc.so.6 + 0x35254)
5 0x000055d2ebe61d5a _start (python3.6 + 0xd5a)