Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function name sometimes contains null character #78

bluescarni opened this issue Jun 10, 2019 · 0 comments


Copy link

commented Jun 10, 2019


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

piranha::detail::series_add_term_table<1,1,1,1,0,piranha::series<piranha::polynomials::packed_monomial<int,void>,mppp::rational<1>,void,void>,absl::flat_hash_map<piranha::polynomials::packed_monomial<int,void>,mppp::rational<1>,piranha::detail::series_key_hasher,piranha::detail::series_key_comparer,std::allocator<std::pair<piranha::polynomials::packed_monomial<int,void>const ,mppp::rational<1> > > >,piranha::polynomials::packed_monomial<int,void>,int>

The 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.

apolukhin added a commit that referenced this issue Jun 28, 2019

@apolukhin apolukhin closed this in 36734b1 Jun 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.