From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Welsh To: Jason Molenda Cc: gdb@sourceware.cygnus.com Subject: Re: Problem with LD_LIBRARY_PATH and gdb 4.18 Date: Wed, 01 Sep 1999 23:30:00 -0000 Message-id: <199909020632.XAA23639@bhikku.CS.Berkeley.EDU> References: <19990901230402.A19637@cygnus.com> X-SW-Source: 1999-q3/msg00282.html Jason, Jason Molenda writes: > Keep in mind that if you have a .profile or .bashrc (on Linux) and it > sets the LD_LIBRARY_PATH unconditionally, I _believe_ the inferior will > get that .profile L_L_P setting instead of the one you had in gdb. This turned out to be the problem. On my system, 'tcsh' is my default shell, but my .cshrc execs bash instead when the shell is interactive (don't ask why). However for non-interactive shells, the .cshrc is executed which does in fact set LD_LIBRARY_PATH to something bogus. I would have never guessed this to be the problem, since I didn't know gdb spawned a new shell for the process! Thanks, Matt Welsh