From 75a3b85877941516c8430603f876019b916a6240 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 18 Aug 2010 14:22:07 +0000 Subject: * exceptions.cc (open_stackdumpfile): Don't try to open file if we have no filesystem based CWD. Add comment. * path.cc (cwdstuff::set): Set CWD handle to NULL if CWD is a virtual path. Simplify matching comment. --- winsup/cygwin/exceptions.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index a2afa5e0f..e904ff188 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -128,7 +128,10 @@ error_start_init (const char *buf) static void open_stackdumpfile () { - if (myself->progname[0]) + /* If we have no executable name, or if the CWD handle is NULL, + which means, the CWD is a virtual path, don't even try to open + a stackdump file. */ + if (myself->progname[0] && cygheap->cwd.get_handle ()) { const WCHAR *p; /* write to progname.stackdump if possible */ -- cgit v1.2.3