keystone-engine / keystone

Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
http://www.keystone-engine.org
GNU General Public License v2.0
2.25k stars 450 forks source link

Segmentation fault (in "llvm::isa_impl_wrap<…>::doit(…)") when running: kstool systemz '.org .-x^0;x:' #220

Open practicalswift opened 8 years ago

practicalswift commented 8 years ago
$ kstool systemz '.org .-x^0;x:'
Segmentation fault
$ valgrind kstool systemz '.org .-x^0;x:'
==17491== Stack overflow in thread 1: can't grow stack to 0xffe801ff8
==17491==
==17491== Process terminating with default action of signal 11 (SIGSEGV)
==17491==  Access not within mapped region at address 0xFFE801FF8
==17491==    at 0x50483E9: llvm::isa_impl<llvm::MCBinaryExpr, llvm::MCExpr, void>::doit(llvm::MCExpr const&) (Casting.h:56)
practicalswift commented 8 years ago

Crash case in #221