boost filesystem crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
boost1.58 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 16.04.
I'm trying to compile simple program using boost::filesystem:
#include <iostream>
#include <boost/
namespace boostfs = boost::filesystem;
int main(int argc, char **argv)
{
boostfs::path p = boostfs:
std::cout << p.native() << std::endl;
return 0;
}
However it crashes:
==3548== Invalid read of size 1
==3548== at 0x4E49793: boost::
==3548== by 0x4E499B9: boost::
==3548== by 0x4016E8: main (main.cpp:9)
==3548== Address 0xb51dc488d5803297 is not stack'd, malloc'd or (recently) free'd
==3548==
==3548==
==3548== Process terminating with default action of signal 11 (SIGSEGV)
==3548== General Protection Fault
==3548== at 0x4E49793: boost::
==3548== by 0x4E499B9: boost::
==3548== by 0x4016E8: main (main.cpp:9)
It seems there is a bug in the boost filesystem package.