FS#73938 - [glibc] ldd crashes when it can't find libjvm.so
Attached to Project:
Arch Linux
Opened by Hussam Al-Tayeb (hussam) - Wednesday, 23 February 2022, 16:46 GMT
Last edited by freswa (frederik) - Monday, 09 May 2022, 20:58 GMT
Opened by Hussam Al-Tayeb (hussam) - Wednesday, 23 February 2022, 16:46 GMT
Last edited by freswa (frederik) - Monday, 09 May 2022, 20:58 GMT
|
Details
ldd /usr/lib/jvm/default-runtime/lib/libnio.so returns
nothing and instead segfaults.
LD_LIBRARY_PATH=/usr/lib/jvm/default-runtime/lib/server ldd /usr/lib/jvm/default-runtime/lib/libnio.so avoids the segfault. I tried archlinux's jdk, adoptium eclipse jdk, oracle jdk, and many other jdk flavors. I even compiled openjdk myself. all result in a same issue. This was not an issue in previous versions of glibc. lddd doesn't show similar crashes in ld.so for any other installed package. I tested by running lddd with and without jdk installed. |
This task depends upon
Closed by freswa (frederik)
Monday, 09 May 2022, 20:58 GMT
Reason for closing: Fixed
Additional comments about closing: glibc-2.35-4 in [testing]
Monday, 09 May 2022, 20:58 GMT
Reason for closing: Fixed
Additional comments about closing: glibc-2.35-4 in [testing]

This was also filed upstream:
https://sourceware.org/bugzilla/show_bug.cgi?id=28920

The patch in
https://sourceware.org/bugzilla/show_bug.cgi?id=28868
fixes the issue for me.

I'll wait for the fix to be commited.

I've just commited a patch which will be part of the next glibc
build when gcc 12.1 is out.