[LLVMbugs] [Bug 13390] New: Clang segmentation fault
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jul 18 03:54:20 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13390
Bug #: 13390
Summary: Clang segmentation fault
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: merkil at savhon.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hi !
The following testcase makes LLVM/Clang as of r160430 segfault (only at -O3).
$ cat segfault.c
int a, b, c;
void func(void)
{
int i, j, d = 1, *e = 0;
while(1)
{
for(i = 0; i < 1; i++)
for(j = 0; j < 1; j++)
if(b = 0, (d || a) < (i++ ^ (j -= c)))
e = 1;
if(b + i)
{
*e = 0;
while(1);
}
d = 0;
}
}
$ clang -O3 -w segfault.c
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 160430)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
This looks like a regression since I can't reproduce it with LLVM/Clang 3.1.
Please let me know if you need anything else !
--
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