PermissionError: [Errno 13] Permission denied when capturing executable path

Bug #1863007 reported by Scott Hollenbeck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Undecided
Unassigned

Bug Description

My OS: Ubuntu 18.04.4 LTS (GNU/Linux 5.3.7-x86_64-linode130 x86_64)

I've noticed that apport (version 2.20.9-0ubuntu7.9) is reporting a "permission denied" error when processing PHP-FPM 7.2 crashes, which is preventing the production of crash reports. This is what I see in /var/log/apport.log:

ERROR: apport (pid 16310) Wed Feb 12 14:04:22 2020: called for pid 16308, signal 7, core limit 18446744073709551615, dump mode 2
ERROR: apport (pid 16310) Wed Feb 12 14:04:22 2020: ignoring implausibly big core limit, treating as unlimited
ERROR: apport (pid 16310) Wed Feb 12 14:04:22 2020: not creating core for pid with dump mode of 2
ERROR: apport (pid 16310) Wed Feb 12 14:04:22 2020: Unhandled exception:
Traceback (most recent call last):
  File "/usr/share/apport/apport", line 589, in <module>
    info.add_proc_info(proc_pid_fd=proc_pid_fd)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 548, in add_proc_info
    self['ExecutablePath'] = os.readlink('exe', dir_fd=proc_pid_fd)
PermissionError: [Errno 13] Permission denied: 'exe'
ERROR: apport (pid 16310) Wed Feb 12 14:04:22 2020: pid: 16310, uid: 33, gid: 33, euid: 0, egid: 0
ERROR: apport (pid 16310) Wed Feb 12 14:04:22 2020: environment: environ({})

/proc/16310/exe looks like this:

lrwxrwxrwx 1 root root 0 Feb 12 14:04 /proc/16310/exe -> /usr/sbin/php-fpm7.2

/usr/sbin/php-fpm7.2 looks like this:

-rwxr-xr-x 1 root root 4869304 Jan 13 13:39 /usr/sbin/php-fpm7.2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.