public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
@ 2001-07-11 16:56 carlo
0 siblings, 0 replies; 6+ messages in thread
From: carlo @ 2001-07-11 16:56 UTC (permalink / raw)
To: gcc-gnats; +Cc: krempp
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]
>Number: 3655
>Category: libstdc++
>Synopsis: Subject: stream bug with "0xBlabla" strings in internal mode
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 11 16:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Samuel Krempp <krempp@cmla.ens-cachan.fr>
>Release: 3.0 and 3.1
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
The bug was reproduced with the following g++ :
gcc version 3.1 20010624 (experimental) - cvs
gcc version 3.1 20010707 (experimental) - cvs
gcc version 3.0 20010402 (Debian prerelease)
i686-pc-linux-gnu
and is not present in
gcc version 2.95.4 20010319 (Debian prerelease)
With the faulty compilers, the resulting string looks like :
Trap!ZZZÃø
(the 2 last chars vary, clearly comig from improper memory accesses)
hth,
--
Sam
>How-To-Repeat:
#include <cassert>
#include <iostream>
#include <sstream>
int main(){
using namespace std;
stringstream oss;
oss.setf(std::ostream::internal, std::ostream::adjustfield);
oss.width(10);
oss.fill('Z');
oss << "0xTrap!";
cout << oss.str() << endl;
assert( oss.str() == "ZZZ0xTrap!" );
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
@ 2001-12-05 14:36 bkoz
0 siblings, 0 replies; 6+ 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++/3655; it has been noted by GNATS.
From: bkoz@gcc.gnu.org
To: bkoz@gcc.gnu.org, carlo@alinoe.com, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, krempp@cmla.ens-cachan.fr
Cc:
Subject: Re: libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
Date: 5 Dec 2001 22:31:59 -0000
Synopsis: Subject: stream bug with "0xBlabla" strings in internal mode
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Wed Dec 5 14:31:59 2001
State-Changed-Why:
Fixed, for real this time.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3655&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
@ 2001-12-05 14:32 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2001-12-05 14:32 UTC (permalink / raw)
To: bkoz, carlo, gcc-bugs, gcc-gnats, gcc-prs, krempp
Synopsis: Subject: stream bug with "0xBlabla" strings in internal mode
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Wed Dec 5 14:31:59 2001
State-Changed-Why:
Fixed, for real this time.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3655&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
@ 2001-11-21 20:46 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2001-11-21 20:46 UTC (permalink / raw)
To: bkoz; +Cc: gcc-prs
The following reply was made to PR libstdc++/3655; it has been noted by GNATS.
From: bkoz@gcc.gnu.org
To: bkoz@gcc.gnu.org, carlo@alinoe.com, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, krempp@cmla.ens-cachan.fr
Cc:
Subject: Re: libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
Date: 29 Nov 2001 00:20:45 -0000
Synopsis: Subject: stream bug with "0xBlabla" strings in internal mode
State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Wed Nov 28 16:20:45 2001
State-Changed-Why:
The correct output, according to 22.2.2.2, is:
0xZZZTrap!
This is not what you intended, either, but oh well.
It's fixed in mainline with this:
2001-11-28 Paolo Carlini <pcarlini@unitus.it>
libstdc++/3655
* include/bits/locale_facets.tcc (__pad): correctly output hex
numbers internally aligned.
* testsuite/27_io/ostream_inserter_arith.cc: Add testcase.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3655&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
@ 2001-11-21 20:36 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2001-11-21 20:36 UTC (permalink / raw)
To: bkoz, carlo, gcc-bugs, gcc-gnats, gcc-prs, krempp
Synopsis: Subject: stream bug with "0xBlabla" strings in internal mode
State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Wed Nov 28 16:20:45 2001
State-Changed-Why:
The correct output, according to 22.2.2.2, is:
0xZZZTrap!
This is not what you intended, either, but oh well.
It's fixed in mainline with this:
2001-11-28 Paolo Carlini <pcarlini@unitus.it>
libstdc++/3655
* include/bits/locale_facets.tcc (__pad): correctly output hex
numbers internally aligned.
* testsuite/27_io/ostream_inserter_arith.cc: Add testcase.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3655&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode
@ 2001-07-16 12:36 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2001-07-16 12:36 UTC (permalink / raw)
To: bkoz, carlo, gcc-bugs, gcc-prs, krempp, nobody
Synopsis: Subject: stream bug with "0xBlabla" strings in internal mode
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Mon Jul 16 12:36:00 2001
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Mon Jul 16 12:36:00 2001
State-Changed-Why:
I've bbeen able to reproduce this. Thanks!
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3655&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-12-05 22:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-11 16:56 libstdc++/3655: Subject: stream bug with "0xBlabla" strings in internal mode carlo
2001-07-16 12:36 bkoz
2001-11-21 20:36 bkoz
2001-11-21 20:46 bkoz
2001-12-05 14:32 bkoz
2001-12-05 14:36 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).