[Boost-bugs] [Boost C++ Libraries] #2218: boost::filesystem::remove_all portability problem

Subject: [Boost-bugs] [Boost C++ Libraries] #2218: boost::filesystem::remove_all portability problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-18 22:46:59


#2218: boost::filesystem::remove_all portability problem
----------------------------------------------------------------+-----------
 Reporter: Giovani Manzeppi Faccin <faccin.giovani_at_[hidden]> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: filesystem
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: remove_all |
----------------------------------------------------------------+-----------
 I'm using boost::filesystem to make some file manipulations on C++. The
 relevant code is this:

 //Creating a path:

 boost::filesystem::path calc_folder( some_string.c_str() );

 //Creating a work directory:

 boost::filesystem::create_directory( calc_folder );

 (... lots of code - basically write data on files on calc_folder )

 //Closing stream - this is the stream with which I was writing on files on
 the calc_folder;

 mss_out_stream.close();

 //Removing temporary directory:

 boost::filesystem::remove_all( calc_folder );

 This works fine on my notebook (Gentoo linux, amd64, boost-1.34.1).

 Now we take the same program and switch to an SGI Altix cluster using
 boost-1.36.0. When it reaches the line:

 boost::filesystem::remove_all( calc_folder );

 The program quits throwing an exception complaining about the directory
 being removed is not empty. If I go there to check the dir, there's
 nothing inside it; but it's still there. So somehow, on the Altix system,
 this is not working.

 On my gentoo box the same program works perfectly.

 If you wish to access the entire code, here is the link to the problematic
 routine (the line that crashes is the 197:

 http://hg.sharesource.org/mss/file/8c3f15e54282/src/Potential_Openmx.cpp

 If you wish to try the program, you can get it from here:

 http://sharesource.org/project/mss/wiki/

 Finally, any tests you might require, just tell me and I can compile on
 both machines (mine and the problematic cluster) and we can check out
 what's going on.

 Thanks!

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2218>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC