>I use "plplot" a fairly nice plotting package which enables me to call >graphics from within c or fortran code. With Redhat 4.2 or 5.0 >opposed to Caldera, I get segmentation faults and core dumps upon >closing of the xwindows. The following script solves the problem >in a rather ugly way. ( This script is a slight modification of one that >fixed a Netscape 3.1 problem that Netscape 4. doesn't have. > >#!/bin/sh >export LD_PRELOAD="/lib/gnumalloc.so" >exec $1 > >Is there an elegant solution to this problem? Calling the script "run" >and then invoking a program with: run program_name seems to me a kludge. How about in /usr/local/bin your script named "plplot": #!/bin/sh export LD_PRELOAD="/lib/gnumalloc.so" exec /usr/local/plplot/wherever_the_binary_lives $* Since /usr/local/bin should be in your path and /usr/local/plplot/.... shouldn't all you have to do is type plplot to fire off your wrapper startup script. (after logging out and back in or running rehash or its equivalent for your favorite shell). This is how I start netscape3.01. --wally. -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES! http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
