[LLVMbugs] [Bug 6889] New: memory unsafety crash bug
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 21 19:35:34 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6889
Summary: memory unsafety crash bug
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
Seen on x86 Linux. Valgrind reports use of freed RAM. I cannot seem to repro
using opt.
regehr at john-home:~/volatile/bugs/tmp315$ clang -c -w -O1 small.c
clang:
/home/regehr/z/compiler-build/llvm-r102031/include/llvm/Support/Casting.h:202:
typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::CallInst, Y = llvm::Instruction*]: Assertion `isa<X>(Val) && "cast<Ty>()
argument of incompatible type!"' failed.
0 clang 0x08fcee58
Stack dump:
0. Program arguments:
/home/regehr/z/compiler-install/llvm-gcc-r102031-install/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4
-resource-dir
/home/regehr/z/compiler-install/llvm-gcc-r102031-install/lib/clang/1.5 -O1 -w
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 89
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-bODr6C.s
-x c small.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'small.c'.
4. Running pass 'Loop Pass Manager' on function '@int326'
5. Running pass 'Loop Invariant Code Motion' on basic block
'%for.cond5.preheader'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
regehr at john-home:~/volatile/bugs/tmp315$ clang -v
clang version 1.5 (trunk 102031)
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