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

[package] boost/all: BOOST_STACKTRACE_USE_NOOP always defined #7502

Closed
ghost opened this issue Oct 2, 2021 · 2 comments
Closed

[package] boost/all: BOOST_STACKTRACE_USE_NOOP always defined #7502

ghost opened this issue Oct 2, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Oct 2, 2021

Package and Environment Details

  • Package Name/Version: boost/all
  • Operating System+version: Linux Ubuntu 20.04
  • Compiler+version: GCC 10
  • Conan version: conan 1.40.3
  • Python version: Python 3.8.10

Steps to reproduce

The below code with a standard boost install, always produces an empty stacktrace because BOOST_STACKTRACE_USE_NOOP is always defined.

#include <iostream>
#include "boost/stacktrace.hpp"


void f3()
{
  std::cout << "********** Start backtrace **********" << std::endl;
  std::cout << boost::stacktrace::stacktrace() << std::endl;
  std::cout << "********** End backtrace **********" << std::endl;
}

void f2()
{
  f3();
}

void f1()
{
  f2();
}


int main()
{
  f1();
  return 0;
}

@ghost ghost added the bug Something isn't working label Oct 2, 2021
@ghost
Copy link
Author

ghost commented Oct 2, 2021

Proposed fix has been submitted here: #7503

@ghost
Copy link
Author

ghost commented Oct 3, 2021

Misunderstood the usage here, details can be found in the above closed PR.

Thanks to @madebr for all the help!

@ghost ghost closed this as completed Oct 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants