[LLVMdev] Bug in DragonEgg or LLVM
Duncan Sands
baldrick at free.fr
Wed Nov 10 13:05:08 PST 2010
Hi,
> The following code using OpenMP pragmas , when compiled with gcc 4.5 + LLVM 2.8 + DragonEgg 2.8 and ran, produces segmentation fault.
I just tried it on x86-64 linux with latest dragonegg from svn, and it executes
fine, with no valgrind complaints. After compiling at -O0 valgrind does say
==7251== Syscall param exit_group(status) contains uninitialised byte(s)
==7251== at 0x4ED8598: _Exit (_exit.c:33)
==7251== by 0x4E674A4: exit (exit.c:93)
==7251== by 0x4E4CD94: (below main) (libc-start.c:258)
but that's because you forgot to return a value from main, so rubbish is
returned as the exit code.
How did you build the program and on what platform?
Ciao,
Duncan.
More information about the llvm-dev
mailing list