Closed Bug 1486759 Opened 6 years ago Closed 6 years ago

The Mozilla Crash Reporter window is not displayed when using a non-ascii profile

Categories

(Toolkit :: Crash Reporting, defect)

63 Branch
Desktop
Windows
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla64
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox61 --- unaffected
firefox62 --- unaffected
firefox63 blocking verified
firefox64 --- verified

People

(Reporter: cbaica, Assigned: Sylvestre)

References

Details

(Keywords: regression)

Attachments

(2 files)

Attached image crash-reporter-bug
[Affected versions]:
- Fx63.0b1
- Fx63.0a1

[Unaffected versions]:
- Fx62.0b20
- Fx62.0

[Affected platforms]:
- Windows 10 x64
- Windows 7 x64

[Steps to reproduce]:
1. Launch Firefox from the command line to reach the 'Choose user profile' window.
2. Create a new profile using non-ascii characters. (e.g. ☻☺☕ճմյµ®).
3. Start Firefox using the created profile.
4. Crash Firefox by typing into the address bar "about:crashparent".

[Expected result]:
- The Mozilla Crash Reporter window is displayed.

[Actual result]:
- The user only receives a warning prompt, informing him of an error that has occurred.

[Regression range]:
- I will look into the regression range as soon as possible.

[Additional notes]:
- This issue seems to be a particularity for the windows environments.
- There is no crash report generated for that profile (about:crashes section is empty).
- Using a profile containing normal characters will have the Mozilla Crash Reporter window correctly displayed.
Severity: normal → major
This is a known problem, probably caused by bug 1435999.
that bug seems old, do you have an explanation for this one apparently only affecting 63?
(In reply to Julien Cristau [:jcristau] from comment #2)
> that bug seems old, do you have an explanation for this one apparently only
> affecting 63?

That's weird, this should affect all versions. Firefox 63 however ships with a new version of Breakpad, it's possible that the interaction between the code within Firefox and in the crashreporter client changed because of that causing this issue. I'll investigate it ASAP.
I have managed to narrow it down as follows:
The last good build ID: 20180715220110.
The first bad build ID: 20180716100102.
bug 1475384 kind of jumps out from that push log.
Looping in :dmajor based on comment 5.
Flags: needinfo?(dmajor)
crashreporter.exe's entry point is `main` with lld rather than `wWinMain` that was desired, so extended characters in argv don't survive the translation.

I think this is https://bugs.llvm.org/show_bug.cgi?id=36523
Assignee: nobody → dmajor
Flags: needinfo?(dmajor)
Status: NEW → ASSIGNED
The LLVM fix was merged into the 7.0.0 release branch post-rc2, we should switch to rc3 when the tag is ready.
According to llvm.org, the final 7.0.0 release should be today-ish. David, what version of LLVM are we currently using for 63? Now that 63 is on Beta, I'm wondering what the delta is between the final release and whatever version we're currently using. Should we consider just cherry-picking the upstream fix for Beta63?
The fix depends on previous changesets so it would be annoying to cherry-pick. We're currently on a trunk revision from the first day of 8.0.0. I think it would be useful to move to 7.0.0 rc3 (and refresh again to the final release when available) to get a widely-tested revision and pick up fixes that LLVM considered release-blocking.
LLVM 7 won't ship today ( http://lists.llvm.org/pipermail/cfe-dev/2018-September/059245.html ). I expect it will ship in 1 or 2 weeks tops.
Not waiting for rc3 or final from llvm because the issue is pretty severe
Comment on attachment 9006810 [details]
Bug 1486759 - Cherry pick a lld fix to fix the Windows entry point r?dmajor,glandium

David Major [:dmajor] has approved the revision.
Attachment #9006810 - Flags: review+
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/addfbb3c6167
Cherry pick a lld fix to fix the Windows entry point r=dmajor
Assignee: dmajor → sledru
Blocks: 1475384
https://hg.mozilla.org/mozilla-central/rev/addfbb3c6167
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment on attachment 9006810 [details]
Bug 1486759 - Cherry pick a lld fix to fix the Windows entry point r?dmajor,glandium

Approval Request Comment
[Feature/Bug causing the regression]: bug 1475384
[User impact if declined]: No crash in some context
[Is this code covered by automated tests?]: I don't think but this is linker level stuff. If we didn't break firefox ci, we should be safe.
The change has been in upstream (lld) trunk for about a month.
[Has the fix been verified in Nightly?]: No, I don't have a Windows and the code just landed
[Needs manual test from QE? If yes, steps to reproduce]: See comment #0
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: Probably not
[Why is the change risky/not risky?]: Upstream didn't regress with that patch, I think we are good.
[String changes made/needed]: NA
Attachment #9006810 - Flags: approval-mozilla-beta?
Flags: qe-verify+
I didn't test the full scenario with a profile but I confirmed in a debugger that the m-c opt build's entry point is wWinMain.
Tested the fix using Fx 64.0a1 (buildID: 20180909220130) on Windows 10 x64 and Windows 7 x64. The Mozilla Crash Reporter is now displayed after Mozilla crashes.
Marking as Verified for the Firefox 64 branch and waiting for the fix on beta as well.
Comment on attachment 9006810 [details]
Bug 1486759 - Cherry pick a lld fix to fix the Windows entry point r?dmajor,glandium

Uplift approved for 63 beta 5
Attachment #9006810 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Tested the uplift using the latest beta Fx 63.0b5 on Windows 10 x64, macOS 10.13.6 and Ubuntu 16.04 x86. The Mozilla Crash Reporter window is displayed without any issues and the crash report is generated.
Marking the issue as verified fixed.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: