13 questions
0
votes
0
answers
57
views
SIGSEGV in boost::stacktrace::frame::source_line when accessing thread_local storage on macOS 15 Clang 17 intel; Boost bug or Clang bug or macOS bug?
We have a C++20 library that compiles several Boost modules and statically links their object files into our shared library. One of those modules is Boost.Stacktrace. We compile this library, and a ...
0
votes
1
answer
240
views
Printing stacktrace with boost library in MVSC 32 bits
Im trying to implement a solution in which the stacktrace is printed when an exception occurs. Im doing this in Qt creator and I need this to work with MingGW and MSVC compilers for 32 and 64 bits.
I ...
2
votes
0
answers
797
views
How to print stack trace with line numbers in C++ and macOS
I want to produce stacktraces for certain errors. I tried Boost's stacktrace header, and I don't get line numbers. I'm compiling with the latest Clang. I'm using -g so it should be adding debug info.
#...
1
vote
1
answer
677
views
How make "boost::stacktrace" work with Clang on Windows?
I am trying to use boost::stacktrace under Clang on Windows.
While it works with the MSVC compiler, using clang-cl instead it just outputs memory addresses like 0x00007FF63D371D14 in main.exe instead ...
0
votes
0
answers
461
views
SIGSEGV when getting backtrace in a signal hanlder after invalid function call
I'm trying to write a SIGSEGV/SIGABRT handler for my C++ program, but it doesn't seem to be able to properly unwind the stack when the segfault is due calling a function at an invalid address. Here's ...
-1
votes
1
answer
983
views
Boost's stacktrace library doesn't work with C++ CLI
I have been using the Boost stacktrace library to print out a stacktrace of my program.
Boost 1.78.0
When compiling with pure C++ it compiles and my program prints the stacktrace nicely.
However when ...
1
vote
1
answer
2k
views
boost::stacktrace fails to provide line number
I'm having issues with getting the line number of a stack frame provided by boost::stacktrace. When printing the task with boost::stacktrace::to_string it prints the line number but when calling ...
4
votes
0
answers
630
views
On Release build, why does boost::stacktrace::stacktrace() produce a decoded stacktrace only when an absolute PDB file path is in the exe/dll file?
I am working on a c++ project using Microsoft visual studio 2017. We use boost::stacktrace::stacktrace() API to generate a functions stacktrace when the application crashes.
Recently I noticed on ...
2
votes
1
answer
1k
views
Using BOOST_STACKTRACE_USE_BACKTRACE on Windows with MinGW64
I am building a Qt application using Windows and MinGW64. I need to use Boost Stacktrace to generate stack traces like the Linux build of the application already does.
The corresponding switch ...
2
votes
0
answers
539
views
Human readable boost::stacktrace::safe_dump output
I'm trying to set up a stacktrace logging signal handler using boost::stacktrace. The Boost documentation suggests:
#include <signal.h> // ::signal, ::raise
#include <boost/stacktrace.hpp&...
1
vote
1
answer
225
views
Making sense of stacktrace
I have been trying to debug an issue with my service which results in a segmentation fault. I do not have access to the production server, so I have handled the SIGSEGV signal in my service and ...
2
votes
1
answer
122
views
How to determinte how much space to allocate for boost::stacktrace::safe_dump_to?
I'm looking at the boost::stacktrace::safe_dump_to API and I cannot for the life of me work out how to determine how much space to allocate for the safe_dump_to() call. If I pass (nullptr, 0), it just ...
2
votes
1
answer
2k
views
Failing to get line numbers with Boost stacktrace + backtrace
I'm trying to reproduce the first and simplest example in the Boost Stacktrace documentation.
#define BOOST_STACKTRACE_USE_BACKTRACE
#include <boost/stacktrace.hpp>
#include <iostream>
...