karelklic / canal

Abstract interpreter for real-world application programs
https://github.com/karelklic/canal/wiki
Other
32 stars 2 forks source link

Bad_cast in dereferencing pointers #57

Closed xbrukner closed 12 years ago

xbrukner commented 12 years ago
%90 = getelementptr inbounds %struct.stat* %st, i32 0, i32 3
%91 = load i32* %90, align 4
/home/tomas/projekty/canal/lib/Utils.h:148(dynCast) fatal error: std::bad_cast
[bt]: (1) /home/tomas/projekty/canal/lib/libcanal.so : Canal::Array::Interface& Canal::dynCast<Canal::Array::Interface&, Canal::Domain>(Canal::Domain&)+0xb6 [0x38df13]
[bt]: (2) /home/tomas/projekty/canal/lib/libcanal.so : Canal::Pointer::Target::dereference(Canal::State const&) const+0x291 [0x38da11]
[bt]: (3) /home/tomas/projekty/canal/lib/libcanal.so : Canal::Pointer::InclusionBased::dereferenceAndMerge(Canal::State const&) const+0x5b [0x389a8f]
[bt]: (4) /home/tomas/projekty/canal/lib/libcanal.so : Canal::Operations::load(llvm::LoadInst const&, Canal::State&)+0x55 [0x3835b9]
[bt]: (5) /home/tomas/projekty/canal/lib/libcanal.so : Canal::Operations::interpretInstruction(llvm::Instruction const&, Canal::State&)+0x749 [0x380f27]
[bt]: (6) /home/tomas/projekty/canal/lib/libcanal.so : Canal::InterpreterBlock::Iterator::interpretInstruction()+0x3f [0x379f15]
[bt]: (7) tool/canal : State::step(int)+0x26 [0x8071448]
[bt]: (8) tool/canal : CommandStep::run(std::vector<std::string, std::allocator<std::string> > const&)+0x89 [0x8070fd9]
[bt]: (9) tool/canal : Commands::executeLine(std::string const&)+0x222 [0x806ec32]
[bt]: (10) tool/canal : main+0x24f [0x8065a33]
[bt]: (11) /lib/i386-linux-gnu/libc.so.6 : __libc_start_main+0xf3 [0x5d24d3]
[bt]: (12) tool/canal() [0x8065451]

File tests/coreutils/wc.c