Opened 11 years ago

#5712 new Bugs

terminate called recursively with filesystem header

Reported by: philipp.kraus@… Owned by: Beman Dawes
Milestone: Component: filesystem
Version: Boost 1.47.0 Severity: Problem
Keywords: exception filesystem terminate recursively Cc:

Description

Hello,

I'm using boost::filesystem within my project (boost 1.47.0). I have compiled the boost under cygwin with bjam. I have some problems with exception throws / catches: The following example shows the problem:

#include <stdexcept> #include <boost/filesystem.hpp>

int main(int argc, char* argv[]) {

throw std::runtime_error("xxx"); return 0;

}

If I compile this code under Cygwin and link cygboost_filesystem, cygboost_system and libbost_exception, the programs terminates with this messages: terminate called after throwing an instance of 'std::runtime_error' terminate called recursively

If I remove the boost/filesystem include the program produce the correct message: terminate called after throwing an instance of 'std::runtime_error'

what(): xxx

If I change the program to:

int main(int argc, char* argv[]) {

try {

throw std::runtime_error("xxx");

} catch (...) {} return 0;

}

the program breaks down with the filesystem include: terminate called after throwing an instance of 'std::runtime_error' terminate called recursively

without the include always works fine.

Thanks a lot

Change History (0)

Note: See TracTickets for help on using tickets.