Closed Bug 1917205 Opened 2 years ago Closed 2 years ago

Crash in [@ Mutex::Lock]

Categories

(Core :: Gecko Profiler, defect)

defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr128 --- wontfix
firefox130 --- wontfix
firefox131 --- wontfix
firefox132 --- fixed

People

(Reporter: julienw, Assigned: pbone)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 external file)

Crash report: https://crash-stats.mozilla.org/report/index/bb3de75b-3bc9-4e4e-a1f5-e02670240906

Reason: SIGSEGV / SEGV_ACCERR

Top 9 frames:

0  firefox-bin  Mutex::Lock()  memory/build/Mutex.h:94
0  firefox-bin  MaybeMutex::Lock()  memory/build/Mutex.h:204
0  firefox-bin  AutoLock<MaybeMutex>::AutoLock(MaybeMutex&)  memory/build/Mutex.h:251
0  firefox-bin  arena_t::MallocSmall(unsigned long, bool)  memory/build/mozjemalloc.cpp:3449
0  firefox-bin  arena_t::Malloc(unsigned long, bool)  memory/build/mozjemalloc.cpp:3505
0  firefox-bin  BaseAllocator::calloc(unsigned long, unsigned long)  memory/build/mozjemalloc.cpp:4765
0  firefox-bin  MozJemalloc::calloc(unsigned long, unsigned long)  memory/build/malloc_decls.h:52
0  firefox-bin  PageCalloc(mozilla::Maybe<unsigned long> const&, unsigned long, unsigned long)  memory/build/PHC.cpp:1591
0  firefox-bin  MozJemallocPHC::calloc(unsigned long, unsigned long)  memory/build/PHC.cpp:1595

When trying to profile with Native Allocations on Linux.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1910609
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
No longer duplicate of bug: 1910609
Resolution: DUPLICATE → ---

Another crash I got that seems more useful, where I disabled PHC in about:config:
https://crash-stats.mozilla.org/report/index/24e6bf21-6351-48a4-bdf3-5359d0240906

Hey Paul, it looks like PHC might be involved, what do you think?

See Also: → 1879033

Yes, the TLS storage is allocating but this is called from the allocator so it creates a loop.

Assignee: nobody → pbone
Status: REOPENED → ASSIGNED

Using TLS variables can allocate, which is very annoying in allocation
handlers. It seems that allocation can be avoided if the key-based TLS
variable has a relatively low key so that it can be allocated in an earlier
TLS page. This patch causes the TLS storage to be initialised during
process startup helping to ensure that the TLS key is lower.

It seems to work with key based TLS but not with native TLS, despite that
working without allocation in PHC and mozjemalloc.

Attachment #9424068 - Attachment description: Bug 1917205 - Initialise the profiler's TLS earlier r=julienw → Bug 1917205 - Initialise the profiler's TLS earlier r=canaltinova
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0b54a735665e Initialise the profiler's TLS earlier r=profiler-reviewers,canaltinova
Blocks: 1919685
Status: ASSIGNED → RESOLVED
Closed: 2 years ago → 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: