Closed Bug 1753976 Opened 4 years ago Closed 3 years ago

Crash in [@ DoSharedSample]

Categories

(Core :: Gecko Profiler, defect, P2)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: julienw, Unassigned)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file, 1 obsolete file)

Maybe Fission related. (DOMFissionEnabled=1)

Crash report: https://crash-stats.mozilla.org/report/index/1c3f5fa0-ea28-4cdd-b7df-435880220207

Reason: SIGSEGV / SEGV_ACCERR

Top 1 frames of crashing thread:

0 libxul.so DoSharedSample tools/profiler/core/platform.cpp:2324

This is my STR:

  1. Enable "native allocations" in about:profiling
  2. Start the profiler.
  3. Open a popup such as the profiler's popup or Firefox' main menu. Or open a new window with Ctrl-N. This seems to happen when creating a new window in general (on Linux, I believe popups are different windows).
Attached file about:crashes (obsolete) —
Attachment #9262640 - Attachment mime type: text/plain → application/json
Attachment #9262640 - Attachment mime type: application/json → text/plain
Attached file about:support —
Attachment #9262640 - Attachment is obsolete: true

This isn't new, after using mozregression it looks like this was introduced in 2020. Here is the pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6d45a17995e220d26df280d6af6c3bf81b69b348&tochange=b7717ee20ba9d676a6f559efbcb45027db0003c6
Because it's that old I can't reduce the pushlog further :/

Here is a pernosco recording of the crash on a recent mozilla-central: https://pernos.co/debug/yzaY0O1WCmd061WOBCc8Yg/index.html

(In reply to Julien Wajsberg [:julienw] from comment #4)

Here is a pernosco recording of the crash on a recent mozilla-central: https://pernos.co/debug/yzaY0O1WCmd061WOBCc8Yg/index.html

I see the crash in the Renderer thread...

(In reply to Julien Wajsberg [:julienw] from comment #3)

This isn't new, after using mozregression it looks like this was introduced in 2020. Here is the pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6d45a17995e220d26df280d6af6c3bf81b69b348&tochange=b7717ee20ba9d676a6f559efbcb45027db0003c6

... and one of the patches there is bug 1667406 - "add Renderer to the default thread filter". It makes sense that this crash started then, but I wouldn't call that bug the cause, it just made this situation more common.

The crash is inside replace_realloc calling profiler_add_native_allocation_marker, so it's indeed due to the Native Allocations feature.

The SIGSEGV points at LUL::Unwind, but I don't see any code being executed there. Looking at the instructions executed, we may still have been in the function start when it's pushing data to the stack.
Could this "just" be a stack overflow?
The address at fault is 0x7f58f61baff8, suspiciously just under a nice round number 0x7f58f61bb000.
Early stack pointers in this thread are near 0x7f58f61fA000, ~252KB away, that's quite a big stack! What do you think?

Severity: S2 → S3
Priority: -- → P2

Closing because no crashes reported for 12 weeks.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
See Also: → 1910609
Duplicate of this bug: 1811865
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: