[LLVMbugs] [Bug 12885] New: wrongful segfault in generated code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 18 21:53:48 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12885
Bug #: 12885
Summary: wrongful segfault in generated code
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
Classification: Unclassified
[regehr at dyson r52]$ clang -v
clang version 3.2 (trunk 157064)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at dyson r52]$ clang -O0 small.c ; ./a.out
[regehr at dyson r52]$ clang -O small.c ; ./a.out
Segmentation fault
[regehr at dyson r52]$ cat small.c
struct S1
{
int f0;
int f2;
int f3;
int f6;
char f8;
} a[1];
int
main ()
{
struct S1 b[] = { 1, 1, 1, 1, 1, 1, 1 };
b[0].f0 = 0;
a[0] = b[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