Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.1.2, 4.1.3
-
None
-
all
Description
The program below dumps core:
$ cat t.cpp && gmake t && ./t
#include <cassert>
#include <cstdio>
#include <istream>
#include <string>
int main ()
{
struct: std::streambuf {
int_type underflow ()
} buf;
buf.sgetc ();
buf.sbumpc ();
}
aCC -c -I/nfs/devco/sebor/dev/stdlib/include/ansi -I/usr/include -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/nfs/devco/sebor/dev/stdlib/include -I/build/sebor/aCC-3.27-11s/include -I/nfs/devco/sebor/dev/stdlib/examples/include -Aa +nostl -g +d +w +W392 +W655 +W684 +W818 +W819 +W849 +W229 +W361 t.cpp
aCC t.o -o t -Aa +nostl -Wl,+s -Wl,+vnocompatwarnings -L/build/sebor/aCC-3.27-11s/lib -L/build/sebor/aCC-3.27-11s/lib -lstd11s -lm
/nfs/devco/sebor/dev/stdlib/include/streambuf:432: int std::basic_streambuf<char,std::char_traits<char> >::uflow(): Assertion '0 != _C_gptr' failed.
( 0) 0x000087d4 _rw_assert_fail4_rwFPCcT1iT1 + 0x7c [././t]
( 1) 0x000083a8 uflow_Q2_3std15basic_streambufXTcTQ2_3std11char_traitsXTc_Fv + 0xa8 [././t]
( 2) 0x00007778 sbumpc_Q2_3std15basic_streambufXTcTQ2_3std11char_traitsXTc_Fv + 0x7c [././t]
( 3) 0x000075d4 main + 0x2c [././t]
( 4) 0xc013e8fc _start + 0xc8 [/usr/lib/libc.2]
( 5) 0x000064c0 $START$ + 0x178 [././t]
ABORT instruction (core dumped)