public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8370: compiled c++ program dumps core with stringstream
@ 2002-10-27 13:36 brock
0 siblings, 0 replies; 2+ messages in thread
From: brock @ 2002-10-27 13:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 8370
>Category: c++
>Synopsis: compiled c++ program dumps core with stringstream
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 27 13:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: J Dean Brock
>Release: unknown-1.0
>Organization:
>Environment:
g++ version 2.96 -- Red Hat Linux
>Description:
A program that uses a stringstream for both input and output get a segmentation fault in _IO_default_uflow_internal when compiled under G++ on Linux. However, it works fine with compiled under G++ on Solaris. It also works fine when compiled under Microsoft Visual Studio .NET
Here's a stack trace
#0 0x42077e04 in _IO_default_uflow_internal () from /lib/i686/libc.so.6
#1 0x40055b7b in streambuf::uflow () from /usr/lib/libstdc++-libc6.2-2.so.3
#2 0x42077077 in __uflow () from /lib/i686/libc.so.6
#3 0x420725d3 in getc () from /lib/i686/libc.so.6
#4 0x4005361d in istream::get () from /usr/lib/libstdc++-libc6.2-2.so.3
#5 0x0804a98a in main ()
#6 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
>How-To-Repeat:
Run the program with no arguments.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/8370: compiled c++ program dumps core with stringstream
@ 2002-10-27 13:45 paolo
0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-10-27 13:45 UTC (permalink / raw)
To: brock, gcc-bugs, gcc-prs, nobody
Synopsis: compiled c++ program dumps core with stringstream
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Sun Oct 27 13:45:47 2002
State-Changed-Why:
gcc 2.96 is *not* an official GNU release, as such
completely unsupported from GNU. See:
http://gcc.gnu.org/gcc-2.96.html
If you are able to produce a short self contained
testcase behaving badly at run-time when compiled by an
official GNU compiler (i.e., 2.95.x, 3.0.x, 3.1.x, 3.2.x) please open a new PR.
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8370
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-27 21:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-27 13:36 c++/8370: compiled c++ program dumps core with stringstream brock
2002-10-27 13:45 paolo
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).