[LLVMbugs] [Bug 8578] New: clang segfault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 9 22:49:42 PST 2010


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

           Summary: clang 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


[regehr at n10 tmp900]$ clang -v

clang version 2.9 (trunk 118666)
Target: i386-pc-linux-gnu
Thread model: posix

[regehr at n10 tmp900]$ clang -O3 -c small.c -w

clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

[regehr at n10 tmp900]$ cat small.c

struct S1
{
  signed f1:1;
};

unsigned char g_85;

struct S1 g_101 = {
  1068
};

struct S1 func_70 (struct S1 p_71)
{
  if (0)
    {
    }
  else
    {
      unsigned char t_260;
      unsigned char l_259;
      for (l_259 = 0;; l_259 = (t_260 = l_259, t_260 ^ 0 & -1 ^ 0 ? : -1))
    {
      unsigned char t_263;
      signed char t_264;
      signed char t_265;
      unsigned char *l_266 = &g_85;
      *l_266 ^= (p_71.f1, t_263 =
             (t_264 = g_101.f1, t_265 = l_259, t_264 > 0 && t_265 > 0
              && 0 > -t_265 || t_264 < 0 && t_265 < 0
              && 1 - 0 ? : +1), 0 ? : +t_263);
    }
    }
}

-- 
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