Subject: [Boost-bugs] [Boost C++ Libraries] #12567: boost::filesystem::path::generic crashes on Windows while attempting to build a network share path
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-28 16:02:50
#12567: boost::filesystem::path::generic crashes on Windows while attempting to
build a network share path
----------------------------------+-------------------------
Reporter: alexandra.ghecenco@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.60.0 | Severity: Showstopper
Keywords: |
----------------------------------+-------------------------
I'm attempting to check whether a file on a shared path exists. The path
is an unaccessible RDC share on WinXP.
Code snippet:
{{{
bool fileOk = boost::filesystem::exists(i_pFileName, ec) &&
boost::filesystem::is_regular_file(i_pFileName, ec);
}}}
pFileName is a const char*, value
{{{
\\tsclient\E\floating_Jasper.cap
}}}
That specific path is inaccessible.
I can't post the whole call stack because of company policy, but the
faulting boost frames are as follows:
{{{
0:000> kb
ChildEBP RetAddr Args to Child
WARNING: Stack unwind information not available. Following frames may be
wrong.
0012f2f8 78ac872d e06d7363 00000001 00000003 kernel32!RaiseException+0x52
0012f330 02785a5f 0012f354 027939fc 7d335a21
MSVCR100!CxxThrowException+0x45
0012f3b8 02786a5a 0012f460 0012f48c 00000000
boost_filesystem_vc100_mt_1_60!boost::filesystem::path::generic+0xc1f
0012f418 00b47169 0012f460 0012f48c 00000000
boost_filesystem_vc100_mt_1_60!boost::filesystem::detail::status+0x5a
}}}
I'd expect this to return an error code and not crash.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12567> 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:50:20 UTC