Bug 31458 - gcc:internal compiler error: Segmentation fault on sprintf (buf, "%s");
Summary: gcc:internal compiler error: Segmentation fault on sprintf (buf, "%s");
Status: RESOLVED DUPLICATE of bug 30473
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.1.2
: P3 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-03 11:59 UTC by Sergey Sharybin
Modified: 2007-04-03 17:38 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
File generated by -save-temps flag (3.28 KB, application/octet-stream)
2007-04-03 12:02 UTC, Sergey Sharybin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Sharybin 2007-04-03 11:59:10 UTC
When I'm trying to compile simple program

#include <stdio.h>
void main () {
  char buf[1024];
  sprintf (buf, "%s");
}

gcc catchs segmentation fault.
Comment 1 Sergey Sharybin 2007-04-03 12:02:09 UTC
Created attachment 13323 [details]
File generated by -save-temps flag
Comment 2 Andrew Pinski 2007-04-03 17:38:14 UTC

*** This bug has been marked as a duplicate of 30473 ***