Skip to content

Commit 5fe117f

Browse files
committed
Also fix the 'Skip excessive stack frames' thing not working
1 parent cda5963 commit 5fe117f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Common/StackTrace.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ StackTrace::StackTrace(const ucontext_t & signal_context)
369369
/// Skip excessive stack frames that we have created while finding stack trace.
370370
for (size_t i = 0; i < size; ++i)
371371
{
372-
if (frame_pointers[i] == caller_address)
372+
if (frame_pointers[i] == caller_address ||
373+
/// This compensates for a hack in libunwind, see the "+ 1" in
374+
/// UnwindCursor<A, R>::stepThroughSigReturn.
375+
frame_pointers[i] == caller_address + 1)
373376
{
374377
offset = i;
375378
break;

0 commit comments

Comments
 (0)