This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Additional testsuite failure istream_extractor_char.cc.
- To: libstdc++ at gcc dot gnu dot org
- Subject: Additional testsuite failure istream_extractor_char.cc.
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Tue, 6 Mar 2001 02:02:36 +0100 (CET)
There is an additional testsuite failure for gcc version 3.1 20010304. The file
istream_extractor_char does not run sucessfully.
The failing assertion is:
istream_extractor_char.sh-exe:
/home/peter/egcs/gcc/libstdc++-v3/testsuite/27_io/
istream_extractor_char.cc:61:
bool test01(): Assertion `state1 == state2' failed.
Aborted (core dumped)
The program aborts because state1 is 0 but state2 is 4, I guess, since
debugging with gdb is problematic.
The strange thing is, that inspecting the backtrace with gdb does not
work. The backtrace states that the program aborts in line 54 -- in
contrast to the line number in the assertion -- but examining i1 and i2
with the debugger shows that both have the value six.
Peter Schmid
GDB backtrace:
Starting program: /home/peter/egcs/build/i686-pc-linux-gnu/libstdc++-v3/testsuite/istream_extractor_char.sh-exe
istream_extractor_char.sh-exe: /home/peter/egcs/gcc/libstdc++-v3/testsuite/27_io/istream_extractor_char.cc:61: bool test01(): Assertion `state1 == state2' failed.
Program received signal SIGABRT, Aborted.
0x40115bc1 in __kill () from /lib/libc.so.6
(gdb) bt
#0 0x40115bc1 in __kill () from /lib/libc.so.6
#1 0x401159c5 in raise () from /lib/libc.so.6
#2 0x40116fe1 in abort () from /lib/libc.so.6
#3 0x4010fbe8 in __assert_fail () from /lib/libc.so.6
#4 0x08051592 in test01() ()
at /home/peter/egcs/gcc/libstdc++-v3/testsuite/27_io/istream_extractor_char.cc:54
#5 0x0805296b in main ()
at /home/peter/egcs/gcc/libstdc++-v3/testsuite/27_io/istream_extractor_char.cc:225
#6 0x40105baf in __libc_start_main () from /lib/libc.so.6
(gdb) up
#1 0x401159c5 in raise () from /lib/libc.so.6
(gdb) up
#2 0x40116fe1 in abort () from /lib/libc.so.6
(gdb) up
#3 0x4010fbe8 in __assert_fail () from /lib/libc.so.6
(gdb) up
#4 0x08051592 in test01() ()
at /home/peter/egcs/gcc/libstdc++-v3/testsuite/27_io/istream_extractor_char.cc:54
(gdb) p i1
$6 = 6
(gdb) p i2
$7 = 6
(gdb) p state1
$8 = 0
(gdb) p state2
$9 = 4