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...
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]
: Andrew Overholt [:overholt]
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:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

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 3 Ed Morley [:emorley] 2012-07-18 05:56:32 PDT

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