Crash reporter "Unable to submit" ... "failed to move" if your Firefox profile is in a volume other than your home directory
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
People
(Reporter: somenothing, Assigned: afranchuk)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr128+
|
Details | Review |
Comment 1•16 years ago
|
||
Updated•16 years ago
|
Comment 3•16 years ago
|
||
Comment 5•16 years ago
|
||
Comment 8•16 years ago
|
||
Comment 9•16 years ago
|
||
Comment 10•16 years ago
|
||
Comment 11•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last months and this bug has severity 'major'.
:gsvelto, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
| Assignee | ||
Comment 12•1 year ago
•
|
||
This is still a problem! I just tried on win10 and a profile on a different volume prevents the crash reporter from being able to move the file where it needs to go. This relates to bug 1884947, as we should examine whether we should be moving things away from the profile at all.
The solution here is to copy the file and delete the old one (or, if it's not too hard, detect whether they are the same mount/filesystem and only move in that case as an optimization).
Comment 14•1 year ago
|
||
Analysis and implementation details from my report at bug 1909209 is below:
When I ran Firefox from a profile directory in /tmp/ (mounted as a tmpfs) and triggered a crash, the crash reporter was unable to report the crash. It showed a dialog with:
Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a report for the crash.
Details: Failed to move /path/to/profile/minidumps/uuid.dmp to /home/user/.mozilla/firefox/Crash Reports/pending/uuid.dmp
Looks like the error came from https://searchfox.org/mozilla-central/rev/5756c5a3dea4f2896cdb3c8bb15d0ced5e2bf690/toolkit/crashreporter/client/app/src/config.rs#240-241
fs::rename is used to move the file, but that is documented to not work when the destination is on a different mountpoint: "This will not work if the new name is on a different mount point."
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 15•1 year ago
|
||
Rather than renaming files (which must be on the same
volume/filesystem), we copy and delete them. This is less efficient,
however the files in question are fairly small, so there's probably no
need to rename when we can as an optimization.
Comment 16•1 year ago
|
||
Comment 17•1 year ago
|
||
| bugherder | ||
Comment 18•1 year ago
|
||
Comment on attachment 9414869 [details]
Bug 506009 - Crash reporter client: support profiles on different volumes than the home directory r=gsvelto
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This issue breaks submitting crash reports in the Thunderbird flatpak. Since the default (stable) Thunderbird flatpak is based on Thunderbird ESR 128, it does not yet have this fix. It would be a boon to get this uplifted to Firefox ESR, and subsequently Thunderbird ESR, since the ability to submit crash reports is critical.
- User impact if declined: The crash reporter in the default (stable) flatpak cannot submit crash reports.
- Fix Landed on Version: 130
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This fix has been on both mozilla-central and mozilla-beta for a month without issue.
Comment 19•1 year ago
|
||
Comment on attachment 9414869 [details]
Bug 506009 - Crash reporter client: support profiles on different volumes than the home directory r=gsvelto
Approved for 128.3esr.
Updated•1 year ago
|
Comment 20•1 year ago
|
||
| uplift | ||
Updated•1 year ago
|
Comment 21•1 year ago
•
|
||
We've reproduced this issue using Firefox 128.1.0 ESR on Windows 11 x64 by creating a Firefox profile on a portable USB drive. After navigating to about:crashparent in a new tab and hitting the Enter key, we received the following notification: Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a report for this crash.
The issue has been verified as fixed in the latest Nightly 132.0a1, Firefox 130.0.1 and Firefox 128.3.0 ESR versions across multiple devices( Windows 10/11 x64, macOS 13, and Ubuntu 22.04), as the issue no longer occurs.
Updated•1 year ago
|
Updated•1 year ago
|
Description
•