Crash in [@ Mutex::Lock]
Categories
(Core :: Gecko Profiler, defect)
Tracking
()
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
| Reporter | ||
Comment 1•2 years ago
|
||
When trying to profile with Native Allocations on Linux.
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Comment 3•2 years ago
|
||
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?
| Assignee | ||
Comment 4•2 years ago
|
||
Yes, the TLS storage is allocating but this is called from the allocator so it creates a loop.
| Assignee | ||
Comment 5•2 years ago
|
||
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.
Updated•2 years ago
|
Comment 7•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Description
•