[LLVMbugs] [Bug 5644] New: Execution Segment Fault with -O1

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Nov 30 10:58:54 PST 2009


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

           Summary: Execution Segment Fault with -O1
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: chenyang at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, regehr at cs.utah.edu,
                    jxyang at cs.utah.edu


See below:

yang at yang-working:~$ clang small.c -O1 -o small
yang at yang-working:~$ ./small
Segmentation fault (core dumped)
yang at yang-working:~$ clang -O1 -emit-llvm -c -o small.bc small.c
yang at yang-working:~$ lli small.bc
0  lli       0x08c5477c
1  lli       0x08c54d88
2            0xffffe420  + 0
3  lli       0x088be095
llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*,
std::vector<std::string, std::allocator<std::string> > const&, char const*
const*) + 1197
4  lli       0x084b8eb1 main + 2067
5  libc.so.6 0xb7c69450 __libc_start_main + 224
6  lli       0x084b7d91
Stack dump:
0.      Program arguments: lli small.bc
Segmentation fault (core dumped)
yang at yang-working:~$ cat small.c

static void func_1(void)
{
   unsigned char l_2 = 1;
   for (l_2 = 0; (l_2 > -1); l_2--)
   {

   }
}

int main(void)
{
   func_1();
   return 0;
}
yang at yang-working:~$ clang -v
clang version 1.1 (trunk 90028)
Target: i386-pc-linux-gnu
Thread model: posix


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