Opened 15 years ago
Closed 15 years ago
#1073 closed Bugs (fixed)
operations.cpp, dummy_first_name lifetime
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | Boost 1.35.0 | Component: | filesystem |
Version: | Boost 1.34.1 | Severity: | Problem |
Keywords: | Cc: |
Description
In operations.cpp, in the dir_itr_first function, there is a static std::string called dummy_first_name. If the user attempts directory iteration from the destructor of a global object, it fails because at that time the static std::string is already destroyed.
Change History (6)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Component: | Building Boost → filesystem |
---|---|
Owner: | set to |
comment:3 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
What version do you have? There is no such string in 1.34.0 and later, so I'm assuming you have an old version and so am closing the issue.
--Beman
comment:4 by , 15 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I see
static const std::string dummy_first_name( "." );
at operations.cpp:1185 in the trunk.
comment:5 by , 15 years ago
Milestone: | To Be Determined → Boost 1.35.0 |
---|---|
Version: | → Boost 1.34.1 |
Yep, I saw that too last night. I had been looking at the Windows code; the fix was needed in the POSIX code.
In researching this further, I realized that revision 35823 inadvertently dropped fixes from the two prior revisions. I'm fixing those too.
These fixes are going into branches/filesystem in a few minutes. I hope to merge that branch into the trunk later this week.
Thanks,
--Beman
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
OK, the fixes were committed this morning. See revision 39002. I'm closing the ticket.
--Beman
Sorry the bug is in boost::filesystem.