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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To freswa (frederik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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]
Comment by Jan Alexander Steffens (heftig) - Wednesday, 23 February 2022, 16:50 GMT Comment by Hussam Al-Tayeb (hussam) - Thursday, 24 February 2022, 18:22 GMT
The patch in https://sourceware.org/bugzilla/show_bug.cgi?id=28868 fixes the issue for me.
Comment by freswa (frederik) - Thursday, 24 February 2022, 19:30 GMT
I'll wait for the fix to be commited.
Comment by freswa (frederik) - Thursday, 05 May 2022, 23:31 GMT
I've just commited a patch which will be part of the next glibc build when gcc 12.1 is out.

Loading...