This is the mail archive of the gcc-bugs@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]

G++2.95.2 on Solaris2.7 dynamic linking segfault in global dtor cleanup


"hello, world" segfaults from __do_global_dtors_aux in
libcstdc++.so.2.10.0 with only the "-g" flag specified.
The output of "gcc -v"
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)

This is on a Sun Ultra-5 running Solaris2.7

The following sh script was used to generate the enclosed shar file:
#! /bin/sh
g++ --save-temps --verbose -g b.cpp 2>g++-log.txt
./a.out
echo bt | gdb ./a.out core >gdb-log.txt 2>&1
gzip <b.ii | uuencode b.ii.gz.uu >b.ii.gz.uu
uname -aX >uname-log.txt

perl $HOME/bin/shar.pl uname-log.txt g++-log.txt gdb-log.txt b.cpp
b.ii.gz.uu >SHAR

Apologies if this is a known bug (where documented?) or a common misconfig
error...
	/r$

SHAR


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