This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/8370: compiled c++ program dumps core with stringstream
- From: brock at cs dot unca dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 27 Oct 2002 21:34:13 -0000
- Subject: c++/8370: compiled c++ program dumps core with stringstream
- Reply-to: brock at cs dot unca dot edu
>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: