[LLVMbugs] [Bug 4551] New: segfault

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jul 13 19:39:16 PDT 2009


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

           Summary: segfault
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


Seen on Ubuntu Hardy on x86.

regehr at john-home:~/volatile/tmp168$ llvm-gcc -O2 -w small.c
small.c:52: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs/> for instructions.

regehr at john-home:~/volatile/tmp168$ llvm-gcc -v

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure
--prefix=/home/regehr/z/tmp/llvm-gcc-r75580-install
--program-prefix=llvm-r75580- --enable-languages=c,c++
--enable-llvm=/home/regehr/z/tmp/llvm-r75580 --enable-checking=release
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5646) (LLVM build)

regehr at john-home:~/volatile/tmp168$ cat small.c

char
safe_mul_func_char_u_u (char _ui1, char _ui2)
{
  return _ui1;
}

char
safe_add_func_int_u_u (int _ui1, char _ui2)
{
  return _ui1 + 1;
}

char
safe_sub_func_int_u_u (int _ui1, char _ui2)
{
  return _ui1 - 1;
}

char
safe_mod_func_int_u_u (int _ui1, char _ui2)
{
  return 1 ? _ui1 : 1;
}
struct S1
{
};
int g_11;
char g_64;
struct S1 func_53 (int p_54, int p_55);
char
func_16 (int p_17)
{
  return p_17;
}

uint87 (int p_28, char p_29, char p_31, char p_32)
{
  char l_34;
  for (1; l_34; l_34 = safe_sub_func_int_u_u (l_34, 1))
    {
      func_53 (p_32, !g_64);
    }
}
struct S1
func_53 (int p_54, int p_55)
{
  for (p_55 = 1; p_55; p_55 = safe_add_func_int_u_u (p_55, 1))
    g_11 =
      safe_mod_func_int_u_u (func_16
                                  (safe_mul_func_char_u_u (p_55, 1)),
                                  func_16);
}


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