olympus-robotics / hephaestus

Hephaestus is a C++ framework designed to facilitate robotics development by providing commonly needed functionality and abstractions.
MIT License
25 stars 4 forks source link

Stacktrace print util #73

Closed filippobrizzi closed 4 months ago

filippobrizzi commented 4 months ago

Description

Create a class util that pretty prints the stack trace when there is a segfault.

Add the class to all app binary.

johannes-graeter commented 4 months ago

sorry for hooking in unasked, but would https://en.cppreference.com/w/cpp/utility/basic_stacktrace an alternative (voting for c++23 :) )

filippobrizzi commented 4 months ago

sorry for hooking in unasked, but would https://en.cppreference.com/w/cpp/utility/basic_stacktrace an alternative (voting for c++23 :) )

Yep, as soon as we can switch to C++23 we can replace the print with that. The class is still useful to abstract the signal registration