This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Weird x86 Linux/GNU crashes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]