Firefox Crash @ mozilla::SignalTracerThread

RESOLVED FIXED in mozilla13



6 years ago
6 years ago


(Reporter: marcia, Assigned: smichaud)


({crash, regression})

12 Branch
crash, regression

Firefox Tracking Flags

(Not tracked)


(crash signature)


(1 attachment)



6 years ago
Low volume Mac crash.

Comments mention:

Clicked "restart now" in one of several addons I removed or disabled in the addon manager

I restarted Firefox to apply a new Firefox upgrade.

Frame 	Module 	Signature 	Source
0 	XUL 	mozilla::SignalTracerThread 	
1 	XUL 	-[GeckoNSApplication sendEvent:] 	widget/cocoa/
2 	XUL 	ProcessPendingGetURLAppleEvents 	toolkit/xre/
3 	XUL 	CommandLineServiceMac::SetupMacCommandLine 	toolkit/xre/nsCommandLineServiceMac.cpp:101
4 	XUL 	XRE_main 	toolkit/xre/nsAppRunner.cpp:1625
5 	firefox 	main 	browser/app/nsBrowserApp.cpp:189
6 	firefox 	firefox@0x1573

Comment 1

6 years ago
It first appeared in 12.0a1/20120107.
There is a Widget Gtk version on Linux.
Keywords: regression
Hardware: x86 → x86_64
Summary: Firefox Crash [@ mozilla::SignalTracerThread ] → Firefox Crash in GeckoNSApplication sendEvent @ mozilla::SignalTracerThread
Version: Trunk → 12 Branch

Comment 2

6 years ago
Recategorizing because these also happen on Linux.
Component: Widget: Cocoa → Widget
QA Contact: cocoa → general
Hardware: x86_64 → All


6 years ago
Summary: Firefox Crash in GeckoNSApplication sendEvent @ mozilla::SignalTracerThread → Firefox Crash @ mozilla::SignalTracerThread


6 years ago
OS: Mac OS X → All

Comment 3

6 years ago
The crash stacks on Linux are much more informative:

0 	mozilla::SignalTracerThread 	Mutex.h:106
1 	TracerCallback 	widget/gtk2/WidgetTraceEvent.cpp:58
4 	mozilla::SignalTracerThread 	Mutex.h:188
5 		@0x9 	
6 	nsAppShell::ScheduleNativeEventCallback 	widget/gtk2/nsAppShell.cpp:157
7 		@0x7fe981c4e01f 	
13 	nsAppShell::ProcessNextNativeEvent 	widget/gtk2/nsAppShell.cpp:162

Comment 4

6 years ago
> It first appeared in 12.0a1/20120107.


On Linux the first one is in build 20120105083933:


Comment 5

6 years ago
(Following up comment #4)

I can't find any obvious candidate for this bug's trigger among the patches landed just before the 2012-01-05 nightlies.  In any case this crash is too low volume to use build ids to identify the exact build they started in.

Comment 6

6 years ago
On Linux these crashes appear to take place at the following line, probably after a call to mozilla::CleanUpWidgetTracing() had invalidated sMutex:

Comment 7

6 years ago
On OS X I'd bet they take place at the following line, for the same reason:

Comment 8

6 years ago
On Windows we *should* be seeing crashes at the following line:

I'm not sure why we don't.
Benoit added some APIs to let us enable this tracing functionality in a scriptable manner, for use with the profiling extension. This functionality is off by default (and only normally enabled via environment variable), so it's unlikely to affect users that haven't installed the profiling extension.

Steven: the widget-specific bits are fairly different, so it wouldn't surprise me if Windows doesn't crash here.

In fact, we have a known Linux shutdown crash in this code (bug 710296), which is why we didn't enable it on Linux Talos yet.
I looked through the crash reports, the only extensions that I know are using this are 'about:jank' and 'Gecko Profiler', none of which show up in the crash report. Could they show up under <id>@jetpack?
These crashes should be very easy to fix:  Just make CleanUpWidgetTracing() null out sMutex (on OS X and Linux).

And for good measure, on Windows CleanUpWidgetTracing() should null out sEventHandle.

I don't know if widget tracing has been implemented on other platforms.  But if it has, similar changes would be needed there.
(Following up comment #11)

Oops, the code already does this on OS X and Linux.  I meant to say that, on these platforms, SignalTracerThread() should check if sMutex or sCondVar is NULL.

Patch coming up.
Created attachment 603449 [details] [diff] [review]
Assignee: nobody → smichaud
Attachment #603449 - Flags: review?(ted.mielczarek)
Duplicate of this bug: 733670
Comment on attachment 603449 [details] [diff] [review]

Review of attachment 603449 [details] [diff] [review]:

Seems plausible. It's definitely going to crash if either of those are NULL. You'll want to watch the Talos Tp5 runs on Tinderbox, because we run Windows/Mac with this tracing enabled there.
Attachment #603449 - Flags: review?(ted.mielczarek) → review+
Blocks: 710296
Comment on attachment 603449 [details] [diff] [review]

Landed on mozilla-inbound:
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.