You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2006/07/01 01:34:30 UTC
[jira] Resolved: (STDCXX-251) SIGABRT in std::streambuf::sbumpc()
in unbuffered input mode
[ http://issues.apache.org/jira/browse/STDCXX-251?page=all ]
Martin Sebor resolved STDCXX-251:
---------------------------------
Resolution: Fixed
Fixed with the referenced changes.
> SIGABRT in std::streambuf::sbumpc() in unbuffered input mode
> ------------------------------------------------------------
>
> Key: STDCXX-251
> URL: http://issues.apache.org/jira/browse/STDCXX-251
> Project: C++ Standard Library
> Type: Bug
> Components: 27. Input/Output
> Versions: 4.1.2, 4.1.3
> Environment: all
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Fix For: 4.2
>
> 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 () {
> return 'x';
> }
> } 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_fail__4__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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira