diff --git a/src/compile.cpp b/src/compile.cpp index a7e67b7e9a..d857d7ba51 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -6351,7 +6351,9 @@ class SegFaultHandler: public System::SignalHandler { void* oldBase = t->base; void* oldStack = t->stack; - t->ip = *ip; + // add one to the IP since findLineNumber will subract one + // when we make the trace: + t->ip = static_cast(*ip) + 1; t->base = *base; t->stack = static_cast(*stack) - t->arch->frameReturnAddressSize();