[LLVMbugs] [Bug 9634] New: likely improper segfault
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 5 23:48:49 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9634
Summary: likely improper segfault
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
This program, as far as I can tell, should not crash.
regehr at home:~/volatile/bugs/tmp011$ clang -Os small.c -o small
regehr at home:~/volatile/bugs/tmp011$ ./small
Segmentation fault
regehr at home:~/volatile/bugs/tmp011$ clang -v
clang version 3.0 (trunk 128982)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at home:~/volatile/bugs/tmp011$ cat small.c
extern int printf (const char *, ...);
int g_58;
int *g_116;
short func_82 (void);
short func_82 (void)
{
short l_87[9];
int i;
for (i = 0; i < 9; i++) l_87[i] = 0xDCDEL;
return l_87[6];
}
int main (void)
{
int p_45;
for (p_45 = 0; p_45 < 4; p_45++)
{
g_116 = &g_58;
*g_116 |= func_82 ();
}
printf ("checksum = 0\n");
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list