GCC 3.2 Prerelease
H. J. Lu
hjl@lucon.org
Tue Aug 6 11:59:00 GMT 2002
On Tue, Aug 06, 2002 at 11:37:00AM -0700, Joe Buck wrote:
>
> FAIL: backward/strstream_members.cc execution test
>
gcc 3.3 with libstdc++.so.5.0.0 from gcc 3.2, I got
Program received signal SIGSEGV, Segmentation fault.
0x4207ad2d in free () from /lib/i686/libc.so.6
(gdb) bt
#0 0x4207ad2d in free () from /lib/i686/libc.so.6
#1 0x4009f923 in operator delete(void*) (ptr=0x8000000)
at /home/hjl/work/gnu/src/gcc-3.2/gcc/libstdc++-v3/libsupc++/del_op.cc:39
#2 0x4009f97f in operator delete[](void*) (ptr=0x8000000)
at /home/hjl/work/gnu/src/gcc-3.2/gcc/libstdc++-v3/libsupc++/del_opv.cc:36
#3 0x400545a9 in std::strstreambuf::_M_free(char*) (this=0x8000000,
p=0x8049c20 "")
at /home/hjl/work/gnu/src/gcc-3.2/gcc/libstdc++-v3/src/strstream.cc:325
#4 0x40053e10 in ~strstreambuf (this=0xbffff604)
at /home/hjl/work/gnu/src/gcc-3.2/gcc/libstdc++-v3/src/strstream.cc:126
#5 0x400554fc in ~ostrstream (this=0xbffff600)
at /home/hjl/work/gnu/src/gcc-3.2/gcc/libstdc++-v3/src/strstream.cc:380
#6 0x080488f5 in test02() ()
at
/home/hjl/work/gnu/src/gcc/gcc/libstdc++-v3/testsuite/backward/strstream_members.cc:41
#7 0x08048918 in main ()
at
/home/hjl/work/gnu/src/gcc/gcc/libstdc++-v3/testsuite/backward/strstream_members.cc:47
#8 0x420175c9 in __libc_start_main () from /lib/i686/libc.so.6
After I set MALLOC_CHECK_=1, I got
free(): invalid pointer 0x8049c20!
Using libstdc++.so.5.0.0 from gcc 3.3, it ran fine.
H.J.
More information about the Gcc
mailing list