This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Weird x86 Linux/GNU crashes
- From: Raja R Harinath <harinath at cs dot umn dot edu>
- To: mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 30 Jul 2002 23:41:25 -0500
- Subject: Re: Weird x86 Linux/GNU crashes
- References: <200207302248.g6UMmCU31451@localhost.localdomain>
Hi,
Mark Mitchell <mark@codesourcery.com> writes:
> I've got some changes to the C++ front end that I've tested pretty
> well (make check-g++). Then, I updated the compiler and rebuilt from
> scratch in preparation for final testing and check-in. Now, every
> dynamically linked C++ binary crashes, but statically linked ones are
> OK.
>
> The behavior is somewhat odd; GDB seems to get confused:
>
> bash-2.05$ LD_LIBRARY_PATH=/home/mitchell/dev/gcc-mainline/objdir/i686-pc-linux-gnu//libstdc++-v3/src/.libs:. ./bitfield1.exe
> Segmentation fault
Maybe you should try
/home/mitchell/dev/gcc-mainline/objdir/i686-pc-linux-gnu//libstdc++-v3/libtool --mode=execute ./bitfield1.exe
> bash-2.05$
> LD_LIBRARY_PATH=/home/mitchell/dev/gcc-mainline/objdir/i686-pc-linux-gnu//libstdc++-v3/src/.libs:. gdb
> ./bitfield1.exe
And
/home/mitchell/dev/gcc-mainline/objdir/i686-pc-linux-gnu//libstdc++-v3/libtool --mode=debug gdb ./bitfield1.exe
That is the supported way to run libtool-built programs in the build
tree.
- Hari
--
Raja R Harinath ------------------------------ harinath@cs.umn.edu