Bug 220546

Summary: Programs formerly setting LD_ASSUME_KERNEL=2.4.19 now crash
Product: [Fedora] Fedora Reporter: Bevan Bennett <bevan>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-22 07:33:32 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:
Attachments:
Description Flags
Log of crash when LD_ASSUME_KERNEL is unset. none

Description Bevan Bennett 2006-12-22 01:04:01 UTC
Description of problem:
We have several apps that used LD_ASSUME_KERNEL=2.4.19 to function. None of them
work under FC6 with LD_ASSUME_KERNEL set, and several fail even if it is un-set
(as several sites on the web suggest)

/usr/local/cadence/install/SOC-61-Linux/tools/fe/bin/32bit/encounter: error
while loading shared libraries: libpthread.so.0: cannot open shared object file:
No such file or directory

Version-Release number of selected component (if applicable):
[bevan@ramses ~]$ ls -al /lib/libpthread.so.0
lrwxrwxrwx 1 root root 17 Dec 15 15:26 /lib/libpthread.so.0 -> libpthread-2.5.so
[bevan@ramses ~]$ rpm -qf /lib/libpthread.so.0
glibc-2.5-3


How reproducible:
Reliably

Steps to Reproduce:
1. Find a program that has a wrapper which sets LD_ASSUME_KERNEL=2.4.19, try to
execute it.
  
Actual results:
With LD_ASSUME_KERNEL set (works on FC4/glibc-2.3.6-3):
/usr/local/cadence/install/SOC-61-Linux/tools/fe/bin/32bit/encounter: error
while loading shared libraries: libpthread.so.0: cannot open shared object file:
No such file or directory

Without LD_ASSUME_KERNEL set (same result on FC4):
*** glibc detected ***
/usr/local/cadence/install/SOC-61-Linux/tools/fe/bin/32bit/encounter: malloc():
memory corruption (fast): 0x12282f80 ***


Expected results:
Program does not crash.

Additional info:

Comment 1 Bevan Bennett 2006-12-22 01:04:01 UTC
Created attachment 144238 [details]
Log of crash when LD_ASSUME_KERNEL is unset.

Comment 2 Jakub Jelinek 2006-12-22 07:33:32 UTC
Please read Fedora Core 5 release notes (the same applies to FC6).
LinuxThreads have been deprecated for many years, third party vendors had enough
time to catch up (all that's needed is make the programs comply to POSIX
rather than relying on LinuxThreads implementation details).
LinuxThreads libs (even when rebuilt from latest linuxthreads CVS) are
incompatible with things like -fstack-protector that every single FC5/FC6 shared
library uses.
malloc () memory corruption is an application bug, you should file it against
the application you are seeing it in instead of here.