Skip to content

On arm signal trace error #333

@Makmanfu

Description

@Makmanfu

compilation platform:Linux frp-OptiPlex-7050 5.4.0-173-generic #191-Ubuntu SMP Fri Feb 2 13:55:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
host platform:arm-linux-gnueabihf

source code:

#define BACKWARD_HAS_DW 1
#include "backward.hpp"

int func2(int * a){
    * a = 12;
    return *a;
}

int func1(){
    return func2(nullptr);
}

int main(int argc, char* argv[]) {
    backward::SignalHandling sh;

    func1();
    return 0;
}

result:

/userdata # ./untitled
Stack trace (most recent call last):
#5 Object "", at 0xb6c8f14f, in
#4 Source "/home/frp/1-Code/example/untitled/backward.hpp", line 4296, in sig_handler [0x33b13]
#3 Source "/home/frp/1-Code/example/untitled/backward.hpp", line 4270, in handleSignal [0x33a85]
#2 Source "/home/frp/1-Code/example/untitled/backward.hpp", line 886, in load_from [0x31961]
#1 Source "/home/frp/1-Code/example/untitled/backward.hpp", line 879, in load_here [0x318ef]
#0 Source "/home/frp/1-Code/example/untitled/backward.hpp", line 861, in unwind<backward::StackTraceImplbackward::system_tag::linux_tag::callback> [0x33e1d]
Segmentation fault (Address not mapped to object [(nil)])
Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions