I am using MSVC 2019 with the default backend (dbgeng), and occasionally the function name ends with the null character \0. A simplified example:
::boost::stacktrace::stacktrace st(...);
for (auto it = st.crbegin(); it != st.crend(); ++it) {
if (it->name().find('\0') != ::std::string::npos) {
std::cout << "Null character found!\n";
}
}
The null character seems to be at the end of it->name(), and it seems to happen when the function name is quite long. It is happening, for instance, with a function called
Hello,
I am using MSVC 2019 with the default backend (
dbgeng
), and occasionally the function name ends with the null character\0
. A simplified example:The null character seems to be at the end of
it->name()
, and it seems to happen when the function name is quite long. It is happening, for instance, with a function calledThe identical code on OSX with the default backend does not seem to have this issue, so the problem seems to be confined to the
dbgeng
backend.