Opened 6 years ago
#12567 new Bugs
boost::filesystem::path::generic crashes on Windows while attempting to build a network share path
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost 1.60.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.