Bug 237748

Summary: Java (and other) software crashes when prelink is disabled or /etc/ld.so.cache exists.
Product: Red Hat Enterprise Linux 5 Reporter: Rik Theys <rik.theys>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: jakub, k.georgiou
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-20 12:53:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rik Theys 2007-04-25 08:18:36 UTC
Description of problem: software (such as Matlab, but also simple java code)
that uses java crashes on a stock RHEL5 install with prelink disabled.

This seems related to https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=222288

The sample code in that bugreport crashes on x86_64 RHEL5 systems with prelink
disabled. If prelink is enabled (and run), the program works. It also works when
/etc/ld.so.cache is removed (with prelink disabled).


Version-Release number of selected component (if applicable):

java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)

glibc-2.5-12


How reproducible: Always


Steps to Reproduce:
1. disable prelink (prelink -ua)
2. run the java program mentioned in RH bugzilla bug 222288
3. program crashes
4. enable prelink (prelink -a)
5. program works

Another way to reproduce is:
1. disable prelink (prelink -ua)
2. run the code
3. program crashes
4. remove /etc/ld.so.cache
5. run the program -> WORKS
6. run ldconfig (to create /etc/ld.so.cache)
7. run program -> CRASH


Actual results:

java crashes

Expected results:

no crash and example java application returns "OK"

Additional info:

Other software also crashes/fails to start when prelink is disabled. Matlab
crashes with 'failed to load the Desktop class'.

It shouldn't matter if prelink is enabled or not. 

If /etc/ld.so.cache is removed (with prelink disabled), the program works. It
should not matter to ld if the cache file exists or not. The result should be
the same.

This only seems to affect x86_64 machines. I've been unable to reproduce this on
i386 systems.

Comment 1 Jakub Jelinek 2007-07-19 13:31:54 UTC
This is supposed to be fixed in glibc-2.5-18, which will show up in RHEL5.1.

Comment 2 Rik Theys 2007-07-20 06:07:58 UTC
Where can I download glibc-2.5-18? What is the release schedule for RHEL5.1?