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]

SIGSEGVs with g++3.2


Hi!

I just tried todays gcc 3.2 branch and encountered SIGSEGVs in many
programs which look like

(gdb) run
Starting program: /net/bellatrix/home/rguenth/src/pooma-work/rhalk/Shock1d

Program received signal SIGSEGV, Segmentation fault.
0x080d4fa4 in std::basic_ios<char, std::char_traits<char>
>::_M_cache_facets(std::locale const&) (this=0x81402e4, __loc=@0x1) at
basic_ios.tcc:171
171           if (has_facet<__ctype_type>(__loc))
(gdb) bt
#0  0x080d4fa4 in std::basic_ios<char, std::char_traits<char>
>::_M_cache_facets(std::locale const&) (this=0x81402e4, __loc=@0x1) at
basic_ios.tcc:171
#1  0x080d4a73 in std::basic_ios<char, std::char_traits<char>
>::init(std::basic_streambuf<char, std::char_traits<char> >*)
(this=0x81402e4, __sb=0x1)
    at basic_ios.tcc:144
#2  0x08099a51 in std::ios_base::Init::_S_ios_create(bool) (__sync=72)
    at ostream:72
#3  0x08099e73 in Init (this=0x8140b24)
    at /home/rguenth/src/gcc/gcc3.2/libstdc++-v3/src/ios.cc:205
#4  0x080a4067 in __static_initialization_and_destruction_0
(__initialize_p=1,
    __priority=65535) at iostream:62
#5  0x080a408a in
_GLOBAL__I__ZThn8_NSt14basic_iostreamIwSt11char_traitsIwEED0Ev_home_rguenth_src_gcc_gcc3.2_libstdc___v3_src_io_inst.ccACBnhb
()
    at locale_facets.h:107
#6  0x08099845 in __do_global_ctors_aux ()
    at
/net/bellatrix/home/rguenth/src/pooma-work/r2/src/Utilities/Unique.cmpl.cpp:118
#7  0x0804a7fe in _init ()
#8  0x40154c24 in __libc_start_main () from /lib/libc.so.6
(gdb)

Does this look familiar to anybody?

bellatrix:~/src/pooma-work/rhalk$ ldd ./Shock1d
        libhdf5.so.0 => /home/rguenth/ix86/lib/libhdf5.so.0 (0x40017000)
        libm.so.6 => /lib/libm.so.6 (0x40119000)
        libc.so.6 => /lib/libc.so.6 (0x40138000)
        libz.so.1 => /lib/libz.so.1 (0x40254000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

btw - this is on a SuSE 7.2 system. Oh - gcc 3.0.4 works without a
problem.

bellatrix:~/src/pooma-work$ g++ -v
Reading specs from
/home/rguenth/ix86/gcc3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /home/rguenth/src/gcc/gcc3.2/configure
--prefix=/home/rguenth/ix86/gcc3.2 --enable-languages=c,c++,f77
--disable-shared --enable-threads
Thread model: posix
gcc version 3.2 20020802 (prerelease)

bellatrix:~/src/pooma-work$ ~/ix86/gcc3.0/bin/g++ -v
Reading specs from
/home/rguenth/ix86/gcc3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0.5/specs
Configured with: /home/rguenth/src/gnu/gcc/configure
--prefix=/home/rguenth/ix86/gcc3.0 --enable-languages=c,c++,f77
Thread model: single
gcc version 3.0.5 20020403 (prerelease)

Thanks, Richard.

--
Richard Guenther <richard.guenther@uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/


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