Last Comment Bug 774708 - [b2g-bluetooth] Bluetooth event handler registration crashes gecko in the emulator when Bluetooth isn't initialized
: [b2g-bluetooth] Bluetooth event handler registration crashes gecko in the emu...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: DOM: Device Interfaces (show other bugs)
: Trunk
: x86 Mac OS X
: -- normal (vote)
: mozilla17
Assigned To: Marshall Culpepper [:marshall_law]
:
:
Mentors:
Depends on:
Blocks: b2g-bluetooth
  Show dependency treegraph
 
Reported: 2012-07-17 09:11 PDT by Marshall Culpepper [:marshall_law]
Modified: 2012-07-18 05:56 PDT (History)
4 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
observer map crash fix - v1 (1.77 KB, patch)
2012-07-17 09:15 PDT, Marshall Culpepper [:marshall_law]
kyle: review+
Details | Diff | Splinter Review

Description Marshall Culpepper [:marshall_law] 2012-07-17 09:11:46 PDT
The emulator doesn't have Bluetooth support, so initialization will (correctly) gracefully fails in that situation.

The crashes occur when RegisterBluetoothEventHandler / UnregisterBluetoothEventHandler try to access the static map |sBluetoothEventObserverTable| even though it hasn't been initialized yet. These calls look to be coming from BluetoothManager::Create
Comment 1 Marshall Culpepper [:marshall_law] 2012-07-17 09:15:37 PDT
Created attachment 642993 [details] [diff] [review]
observer map crash fix - v1
Comment 2 Kyle Machulis [:kmachulis] [:qdot] 2012-07-17 09:46:33 PDT
http://hg.mozilla.org/integration/mozilla-inbound/rev/e5b62d2de123
Comment 3 Ed Morley [:emorley] 2012-07-18 05:56:32 PDT
https://hg.mozilla.org/mozilla-central/rev/e5b62d2de123

Note You need to log in before you can comment on or make changes to this bug.