bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.68k stars 467 forks source link

backward trace with compressed debug sections #282

Closed davidebenato closed 1 year ago

davidebenato commented 1 year ago

Hello,

I am using backward-cpp successfully for my project. I compile with gcc on Linux. My binary is very large, and in order to mitigate the size I found I could compress the debug sections by running:

objcopy --compress-debug-sections my_binary

Unfortunately as a consequence of this, backtrace-cpp doesn't display the backtrace anymore. I compile the library using the conan package, configured as follows:

    default_options = {
        "shared": False,
        "fPIC": True,
        "stack_walking": "unwind",
        "stack_details": "dw",
    }

Could you please advise if what I am trying to do is supported?

davidebenato commented 1 year ago

somehow it started working as expected