Opened 12 years ago

Closed 8 years ago

#4567 closed Bugs (invalid)

exists method core-dumps

Reported by: anonymous Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

string dir; exists( dir ); --> This coredumps in the following scenario on Linux

Say, an existing dir ("/home/user1" ). Now, this has a dir (say, "dir1" ) mounted from windows (thru Samba). Just for clarification - the actual dir exists on Windows that is mounted on Linux.

If we write

dir = "/home/user1
dir1"; exists( dir ); --> crashes

However, if we have dir = "/home
user1"; exists( dir ); DOES not cause a crash

Change History (4)

comment:1 by rao_anant@…, 12 years ago

The backslashes didn't get printed correctly. So, I'm using BS for backslash ("\") (the Windows dir symbol). There will be two blackslahes that causes the crash.

dir = "/home/user1BSBSdir1"; exists( dir ); --> crashes

However, if we have dir = "/homeBSBSuser1"; exists( dir ); DOES not cause a crash

For any clarifications, you can contact me by email given.

comment:2 by anonymous, 12 years ago

My email addr: rao_anant @ yahoo.com

comment:3 by Beman Dawes, 11 years ago

Status: newassigned

I'm wondering if this is a Samba bug, rather than a Boost.Filesystem bug.

Unfortunately, I don't know anything about Samba, so that makes it very difficult to test.

If you could run your test program under a debugger and let me know where (i.e. what line in what function) the crash is occurring, that might help.

Thanks,

--Beman

comment:4 by Beman Dawes, 8 years ago

Resolution: invalid
Status: assignedclosed

This ticket is being closed because there has been no response to the request for more information.

If anyone is still experiencing the reported problem, please open a new ticket. Please supply a sample program that exhibits the crash, and describe the steps needed to reproduce the problem.

Thanks,

--Beman

Note: See TracTickets for help on using tickets.