Comment 3 for bug 2019295

Revision history for this message
Benjamin Drung (bdrung) wrote : Re: ubuntu 20.04 can not collect app dump

Investigation so far
====================

The crashing Python code line:

```
exe_mtime = os.stat('exe', dir_fd=proc_pid_fd).st_mtime
```

I search my system for processes where /proc/<pid>/exe could not be read by running `sudo ls /proc/[0-9]*/exe` and looking for error messages. I found one process:

```
$ sudo LANG=C stat /proc/6157/exe
  File: /proc/6157/exe -> /snap/snapd/19122/usr/lib/snapd/snapd
  Size: 0 Blocks: 0 IO Block: 1024 symbolic link
Device: 0,22 Inode: 68395 Links: 1
Access: (0777/lrwxrwxrwx) Uid: (1000000/ UNKNOWN) Gid: (1000000/ UNKNOWN)
Access: 2023-05-15 10:35:02.600000873 +0200
Modify: 2023-05-15 10:35:02.584000872 +0200
Change: 2023-05-15 10:35:02.584000872 +0200
 Birth: -
$ sudo LANG=C stat /snap/snapd/19122/usr/lib/snapd/snapd
stat: cannot statx '/snap/snapd/19122/usr/lib/snapd/snapd': No such file or directory
```