Skip to content

Address sanitizer complains when exceptions are thrown #70

@HK47196

Description

@HK47196

minimal example:

#include <boost/context/all.hpp>

namespace bcx = boost::context;

int main(){
  auto c = bcx::callcc([](bcx::continuation&& c_){
    try {
      throw 5;
    } catch(const int&){
    }
    return std::move(c_);
  });
}

output:

==21820==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc47270000; bottom 0x631000023000; size: 0x1cec4724d000 (31801131454464)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189

clang v5.0.0 and gcc 7.2.1, boost 1.65.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions