[Bug gdb/25178] New: GDB crashes when run from a deleted directory

tavianator at tavianator dot com sourceware-bugzilla@sourceware.org
Fri Nov 8 20:50:00 GMT 2019


            Bug ID: 25178
           Summary: GDB crashes when run from a deleted directory
           Product: gdb
           Version: 8.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: tavianator at tavianator dot com
  Target Milestone: ---

I was trying to debug something in my own program that fails when run in a
non-existent working directory, but...

$ mkdir foo
$ cd foo
$ rmdir ../foo
$ gdb echo
gdb: warning: error finding working directory: No such file or directory
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:

For help, type "help".
Type "apropos word" to search for commands related to "word"...
[1]    102098 segmentation fault (core dumped)  gdb echo

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Gdb-prs mailing list