Closed Bug 928135 Opened 11 years ago Closed 11 years ago

MOZ_ASSERT(mService) in ../../../dom/bluetooth/ipc/BluetoothParent.cpp:140

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gwagner, Assigned: shawnjohnjr)

References

Details

On nexus4 when opening the Settings APP:

Program received signal SIGSEGV, Segmentation fault.
0xb4c5a4da in RecvRegisterSignalHandler (this=<optimized out>, aNode=<optimized out>) at ../../../dom/bluetooth/ipc/BluetoothParent.cpp:140
140	  MOZ_ASSERT(mService);
(gdb) bt
#0  0xb4c5a4da in RecvRegisterSignalHandler (this=<optimized out>, aNode=<optimized out>) at ../../../dom/bluetooth/ipc/BluetoothParent.cpp:140
#1  mozilla::dom::bluetooth::BluetoothParent::RecvRegisterSignalHandler (this=0xae86b250, aNode=...) at ../../../dom/bluetooth/ipc/BluetoothParent.cpp:138
#2  0xb4f50950 in mozilla::dom::bluetooth::PBluetoothParent::OnMessageReceived (this=0xae86b250, __msg=...) at PBluetoothParent.cpp:327
#3  0xb4f6f6aa in mozilla::dom::PContentParent::OnMessageReceived (this=0xaea97c00, __msg=...) at PContentParent.cpp:1876
#4  0xb4f27004 in mozilla::ipc::MessageChannel::DispatchAsyncMessage (this=0xaea97c30, aMsg=...) at ../../../ipc/glue/MessageChannel.cpp:970
#5  0xb4f2982c in mozilla::ipc::MessageChannel::OnMaybeDequeueOne (this=0xaea97c30) at ../../../ipc/glue/MessageChannel.cpp:871
#6  0xb49f4266 in DispatchToMethod<WebCore::ReverbConvolver, void (WebCore::ReverbConvolver::*)()> (method=
    (void (WebCore::ReverbConvolver::*)(WebCore::ReverbConvolver * const)) 0xb4f29795 <mozilla::ipc::MessageChannel::OnMaybeDequeueOne()>, obj=<optimized out>, arg=<optimized out>)
    at ../../../../../ipc/chromium/src/base/tuple.h:383
#7  RunnableMethod<WebCore::ReverbConvolver, void (WebCore::ReverbConvolver::*)(), Tuple0>::Run (this=<optimized out>) at ../../../../../ipc/chromium/src/base/task.h:307
#8  0xb4f27468 in Run (this=<optimized out>) at ../../dist/include/mozilla/ipc/MessageChannel.h:440
#9  mozilla::ipc::MessageChannel::DequeueTask::Run (this=<optimized out>) at ../../dist/include/mozilla/ipc/MessageChannel.h:457
#10 0xb5254c50 in MessageLoop::RunTask (this=0xb6a4e1a0, task=0xae97a340) at ../../../ipc/chromium/src/base/message_loop.cc:338
#11 0xb52554ee in MessageLoop::DeferOrRunPendingTask (this=<optimized out>, pending_task=<optimized out>) at ../../../ipc/chromium/src/base/message_loop.cc:346
#12 0xb52565e2 in DoWork (this=<optimized out>) at ../../../ipc/chromium/src/base/message_loop.cc:446
#13 MessageLoop::DoWork (this=0xb6a4e1a0) at ../../../ipc/chromium/src/base/message_loop.cc:425
#14 0xb4f2a740 in mozilla::ipc::DoWorkRunnable::Run (this=<optimized out>) at ../../../ipc/glue/MessagePump.cpp:45
#15 0xb522f2f2 in nsThread::ProcessNextEvent (this=0xb6a02390, mayWait=<optimized out>, result=0xbecf17ff) at ../../../xpcom/threads/nsThread.cpp:622
#16 0xb51fe58a in NS_ProcessNextEvent (thread=0xb6a02390, mayWait=<optimized out>) at ../../../xpcom/glue/nsThreadUtils.cpp:238
#17 0xb4f2ac12 in mozilla::ipc::MessagePump::Run (this=0xb6a01dc0, aDelegate=0xb6a4e1a0) at ../../../ipc/glue/MessagePump.cpp:85
#18 0xb5254d96 in MessageLoop::RunInternal (this=0xb6a4e1a0) at ../../../ipc/chromium/src/base/message_loop.cc:220
#19 0xb5254dae in RunHandler (this=0xb6a4e1a0) at ../../../ipc/chromium/src/base/message_loop.cc:213
#20 MessageLoop::Run (this=0xb6a4e1a0) at ../../../ipc/chromium/src/base/message_loop.cc:187
#21 0xb4eba586 in nsBaseAppShell::Run (this=0xb1f26be0) at ../../../widget/xpwidgets/nsBaseAppShell.cpp:161
#22 0xb4de7738 in nsAppStartup::Run (this=0xb243d880) at ../../../../toolkit/components/startup/nsAppStartup.cpp:268
#23 0xb4486130 in XREMain::XRE_mainRun (this=0xbecf198c) at ../../../toolkit/xre/nsAppRunner.cpp:3886
#24 0xb4486308 in XREMain::XRE_main (this=0xbecf198c, argc=<optimized out>, argv=<optimized out>, aAppData=<optimized out>) at ../../../toolkit/xre/nsAppRunner.cpp:3954
#25 0xb4486454 in XRE_main (argc=1, argv=0xbecf3b44, aAppData=0x23948, aFlags=<optimized out>) at ../../../toolkit/xre/nsAppRunner.cpp:4156
#26 0x0000a45c in do_main (argv=0xbecf3b44, argc=1) at ../../../b2g/app/nsBrowserApp.cpp:168
#27 main (argc=<optimized out>, argv=<optimized out>) at ../../../b2g/app/nsBrowserApp.cpp:261
Probably caused by 925638?
Blocks: 925638
Or Maybe 880610
Blocks: 880610
And right before:
[Parent 831] WARNING: No platform support for bluetooth!: file ../../../dom/bluetooth/BluetoothService.cpp, line 317
[Parent 831] WARNING: NS_ENSURE_TRUE(service) failed: file ../../../dom/bluetooth/BluetoothService.cpp, line 751
[Parent 831] WARNING: NS_ENSURE_TRUE(btService) failed: file ../../../dom/ipc/ContentParent.cpp, line 2663
It shall be related to 880610 instead of 925638.
The problem can be happened because real bluedroid implementation in bluedroid does not exist yet, so null returned, which causes ASSERT for jb.
After Bug 928214 submitted, this will be fixed, i expect this shall be done in a few hours only.
(In reply to Shawn Huang from comment #6)
> After Bug 928214 submitted, this will be fixed, i expect this shall be done
> in a few hours only.

Bug 928214 is still not fixed. We can't have a broken debug build for a day. Please back out the patch that caused it!
Flags: needinfo?(shuang)
backout: https://hg.mozilla.org/integration/b2g-inbound/rev/7238f0bd3ebd

Settings app will crash after this patch applied. Bug 880610 will be backed out as well.

backout: https://hg.mozilla.org/integration/b2g-inbound/rev/51e1f24155fd

The patches has been backed out since this causes bug 928135. Bug 928214 should be able to solve bug 928135 this but it didn't.
Flags: needinfo?(shuang)
Bug 928214 should be able to solve bug 928135. I have verified it. 
As gwagner requests to backout first, so we indeed backout both patches of Bug 880610, 928214.
Assignee: nobody → shuang
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.