stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-251) SIGABRT in std::streambuf::sbumpc() in unbuffered input mode
Date Fri, 30 Jun 2006 22:47:29 GMT
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
 Assigned to: 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


Mime
View raw message