public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3983: basic_istringstream<unsigned xxx> causes segfault
@ 2002-04-03 12:36 bkoz
0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-04-03 12:36 UTC (permalink / raw)
To: bkoz, corsepiu, gcc-bugs, gcc-prs
Synopsis: basic_istringstream<unsigned xxx> causes segfault
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Wed Apr 3 12:36:26 2002
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3983
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/3983: basic_istringstream<unsigned xxx> causes segfault
@ 2002-04-02 18:36 bkoz
0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-04-02 18:36 UTC (permalink / raw)
To: bkoz, corsepiu, gcc-bugs, gcc-prs, nobody
Synopsis: basic_istringstream<unsigned xxx> causes segfault
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Tue Apr 2 18:36:17 2002
Responsible-Changed-Why:
Mine.
State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Tue Apr 2 18:36:17 2002
State-Changed-Why:
Fixed with:
2002-04-02 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5268
* src/ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.
* testsuite/27_io/ios_init.cc (tests04): Add test.
libstdc++/3983
* include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove.
(basic_ios::_M_ios_fctype): Consistently name to _M_fctype.
* include/bits/basic_ios.tcc: Same. Remove outdated comments.
* include/bits/istream.tcc: Use _M_fctype, make consistent with
ostream.
* testsuite/27_io/ios_init.cc (tests03): Add test.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3983
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/3983: basic_istringstream<unsigned xxx> causes segfault
@ 2002-03-11 11:12 pme
0 siblings, 0 replies; 4+ messages in thread
From: pme @ 2002-03-11 11:12 UTC (permalink / raw)
To: corsepiu, gcc-bugs, gcc-prs, nobody
Synopsis: basic_istringstream<unsigned xxx> causes segfault
State-Changed-From-To: open->analyzed
State-Changed-By: pme
State-Changed-When: Mon Mar 11 11:12:56 2002
State-Changed-Why:
Reproduced with 3.1 20020310 and 3.2 20020310 (both
segfaults before any output). I don't think this has ever
worked before, so it's technically not a regression. A
similar problem is under discussion on the libstdc++ list.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3983
^ permalink raw reply [flat|nested] 4+ messages in thread
* libstdc++/3983: basic_istringstream<unsigned xxx> causes segfault
@ 2001-08-10 6:16 corsepiu
0 siblings, 0 replies; 4+ messages in thread
From: corsepiu @ 2001-08-10 6:16 UTC (permalink / raw)
To: gcc-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1584 bytes --]
>Number: 3983
>Category: libstdc++
>Synopsis: basic_istringstream<unsigned xxx> causes segfault
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 10 06:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Ralf Corsepius
>Release: unknown-1.0
>Organization:
>Environment:
gcc -v
Reading specs from /opt/gcc30/lib/gcc-lib/i486-suse-linux/3.0.1/specs
Configured with: ../configure --enable-threads=posix --enable-long-long --prefix=/opt/gcc30 --mandir=/opt/gcc30/man --infodir=/opt/gcc30/info --with-local-prefix=/usr/local --enable-languages=c,c++ --disable-nls --enable-shared --with-system-zlib --host=i486-suse-linux --build=i486-suse-linux
Thread model: posix
gcc version 3.0.1 20010807 (prerelease)
SuSE-Linux-7.2/glibc-2.2.2/Linux-2.4.7
>Description:
Using an unsigned template parameter with basic_istringstream<>
(Eg. unsigned char, unsigned int) causes random program output and segfaults.
>How-To-Repeat:
Compile and run the program below:
----- snip ------
#include <sstream>
#include <iostream>
using namespace std;
int main ( )
{
int v ;
unsigned char s[2] ;
s[0] = '1';
s[1] = 0;
basic_istringstream<unsigned char> strm(s);
strm >> v ;
// cerr << "result: " << v << endl ;
return 0;
}
----- snip -----
g++ -Wall -g -o foo foo.cc
./foo
foo: (h!@x÷ÿ¿o?@
foo: (h!@x÷ÿ¿o?@
Speicherzugriffsfehler (core dumped)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-03 20:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-03 12:36 libstdc++/3983: basic_istringstream<unsigned xxx> causes segfault bkoz
-- strict thread matches above, loose matches on Subject: below --
2002-04-02 18:36 bkoz
2002-03-11 11:12 pme
2001-08-10 6:16 corsepiu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).