mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
fix incorrect line numbers in NPE traces
This commit is contained in:
parent
e47c149fb1
commit
b0ba70866e
@ -6351,7 +6351,9 @@ class SegFaultHandler: public System::SignalHandler {
|
|||||||
void* oldBase = t->base;
|
void* oldBase = t->base;
|
||||||
void* oldStack = t->stack;
|
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<uint8_t*>(*ip) + 1;
|
||||||
t->base = *base;
|
t->base = *base;
|
||||||
t->stack = static_cast<void**>(*stack)
|
t->stack = static_cast<void**>(*stack)
|
||||||
- t->arch->frameReturnAddressSize();
|
- t->arch->frameReturnAddressSize();
|
||||||
|
Loading…
Reference in New Issue
Block a user