Closed Bug 1791427 Opened 2 years ago Closed 2 years ago

[snap] ptrace not authorized prevents crash reporter

Categories

(Firefox Build System :: General, defect)

Firefox 104
x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1791428

People

(Reporter: simon.deziel, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

Something caused Firefox to crash triggering the crash reporter.

Additional information:

$ snap list firefox
Name Version Rev Tracking Publisher Notes
firefox 104.0.2-1 1810 latest/stable/… mozilla✓ -

Actual results:

The crash reporter couldn't do its job due to the snap confinement preventing the use of ptrace. Here is is what's in the journal around the time of the crash:

Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[7249]: ExceptionHandler::GenerateDump cloned child 75652
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[7249]: ExceptionHandler::SendContinueSignalToChild sent continue signal to child
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[75652]: ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7249] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7339] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7340] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7341] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7342] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7343] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7350] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7353] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7354] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur kernel: ptrace attach of "/snap/firefox/1810/usr/lib/firefox/firefox"[7355] was attempted by "/snap/firefox/1810/usr/lib/firefox/firefox"[75652]
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[75096]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[74266]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[45702]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[27709]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[52334]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[41954]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[25568]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[9103]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[7664]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[7482]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[8899]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[75518]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[8075]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[74666]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[7441]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[7492]: Exiting due to channel error.
Sep 19 12:20:23 sdeziel-lemur firefox_firefox.desktop[7772]: Exiting due to channel error.
Sep 19 12:20:24 sdeziel-lemur crashreporter[75653]: Failed to load module "canberra-gtk-module"
Sep 19 12:20:24 sdeziel-lemur crashreporter[75653]: Failed to load module "canberra-gtk-module"
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox Build System
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.