[15743] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: crashes under Netscape 3 on Linux [REPOST]

daemon@ATHENA.MIT.EDU (Aaron M. Ucko)
Sat Jan 10 21:47:46 1998

To: bug-infoagents@MIT.EDU
From: amu@MIT.EDU (Aaron M. Ucko)
Date: 10 Jan 1998 21:47:39 -0500

--Multipart_Sat_Jan_10_21:47:39_1998-1
Content-Type: text/plain; charset=US-ASCII


I hate to repeat myself, but my report seems to have fallen through
the cracks...

-- 
Aaron M. Ucko <amu@mit.edu> (finger amu@monk.mit.edu) [Stark raving sane]

--Multipart_Sat_Jan_10_21:47:39_1998-1
Content-Type: message/rfc822

Subject: Re: crashes under Netscape 3 on Linux
To: Barry Jaspan <bjaspan@intermute.com>
Cc: bug-infoagents@MIT.EDU
From: amu@MIT.EDU (Aaron M. Ucko)
Date: 19 Dec 1997 10:34:15 -0500

Barry Jaspan <bjaspan@intermute.com> writes:

> Please read http://---interMute---/manual/trouble.htm#linux and let me know
> if that does not solve your problem.

That wasn't quite the solution, but it was close enough for me to
figure it out...it turns out that there's a subtle bug in the netscape
script in the infoagents locker: it doesn't account for the fact that
LD_ELF_PRELOAD overrides LD_PRELOAD.  (It also fails to take advantage
of the fact that one can specify multiple preloaded libraries with
ELF.)  The following patch (which I've tested) addresses both of these
issues:

--- /mit/infoagents/bin/netscape	Mon Sep  8 16:31:28 1997
+++ /tmp/netscape	Fri Dec 19 10:30:57 1997
@@ -48,8 +48,14 @@
 case "${uname}" in
     Linux)
 	# Java frees freed pointers - gnu malloc package handles this
-        LD_PRELOAD=${archtop}lib/gnumalloc.so
-        export LD_PRELOAD
+	if [ -n ${LD_ELF_PRELOAD+x} ]; then
+	    LD_ELF_PRELOAD="${archtop}lib/gnumalloc.so:$LD_ELF_PRELOAD"
+	elif [ -n ${LD_PRELOAD+x} ]; then
+	    LD_ELF_PRELOAD="${archtop}lib/gnumalloc.so:$LD_PRELOAD"
+	else
+	    LD_ELF_PRELOAD="${archtop}lib/gnumalloc.so"
+	fi
+	export LD_ELF_PRELOAD
 	XNLSPATH=/mit/infoagents/share/Netscape/nls.x11r5; export XNLSPATH
 	attach -h -n -q $common_lockers
 	;;

-- 
Aaron M. Ucko <amu@mit.edu> (finger amu@monk.mit.edu) [Stark raving sane]

--Multipart_Sat_Jan_10_21:47:39_1998-1--

home help back first fref pref prev next nref lref last post