http://llvm.org/bugs/show_bug.cgi?id=7950
Summary: Crash (pointer being freed was not allocated) when
compiling a LLVM example
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
I was compiling examples/Kaleidoscope/Chapter4/toy.cpp (in LLVM source tree):
$ clang++ toy.cpp `llvm-config --cppflags --ldflags --libs core jit native`
And the program crashed:
$ ./a.out
a.out(30913) malloc: *** error for object 0x7fff70b7a500: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap
I'm using trunk clang and LLVM. I'm pretty sure this bug is introduced in
recent commits because I was always using trunk clang and LLVM it didn't fail
when compiling the very same file several days ago.
OS is Mac OS X 10.6 x86_64, configure options are --enable-optimized
--disable-assertions --enable-bindings=none --enable-shared. Happy to provide
any other information if you need.
BTW, thank you for such an amazing project! I almost forgot the days I have to
read the error output by g++ that I cannot understand.
--
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