Closed Bug 1919685 Opened 2 years ago Closed 2 years ago

Profiler crashes while capturing native allocations

Categories

(Core :: Gecko Profiler, defect)

x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1910609

People

(Reporter: pbone, Unassigned)

References

Details

I see this crash when capturing native allocation:

#01: WasmTrapHandler(int, siginfo_t*, void*) (/mnt/dev/moz/prof_hook/js/src/wasm/WasmSignalHandlers.cpp:796)
#02: ??? (/lib/x86_64-linux-gnu/libc.so.6 + 0x3c050)
#03: DoSharedSample(bool, unsigned int, mozilla::profiler::ThreadRegistrationUnlockedReaderAndAtomicRWOnThread const&, JS::ProfilingFrameIterator::Frame*, Registers const&, unsigned long, unsigned long, ProfileBuffer&, mozilla::StackCaptureOptions) (/mnt/dev/moz/prof_hook/tools/profiler/core/platform.cpp:2932)
#04: profiler_capture_backtrace_into(mozilla::ProfileChunkedBuffer&, mozilla::StackCaptureOptions)::$_0::operator()(mozilla::profiler::ThreadRegistration::OnThreadRef) const (/mnt/dev/moz/prof_hook/tools/profiler/core/platform.cpp:7679)
#05: profiler_capture_backtrace_into(mozilla::ProfileChunkedBuffer&, mozilla::StackCaptureOptions) (/mnt/dev/moz/prof_hook/tools/profiler/core/platform.cpp:7662)
#06: mozilla::profiler::profiler_add_native_allocation_marker(long, unsigned long) (/mnt/dev/moz/prof_hook/tools/profiler/core/memory_hooks.cpp:113)
#07: mozilla::profiler::AllocCallback(void*, unsigned long) (/mnt/dev/moz/prof_hook/tools/profiler/core/memory_hooks.cpp:417)
#08: replace_malloc(unsigned long) (/mnt/dev/moz/prof_hook/tools/profiler/core/memory_hooks.cpp:478)
#09: moz_xmalloc (/mnt/dev/moz/prof_hook/memory/mozalloc/mozalloc.cpp:53)
#10: ProfilingStack::ensureCapacitySlow() (/mnt/dev/moz/prof_hook/js/src/vm/ProfilingStack.cpp:41)
[Parent 1216454, IPC I/O Parent] WARNING: [1.1]: Dropping message '<null>'; no connection to unknown peer F0B71BB5A460A027.94D72400492E40E2: file /mnt/dev/moz/prof_hook/ipc/glue/NodeController.cpp:364
#11: nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) (/mnt/dev/moz/prof_hook/xpcom/components/nsComponentManager.cpp:1166)
#12: nsGetServiceByContractID::operator()(nsID const&, void**) const (/mnt/dev/moz/prof_hook/xpcom/components/nsComponentManagerUtils.cpp:241)
#13: WatchdogMain(void*) (/mnt/dev/moz/prof_hook/js/xpconnect/src/XPCJSContext.cpp:521)
#14: _pt_root (/mnt/dev/moz/prof_hook/nsprpub/pr/src/pthreads/ptthread.c:204)
#15: set_alt_signal_stack_and_start(PthreadCreateParams*) (/mnt/dev/moz/prof_hook/mozglue/interposers/pthread_create_interposer.cpp:81)
#16: ??? (/lib/x86_64-linux-gnu/libc.so.6 + 0x89144)
#17: ??? (/lib/x86_64-linux-gnu/libc.so.6 + 0x1097dc)
#18: ??? (???:???)

Using a recent build from mercurial, with Bug 1917205 applied, running on Linux on amd64.

STR:

  1. Open firefox
  2. Visit profiler.firefox.com to enable the profiler, (click the button there etc).
  3. Click the little arrow next to the profiler symbol in the toolbar,
  4. Choose Edit Settings
  5. Enable "Memory Tracking" and "Native Allocations"
  6. Start capturing with the profiler.
  7. Visit reddit.com or similarly "sufficiently complex" website and look around for a minute.
  8. The browser or a process should crash in about 15 seconds. Well, it shouldn't, that's the observed behaviour.

This is a different signature from Bug 1917205, I don't believe they're related except that they're in the same feature and Bug 1917205 crashed at an earlier point masking this problem.

Flags: needinfo?(canaltinova)
See Also: → 1910609

Related to Bug 1910609 but I'm not sure this is the same root cause.

I can reproduce the same crash and it looks like it's the same one as Bug 1910609. I'm closing this one and moving the valuable information there. Thank you for all the STR and extra information!

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1910609
Flags: needinfo?(canaltinova)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.