Skip to content

[libunwind,v12.0.1] : unw_step() fails without this patch to set _unwindInfoMissing in UnwindCursor.hpp #54799

Open
@JVD66

Description

@JVD66

Without the attached patch, which simply sets the cursor _unwindInfoMissing boolean to false
when valid info is found, to the source from 'libunwind-12.0.1-src.tar.xz' ,
all calls to unw_step() fail, even if valid unwind info was found, on any of the platforms:
x86_64-redhat-linux (Fedora Core Linux 34),
aarch64-unknown-linux-android2{4,6,8,9} , and arm-unknown-linux-androideabi2{4,6,8,9} .

Without the patch, calls to unw_step() ALWAYS return UNW_STEP_END (0).
With the patch, the same code that expects UNW_STEP_SUCCESS values from unw_step()
now gets them, and prints full stack traces.

libunwind-12.0.1.patch.txt

It took me a long time to find and correct this bug !

Nothing in UnwindCursor.hpp was setting _unwindInfoMissing to false, when valid info was found !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs Fix

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions