[LLVMbugs] [Bug 9820] New: output crashes, but should not
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Apr 30 18:53:42 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9820
Summary: output crashes, but should not
Product: new-bugs
Version: unspecified
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
regehr at home:~$ clang -O0 small.c -o small
regehr at home:~$ ./small
regehr at home:~$ clang -O1 small.c -o small
regehr at home:~$ ./small
Segmentation fault
regehr at home:~$ clang -v
clang version 3.0 (trunk 130620)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at home:~$ cat small.c
int *func_28 (int *p_29) {
return p_29;
}
int *g_311;
int **g_403 = &g_311;
void func_1 (void) {
int l_10 [4] = {
1, 0, 0, 0
};
*g_403 = func_28 (&l_10[0]);
*g_311 = 1;
}
int main (void) {
func_1 ();
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