[LLVMbugs] [Bug 8243] New: clang wrongful crash bug

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 27 15:48:26 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8243

           Summary: clang wrongful crash bug
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            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


[regehr at gamow ~]$ clang -v
clang version 2.9 (trunk 114808)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow ~]$ clang -O1 small.c -o small
[regehr at gamow ~]$ ./small
Segmentation fault
[regehr at gamow ~]$ cat small.c
struct S0 {
  int f0;
  int f1;
  int f2;
  int f3;
};

struct S1 {
  int f0;
  struct S0 f2;
};

struct S1  func_2(struct S1 p_3)
{
   struct S1 l_148 = {0,{1,2,3,4}};
   return l_148;
}

int main(void)
{
  struct S1 l_149[1] = {{1,{1,1,1,1}}};
  struct S1 *l_151 = &l_149[0];
  *l_151 = func_2(l_149[0]);
  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