Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 318549 (Rekai)

Summary: export LD_LIBRARY_PATH cause segfault
Product: Gentoo Linux Reporter: Rodrigo Gonzalez <rgalberquilla>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal CC: galibert
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rodrigo Gonzalez 2010-05-05 09:31:08 UTC
If LD_LIBRARY_PATH is defined and '/usr/lib64' appears before '/lib64' any binary I try to execute segfaults. By default LD_LIBRARY_PATH is undefined, and some build scripts export LD_LIBRARY_PATH with /usr/lib64 before /lib64 or no /lib64 at all, causing the packages not to install.

Linux hoshi 2.6.32-gentoo-r4 #3 SMP Sat Feb 13 16:56:32 CET 2010 x86_64 Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz GenuineIntel GNU/Linux

GNU bash, version 4.0.37(2)-release (x86_64-pc-linux-gnu)

ldd (GNU libc) 2.10.1
Comment 1 Olivier Galibert 2010-05-05 11:29:11 UTC
That seems unique to you, and probably due to some broken leftover in your /usr/lib64.

Try a ldd on a breaking executable with and without LD_LIBRARY_PATH and check what changes.  ldd itself is not dynamic, so it should work.