Subject: lib/7957: set LD_LIBRARY_PATH can crash linux binaries
To: None <gnats-bugs@gnats.netbsd.org>
From: Mario Kemper <magick@bundy.lip.owl.de>
List: netbsd-bugs
Date: 07/10/1999 11:51:31
>Number:         7957
>Category:       lib
>Synopsis:       set LD_LIBRARY_PATH can crash linux binaries
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 10 11:50:00 1999
>Last-Modified:
>Originator:     Mario Kemper
>Organization:
Mario Kemper
magick@bundy.lip.owl.de
>Release:        NetBSD-current as of 99/07/10
>Environment:
	
System: NetBSD bundy 1.4F NetBSD 1.4F (BUNDY) #0: Sat Jul 10 11:49:31 CEST 1999 root@bundy:/src/src/sys/arch/i386/compile/BUNDY i386


>Description:
After the switch to ELF i had several self compiled programs that don't set 
the library paths correctly via -Wl,-R..
As I'm a lazy person i just set 
LD_LIBRARY_PATH=/usr/pkg/lib:/usr/local/X11/lib
(the equivalent to ld.so.conf)

After that, i wanted to start netscape, but shortly after loading my X froze
and i could only reset the computer via reset switch.

Other linux binaries showed unresolved symbols errors or produced bus errors.

I don't know where exactly the problem is. Maybe it's a bug in the linux ld.so.
(then category pkg would be more apropriate).
>How-To-Repeat:
	set LD_LIBRAY_PATH=/usr/pkg/lib:/usr/local/X11/lib and watch linux 
binaries explode (if the system runs long enough).
>Fix:
	No idea.
>Audit-Trail:
>Unformatted: