Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] segfault in path::imbue after upgrade to boost 1.52
From: Shawn Chidester (schidester_at_[hidden])
Date: 2013-01-02 11:19:43


> the stack trace looks like this happens before reaching main() function.
> Hmm, the file is named example.cpp ;) Can you give us a minimal working
> code example that triggers this crash?

Certainly. Here's an example that causes the segfault (took me a while
to wheedle it down to this):

> #include <boost/filesystem.hpp>
> boost::filesystem::path baseDirectory = boost::filesystem::current_path();
> int main()
> {
> return 0;
> }

Here's code that doesn't segfault:

> #include <boost/filesystem.hpp>
> int main()
> {
> boost::filesystem::path baseDirectory = boost::filesystem::current_path();
> return 0;
> }

Thanks,
Shawn


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net