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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
See below:
y...@yang-working:~$ clang small.c -O1 -o small
y...@yang-working:~$ ./small
Segmentation fault (core dumped)
y...@yang-working:~$ clang -O1 -emit-llvm -c -o small.bc small.c
y...@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)
y...@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;
}
y...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs