public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/6012: Crash in iostreams
@ 2002-03-20 4:26 amirgeva
0 siblings, 0 replies; 2+ messages in thread
From: amirgeva @ 2002-03-20 4:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 6012
>Category: libstdc++
>Synopsis: Crash in iostreams
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 20 04:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Amir Geva
>Release: 3.0.4
>Organization:
>Environment:
powerpc-ibm-aix4.3.3.0
>Description:
I am encountering strange crashes in the libstdc++ code.
The included program crashes in the first << operator giving a "Illegal instruction (core dumped)"
The callstack shows that it crashed in: bits/locale_facets.h
At line 778, which is one of the num_put::put() functions.
It seems to be having an invalid virtual base pointer or something to do with the virtual table.
This is a simple example created after a larger program encountered this problem, even with other stream types.
>How-To-Repeat:
#include <iostream>
#include <sstream>
int main(int argc, char* argv[])
{
std::basic_ostringstream<char> os;
os << 5.3;
std::cout << os.str() << std::endl;
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libstdc++/6012: Crash in iostreams
@ 2002-04-01 11:15 bkoz
0 siblings, 0 replies; 2+ messages in thread
From: bkoz @ 2002-04-01 11:15 UTC (permalink / raw)
To: amirgeva, bkoz, gcc-bugs, gcc-prs, nobody
Synopsis: Crash in iostreams
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Mon Apr 1 11:15:18 2002
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Mon Apr 1 11:15:18 2002
State-Changed-Why:
I cannot reproduce this on linux with gcc-3.1. I get:
%a.out
5.3
Which is probably what you're expecting as well. Can you try this with gcc-3_1-branch on AIX?
thanks,
benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6012
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-01 19:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-20 4:26 libstdc++/6012: Crash in iostreams amirgeva
2002-04-01 11:15 bkoz
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).