Closed Bug 1757209 Opened 2 years ago Closed 2 years ago

Crash in [@ libxul.so@0x367f548 | libxul.so@0x367ef2b | libxul.so@0x1b13a28 | libxul.so@0x1b14616 | libxul.so@0x5e648d9 | libxul.so@0x6076c74 | libxul.so@0x60642ed | libxul.so@0x60aa724 | libxul.so@0x1b1a1d9 | libxul.so@0x1b197e8 | libxul.so@0x1b19348 ...

Categories

(Core :: Widget: Gtk, defect)

Desktop
Linux
defect

Tracking

()

VERIFIED FIXED
99 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox97 --- unaffected
firefox98 + unaffected
firefox99 --- fixed

People

(Reporter: olivier, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

Crashes started happening with the snap build of nightly with revision 1035, based on https://hg.mozilla.org/mozilla-central/rev/2eda0885cbada5c74f3b6c8d40b68ecb0f1826c1.

I can reliably trigger the crash by simply clicking the hamburger button to show the menu.

Maybe Fission related. (DOMFissionEnabled=1)

Crash report: https://crash-stats.mozilla.org/report/index/1a3ca7b2-7441-4521-a755-9f3d80220225

Reason: SIGSEGV / SEGV_MAPERR

Top 10 frames of crashing thread:

0 libxul.so libxul.so@0x000000000367f548 
1 libxul.so libxul.so@0x000000000367ef2b 
2 libxul.so libxul.so@0x0000000001b13a28 
3 libxul.so libxul.so@0x0000000001b14616 
4 libxul.so libxul.so@0x0000000005e648d9 
5 libxul.so libxul.so@0x0000000006076c74 
6 libxul.so libxul.so@0x00000000060642ed 
7 libxul.so libxul.so@0x00000000060aa724 
8 libxul.so libxul.so@0x0000000001b1a1d9 
9 libxul.so libxul.so@0x0000000001b197e8 

When the crash happens, I'm seeing the following apparmor denials, which I'm not seeing with an earlier revision that doesn't crash:

feb 25 18:44:13 dantian audit[129230]: AVC apparmor="DENIED" operation="mknod" profile="snap.firefox_nightly.firefox" name="/dev/shm/wayland.mozilla.ipc.0" pid=129230 comm="Renderer" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
feb 25 18:44:13 dantian kernel: audit: type=1400 audit(1645811053.845:3711): apparmor="DENIED" operation="mknod" profile="snap.firefox_nightly.firefox" name="/dev/shm/wayland.mozilla.ipc.0" pid=129230 comm="Renderer" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
Blocks: snap
Component: General → Release Automation: Snap
Product: Firefox → Release Engineering
QA Contact: mtabara
Version: Firefox 99 → unspecified

The regression was introduced by https://hg.mozilla.org/mozilla-central/rev/800e87c42d1d149f9c80c0d8f64a3984542d8165.
The implementation of GetSnapInstanceName() isn't correct, it will always return SNAP_INSTANCE_NAME aka MOZ_APP_NAME, instead of the value of g_getenv("SNAP_INSTANCE_NAME"). In my case, $SNAP_INSTANCE_NAME == firefox_nightly.

Regressed by: 1756083

Okay, so nsToolkitProfileService::IsSnapEnvironment was wrong I suppose.

Snaps have no debug symbols? It'd be great to get a proper stack anyways :)

Assignee: nobody → emilio
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/19c5c16d6554
Don't hardcode snap instance name. r=stransky

I can confirm the crash is gone in the latest nightly snap build (revision 1058).

Status: RESOLVED → VERIFIED
Component: Release Automation: Snap → Widget: Win32
Product: Release Engineering → Core
Target Milestone: --- → 99 Branch
Component: Widget: Win32 → Widget: Gtk

Set release status flags based on info from the regressing bug 1756083

Olivier, does it happen only with nightly snaps or also with beta snaps? We have already built our release candidate so I'd like to know if this bug is a blocker for the release, thanks.

Flags: needinfo?(olivier)

Fortunately, this only affected nightly snaps, the regression didn't make it into beta. Thus, not a blocker.

Flags: needinfo?(olivier)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: