public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/3844: UMR in sprintf for format %LE
@ 2001-07-27 10:06 zhegulev
0 siblings, 0 replies; 2+ messages in thread
From: zhegulev @ 2001-07-27 10:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 3844
>Category: c
>Synopsis: UMR in sprintf for format %LE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 27 10:06:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: zhegulev@sigma.ispras.ru
>Release: gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
SunOS 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-5_10
gcc version 2.95.3 20010315 (release)
>Description:
file: test.c
#include <stdio.h>
int main()
{
char s[128];
sprintf(s,"%LE\n",(long double)10);
return 0;
}
If compiled with purify
Purify reports about UMR
same code on HP 10.20
receives segmentation fault
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c.gz"
H4sICBKXYTsAA3Rlc3QuYwBTzsxLzilNSVWwKS5JyczXy7Dj4srMK1HITczM09DkquZSUEjOSCxS
KI42NLKItQZyiwuKgArSNIp1lFR9XGPylHQ0cvLz0hVS8kuTclI1DQ00QaqKUktKi/IUDKy5arkA
aj8oHGQAAAA=
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c/3844: UMR in sprintf for format %LE
@ 2001-07-28 19:47 aoliva
0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-07-28 19:47 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, zhegulev
Synopsis: UMR in sprintf for format %LE
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sat Jul 28 19:47:33 2001
State-Changed-Why:
I don't see how this can be a bug in GCC. sprintf is provided by the C library of the OS you're running; GCC just uses that C library. If there's a bug somewhere, it's likely to be in the C library, and you have to report a problem to the OS vendors.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3844&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-28 19:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-27 10:06 c/3844: UMR in sprintf for format %LE zhegulev
2001-07-28 19:47 aoliva
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).