public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/4402: Crash in std::ostream with bad values and std::fixed
@ 2001-09-26  7:26 stuart
  0 siblings, 0 replies; 7+ messages in thread
From: stuart @ 2001-09-26  7:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4402
>Category:       libstdc++
>Synopsis:       Crash in std::ostream with bad values and std::fixed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 26 07:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     stuart@personalrobots.com
>Release:        gcc 3.0
>Organization:
>Environment:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../gcc-3.0/configure --enable-threads
Thread model: posix
gcc version 3.0
>Description:
The following code causes a SEGV - I know it is a silly thing to do but bad values happen sometimes and it is easier to debug if the stack doesn't get trashed when trying to output some debugging information!

Code test.cc:
#include <iostream>
#include <iomanip>

int main ( int argc, char *argv[] )
{
    double value = 3.5e230;
    std::cout << std::fixed << std::setprecision(3) << value << " " <<
	std::setprecision(1) << value << std::endl;
}

Compile with:
gcc test.cc -o test -lstdc++



>How-To-Repeat:
Compile and run the code in the description.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
@ 2001-12-08  2:06 paolo
  0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2001-12-08  2:06 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/4402; it has been noted by GNATS.

From: paolo@gcc.gnu.org
To: bkoz@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  gcc-prs@gcc.gnu.org, stuart@personalrobots.com
Cc:  
Subject: Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
Date: 8 Dec 2001 10:00:09 -0000

 Synopsis: Crash in std::ostream with bad values and std::fixed
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: paolo
 State-Changed-When: Sat Dec  8 02:00:08 2001
 State-Changed-Why:
     Fixed.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4402&database=gcc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
@ 2001-12-08  2:00 paolo
  0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2001-12-08  2:00 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-gnats, gcc-prs, stuart

Synopsis: Crash in std::ostream with bad values and std::fixed

State-Changed-From-To: feedback->closed
State-Changed-By: paolo
State-Changed-When: Sat Dec  8 02:00:08 2001
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4402&database=gcc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
@ 2001-12-05 14:36 bkoz
  0 siblings, 0 replies; 7+ messages in thread
From: bkoz @ 2001-12-05 14:36 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/4402; it has been noted by GNATS.

From: bkoz@gcc.gnu.org
To: bkoz@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  gcc-prs@gcc.gnu.org, stuart@personalrobots.com
Cc:  
Subject: Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
Date: 5 Dec 2001 22:30:28 -0000

 Synopsis: Crash in std::ostream with bad values and std::fixed
 
 State-Changed-From-To: analyzed->feedback
 State-Changed-By: bkoz
 State-Changed-When: Wed Dec  5 14:30:26 2001
 State-Changed-Why:
     Fixed in mainline as of
     
     2001-12-05  Benjamin Kosnik  <bkoz@redhat.com>
     
     	DR/282
     	* include/bits/locale_facets.tcc (num_put::_M_widen_float): Add
     	grouping to floating point types.
     	* testsuite/27_io/ostream_inserter_arith.cc (test02): Add test.
     	
     2001-12-04  Paolo Carlini <pcarlini@unitus.it>
     
             libstdc++/4402
             * testsuite/27_io/ostream_inserter_arith.cc (test02): Add testcase
     	from the PR.
             * include/bits/locale_facets.tcc (num_put::_M_convert_float):
             Deal properly with long ios_base::fixed floats.
             (num_put::_M_widen_float): use
     	__len in __builtin_alloca call.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4402&database=gcc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
@ 2001-12-05 14:30 bkoz
  0 siblings, 0 replies; 7+ messages in thread
From: bkoz @ 2001-12-05 14:30 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-gnats, gcc-prs, stuart

Synopsis: Crash in std::ostream with bad values and std::fixed

State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Wed Dec  5 14:30:26 2001
State-Changed-Why:
    Fixed in mainline as of
    
    2001-12-05  Benjamin Kosnik  <bkoz@redhat.com>
    
    	DR/282
    	* include/bits/locale_facets.tcc (num_put::_M_widen_float): Add
    	grouping to floating point types.
    	* testsuite/27_io/ostream_inserter_arith.cc (test02): Add test.
    	
    2001-12-04  Paolo Carlini <pcarlini@unitus.it>
    
            libstdc++/4402
            * testsuite/27_io/ostream_inserter_arith.cc (test02): Add testcase
    	from the PR.
            * include/bits/locale_facets.tcc (num_put::_M_convert_float):
            Deal properly with long ios_base::fixed floats.
            (num_put::_M_widen_float): use
    	__len in __builtin_alloca call.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4402&database=gcc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
@ 2001-11-21 20:54 bkoz
  0 siblings, 0 replies; 7+ messages in thread
From: bkoz @ 2001-11-21 20:54 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/4402; it has been noted by GNATS.

From: bkoz@gcc.gnu.org
To: bkoz@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, stuart@personalrobots.com
Cc:  
Subject: Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
Date: 29 Nov 2001 00:45:01 -0000

 Synopsis: Crash in std::ostream with bad values and std::fixed
 
 Responsible-Changed-From-To: unassigned->bkoz
 Responsible-Changed-By: bkoz
 Responsible-Changed-When: Wed Nov 28 16:45:01 2001
 Responsible-Changed-Why:
     Mine.
 State-Changed-From-To: open->analyzed
 State-Changed-By: bkoz
 State-Changed-When: Wed Nov 28 16:45:01 2001
 State-Changed-Why:
     Paolo's got a patch to this one... let me check it out.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4402&database=gcc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/4402: Crash in std::ostream with bad values and std::fixed
@ 2001-11-21 20:50 bkoz
  0 siblings, 0 replies; 7+ messages in thread
From: bkoz @ 2001-11-21 20:50 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-gnats, gcc-prs, nobody, stuart

Synopsis: Crash in std::ostream with bad values and std::fixed

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Wed Nov 28 16:45:01 2001
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Wed Nov 28 16:45:01 2001
State-Changed-Why:
    Paolo's got a patch to this one... let me check it out.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4402&database=gcc


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-12-08 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-26  7:26 libstdc++/4402: Crash in std::ostream with bad values and std::fixed stuart
2001-11-21 20:50 bkoz
2001-11-21 20:54 bkoz
2001-12-05 14:30 bkoz
2001-12-05 14:36 bkoz
2001-12-08  2:00 paolo
2001-12-08  2:06 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).