This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: gcc-ss-20010521 is now available
- To: law at sourceware dot cygnus dot com
- Subject: Re: gcc-ss-20010521 is now available
- From: Carlo Wood <carlo at alinoe dot com>
- Date: Wed, 23 May 2001 01:06:34 +0200
- Cc: gcc-bugs at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- References: <20010522002649.20991.qmail@sourceware.cygnus.com> <20010522034152.A32728@alinoe.com>
On Tue, May 22, 2001 at 03:41:52AM +0200, Carlo Wood wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x4004dcf0 in _init () from /usr/local/gcc-3.0/lib/libstdc++.so.3
>
> Note that when I compile libstdc++ with -O0 everything works fine.
Correction, when I compile libstdc++ with -O0 it *also* core dumps,
but during destruction instead of construction:
Program received signal SIGSEGV, Segmentation fault.
0x4005af00 in _init () from /usr/src/gcc/gcc-objdir-3.0/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.3
(gdb) bt
#0 0x4005af00 in _init () from /usr/src/gcc/gcc-objdir-3.0/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.3
#1 0x4008c831 in std::basic_filebuf<char, std::char_traits<char> >::close() (this=0x80499e0)
at /usr/src/gcc/gcc-cvs-3.0/libstdc++-v3/include/bits/fstream.tcc:178
#2 0x4008c58d in std::basic_filebuf<char, std::char_traits<char> >::~basic_filebuf() (__in_chrg=0x80499e0)
at /usr/src/gcc/gcc-cvs-3.0/libstdc++-v3/include/bits/std_fstream.h:95
#3 0x4005e2a5 in std::ios_base::Init::_S_ios_destroy() () at /usr/src/gcc/gcc-cvs-3.0/libstdc++-v3/src/ios.cc:176
#4 0x4005e444 in std::ios_base::Init::~Init() (__in_chrg=0x4005e420) at /usr/src/gcc/gcc-cvs-3.0/libstdc++-v3/src/ios.cc:192
#5 0x08048721 in __static_initialization_and_destruction_0(int, int) (__initialize_p=0, __priority=65535)
at /usr/local/gcc-3.0/include/g++-v3/bits/basic_string.h:57
#6 0x08048765 in _GLOBAL__D_main () at /usr/local/gcc-3.0/include/g++-v3/bits/std_iostream.h:57
#7 0x08048653 in __do_global_dtors_aux ()
#8 0x080487e9 in _fini ()
#9 0x40141823 in exit (status=0) at exit.c:57
#10 0x4012df3a in __libc_start_main (main=0x80486d0 <main>, argc=1, ubp_av=0xbffff60c, init=0x8048520 <_init>, fini=0x80487d0 <_fini>,
rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffff604) at ../sysdeps/generic/libc-start.c:129
This could mean that the problem is actually in gcc.
Please note the seriousness of this bug, this is the program
#include <iostream>
int main(void) { return 0; }
that cores!
--
Carlo Wood <carlo@alinoe.com>