[LLVMbugs] [Bug 7950] New: Crash (pointer being freed was not allocated) when compiling a LLVM example
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 20 10:29:43 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: tianyicui at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list