Last Comment Bug 739452 - RIL IPC Thread crashes on Desktop Builds
: RIL IPC Thread crashes on Desktop Builds
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: DOM: Device Interfaces (show other bugs)
: Trunk
: x86_64 Linux
: -- normal (vote)
: mozilla14
Assigned To: Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
:
: Andrew Overholt [:overholt]
Mentors:
: 739136 741337 (view as bug list)
Depends on: 738063
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-26 15:55 PDT by Kyle Machulis [:qdot]
Modified: 2012-04-03 02:10 PDT (History)
9 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
part 1: Catch errors in importing cutils, since (unfortunately) this code also runs on desktop builds (2.96 KB, patch)
2012-04-01 01:58 PDT, Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
mrbkap: review+
Details | Diff | Splinter Review
part 2: Ensure we don't process stale 'reconnect' tasks after shutting down (5.58 KB, patch)
2012-04-01 01:58 PDT, Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
kyle: review+
Details | Diff | Splinter Review

Description Kyle Machulis [:qdot] 2012-03-26 15:55:32 PDT
When building m-c with --enable-b2g-ril in the mozconfig on Ubuntu 11.04 64-bit, the RIL thread crashes on startup.


Log:

WARNING: NS_ENSURE_TRUE(compMgr) failed: file /home/kmachulis/code/mozbuild/mozilla-central/obj-debug/xpcom/build/nsComponentManagerUtils.cpp, line 90
WARNING: dependent window created without a parent: file /home/kmachulis/code/mozbuild/mozilla-central/toolkit/components/startup/nsAppStartup.cpp, line 590
++DOCSHELL 0x7f5f738b4c00 == 1 [id = 1]
++DOMWINDOW == 1 (0x7f5f738b6078) [serial = 1] [outer = (nil)]
++DOMWINDOW == 2 (0x7f5f738b7c78) [serial = 2] [outer = 0x7f5f738b6000]
************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: file:///home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/components/nsHandlerService.js :: <TOP_LEVEL> :: line 925"  data: no]
************************************************************
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
Xinerama superpowers activated for 2 screens!
WARNING: OpenGL-accelerated layers are not supported on this system.: file /home/kmachulis/code/mozbuild/mozilla-central/widget/xpwidgets/nsBaseWidget.cpp, line 836
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 643
WARNING: NS_ENSURE_TRUE(startupCache) failed: file /home/kmachulis/code/mozbuild/mozilla-central/content/xbl/src/nsXBLDocumentInfo.cpp, line 713
--DOCSHELL 0x7f5f738b4c00 == 0 [id = 1]
WARNING: nsExceptionService ignoring thread destruction after shutdown: file /home/kmachulis/code/mozbuild/mozilla-central/xpcom/base/nsExceptionService.cpp, line 199
--DOMWINDOW == 1 (0x7f5f738b6078) [serial = 1] [outer = (nil)] [url = chrome://mozapps/content/profile/profileSelection.xul]
--DOMWINDOW == 0 (0x7f5f738b7c78) [serial = 2] [outer = (nil)] [url = about:blank]
Cannot open socket for RIL!
JS Component Loader: ERROR file:///home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/components/WifiWorker.js:63
                     Error: couldn't open library
WARNING: NS_ENSURE_TRUE(worker) failed: file /home/kmachulis/code/mozbuild/mozilla-central/dom/system/gonk/SystemWorkerManager.cpp, line 362
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /home/kmachulis/code/mozbuild/mozilla-central/dom/system/gonk/SystemWorkerManager.cpp, line 232
++DOCSHELL 0x7fe72a195000 == 1 [id = 1]
++DOCSHELL 0x7fe72a880800 == 2 [id = 2]
++DOMWINDOW == 1 (0x7fe72a881878) [serial = 1] [outer = (nil)]
++DOMWINDOW == 2 (0x7fe72a882c78) [serial = 2] [outer = 0x7fe72a881800]
++DOMWINDOW == 3 (0x7fe7252b3c78) [serial = 3] [outer = (nil)]
++DOMWINDOW == 4 (0x7fe7252b5078) [serial = 4] [outer = 0x7fe7252b3c00]
++DOCSHELL 0x7fe72530d400 == 3 [id = 3]
++DOMWINDOW == 5 (0x7fe72530e078) [serial = 5] [outer = (nil)]
++DOCSHELL 0x7fe72530ec00 == 4 [id = 4]
++DOMWINDOW == 6 (0x7fe72530f878) [serial = 6] [outer = (nil)]
SmsDatabaseService: Opened database: sms 1
SmsDatabaseService: Started transaction [object IDBTransaction @ 0x7fe7234159e0 (native @ 0x7fe7234f8700)] of type readonly
SmsDatabaseService: Retrieving object store sms
WARNING: Unable to test style tree integrity -- no content node: file /home/kmachulis/code/mozbuild/mozilla-central/layout/base/nsCSSFrameConstructor.cpp, line 8000
SmsDatabaseService: Could not get the last key from sms database. Probably empty database
SmsDatabaseService: Transaction [object IDBTransaction @ 0x7fe7234159e0 (native @ 0x7fe7234f8700)] completed.
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file /home/kmachulis/code/mozbuild/mozilla-central/content/base/src/nsFrameLoader.cpp, line 419
++DOCSHELL 0x7fe7235c8400 == 5 [id = 5]
++DOMWINDOW == 7 (0x7fe7235c9078) [serial = 7] [outer = (nil)]
++DOMWINDOW == 8 (0x7fe721d5bc78) [serial = 8] [outer = 0x7fe7235c9000]
Could not load libcutils.so. Using fake propdb.
Could not load libnetutils.so!
WARNING: Subdocument container has no frame: file /home/kmachulis/code/mozbuild/mozilla-central/layout/base/nsDocumentViewer.cpp, line 2442
++DOMWINDOW == 9 (0x7fe725250878) [serial = 9] [outer = 0x7fe72530e000]
WARNING: Subdocument container has no frame: file /home/kmachulis/code/mozbuild/mozilla-central/layout/base/nsDocumentViewer.cpp, line 2442
++DOMWINDOW == 10 (0x7fe725251478) [serial = 10] [outer = 0x7fe72530f800]
++DOMWINDOW == 11 (0x7fe725253078) [serial = 11] [outer = 0x7fe7235c9000]
Xinerama superpowers activated for 2 screens!
++DOMWINDOW == 12 (0x7fe721908078) [serial = 12] [outer = 0x7fe7235c9000]
WARNING: NS_ENSURE_TRUE(mMutable) failed: file /home/kmachulis/code/mozbuild/mozilla-central/netwerk/base/src/nsSimpleURI.cpp, line 293
WARNING: NS_ENSURE_TRUE(mMutable) failed: file /home/kmachulis/code/mozbuild/mozilla-central/netwerk/base/src/nsSimpleURI.cpp, line 293

Program obj-debug/dist/bin/firefox (pid = 25584) received signal 11.
Stack:
UNKNOWN [/lib/x86_64-linux-gnu/libpthread.so.0 +0x0000FC60]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x01F557B7]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x01F554FF]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x02017CD5]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x02017D44]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x02018298]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x0204BAFE]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x020178B1]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x02017842]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x0201781B]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x0202C504]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x0204BED5]
UNKNOWN [/lib/x86_64-linux-gnu/libpthread.so.0 +0x00006D8C]
clone+0x0000006D [/lib/x86_64-linux-gnu/libc.so.6 +0x000E6C2D]


Stack for thread:

(gdb) i threads 
  21 Thread 0x7fe730f08700 (LWP 25598)  0x00007fe740f9bae3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
  20 Thread 0x7fe730503700 (LWP 25599)  0x00007fe740f7013d in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6
  19 Thread 0x7fe72fd02700 (LWP 25600)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  18 Thread 0x7fe72f1ff700 (LWP 25601)  0x00007fe740f9bae3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
  17 Thread 0x7fe72e6b6700 (LWP 25602)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  16 Thread 0x7fe72c1ff700 (LWP 25604)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  15 Thread 0x7fe72b5fe700 (LWP 25605)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  14 Thread 0x7fe72a4ff700 (LWP 25606)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  13 Thread 0x7fe7292ff700 (LWP 25608)  0x00007fe741e0ff2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  12 Thread 0x7fe725d6c700 (LWP 25609)  0x00007fe741e0ff2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  11 Thread 0x7fe7251ff700 (LWP 25610)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  10 Thread 0x7fe7241da700 (LWP 25611)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  9 Thread 0x7fe7232ff700 (LWP 25612)  0x00007fe741e0ff2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  8 Thread 0x7fe7218ff700 (LWP 25613)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  7 Thread 0x7fe720eff700 (LWP 25614)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  6 Thread 0x7fe71fffb700 (LWP 25615)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  5 Thread 0x7fe71f5ff700 (LWP 25616)  0x00007fe741e0ff2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  4 Thread 0x7fe71edfe700 (LWP 25617)  0x00007fe741e0ff2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  3 Thread 0x7fe71e1f2700 (LWP 25618)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  2 Thread 0x7fe71d9f1700 (LWP 25619)  0x00007fe741e0fbac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
* 1 Thread 0x7fe742218740 (LWP 25584)  0x00007fe740f9bae3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) t 20
[Switching to thread 20 (Thread 0x7fe730503700 (LWP 25599))]#0  0x00007fe740f7013d in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007fe740f7013d in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fe740f6ffcc in sleep () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fe73d9a4dfb in ah_crap_handler (signum=11) at /home/kmachulis/code/mozbuild/mozilla-central/toolkit/xre/nsSigHandlers.cpp:121
#3  0x00007fe73d9aa8bb in nsProfileLock::FatalSignalHandler (signo=11, info=0x7fe7305025b0, context=0x7fe730502480)
    at /home/kmachulis/code/mozbuild/mozilla-central/obj-debug/toolkit/profile/nsProfileLock.cpp:227
#4  <signal handler called>
#5  0x00007fe73f0787b7 in mozilla::ipc::RilClient::OpenSocket (this=0x0) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/ril/Ril.cpp:179
#6  0x00007fe73f0784ff in mozilla::ipc::RilReconnectTask::Run (this=0x7fe72f38e860) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/ril/Ril.cpp:123
#7  0x00007fe73f13acd5 in MessageLoop::RunTask (this=0x7fe730502cd0, task=0x7fe72f38e860) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:318
#8  0x00007fe73f13ad44 in MessageLoop::DeferOrRunPendingTask (this=0x7fe730502cd0, pending_task=...) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:326
#9  0x00007fe73f13b298 in MessageLoop::DoDelayedWork (this=0x7fe730502cd0, next_delayed_work_time=0x7fe73437ea40) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:453
#10 0x00007fe73f16eafe in base::MessagePumpLibevent::Run (this=0x7fe73437ea30, delegate=0x7fe730502cd0) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_pump_libevent.cc:314
#11 0x00007fe73f13a8b1 in MessageLoop::RunInternal (this=0x7fe730502cd0) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:208
#12 0x00007fe73f13a842 in MessageLoop::RunHandler (this=0x7fe730502cd0) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:201
#13 0x00007fe73f13a81b in MessageLoop::Run (this=0x7fe730502cd0) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:175
#14 0x00007fe73f14f504 in base::Thread::ThreadMain (this=0x7fe734357d80) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/thread.cc:156
#15 0x00007fe73f16eed5 in ThreadFunc (closure=0x7fe734357d80) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/platform_thread_posix.cc:26
#16 0x00007fe741e0ad8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#17 0x00007fe740fa8c2d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#18 0x0000000000000000 in ?? ()
Comment 1 Kyle Machulis [:qdot] 2012-03-26 16:17:22 PDT
The crash in the description happens when there's no socket available to connect to. If there is an adb forwarded socket available, we get a different crash.

Log

Could not load libcutils.so. Using fake propdb.
Could not load libnetutils.so!
Assertion failure: (SendRilRawData(&tosend)), at /home/kmachulis/code/mozbuild/mozilla-central/dom/system/gonk/SystemWorkerManager.cpp:133

Program obj-debug/dist/bin/firefox (pid = 12333) received signal 6.
Stack:
UNKNOWN [/lib/x86_64-linux-gnu/libpthread.so.0 +0x0000FC60]
raise+0x0000002B [/lib/x86_64-linux-gnu/libpthread.so.0 +0x0000FB3B]
MOZ_Crash+0x0000000E [obj-debug/dist/bin/firefox +0x0001CA4E]
MOZ_Assert+0x00000056 [obj-debug/dist/bin/firefox +0x0001CAA6]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x015C93AB]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025A59E1]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025ABB4A]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025B7A37]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025AB8BF]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025ABC0A]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x02509AAB]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x02558D6C]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025A59E1]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025ABB4A]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025B7A37]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025AB8BF]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025ABC0A]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x02509AAB]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x025ABDC2]
JS_CallFunctionName+0x00000189 [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x024FE910]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x015C96F6]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x013B95D6]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x013C925E]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x013CAA37]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x013B907E]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x01FCB055]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x01F60CAB]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libxul.so +0x01FC9F46]
UNKNOWN [/home/kmachulis/code/mozbuild/mozilla-central/obj-debug/dist/bin/libnspr4.so +0x00037103]
UNKNOWN [/lib/x86_64-linux-gnu/libpthread.so.0 +0x00006D8C]
clone+0x0000006D [/lib/x86_64-linux-gnu/libc.so.6 +0x000E6C2D]
Sleeping for 300 seconds.
Type 'gdb obj-debug/dist/bin/firefox 12333' to attach your debugger to this thread.


Stack


#0  0x00007fd01de56ae3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd01bc47f90 in PollWrapper (ufds=0x7fd00214f080, nfsd=12, timeout_=4000) at /home/kmachulis/code/mozbuild/mozilla-central/widget/gtk2/nsAppShell.cpp:66
#2  0x00007fd018a94104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd018a94639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fd01bc48387 in nsAppShell::ProcessNextNativeEvent (this=0x7fd00c231e80, mayWait=true) at /home/kmachulis/code/mozbuild/mozilla-central/widget/gtk2/nsAppShell.cpp:162
#5  0x00007fd01bc70672 in nsBaseAppShell::DoProcessNextNativeEvent (this=0x7fd00c231e80, mayWait=true) at /home/kmachulis/code/mozbuild/mozilla-central/widget/xpwidgets/nsBaseAppShell.cpp:171
#6  0x00007fd01bc70a9f in nsBaseAppShell::OnProcessNextEvent (this=0x7fd00c231e80, thr=0x7fd01dc45570, mayWait=true, recursionDepth=0)
    at /home/kmachulis/code/mozbuild/mozilla-central/widget/xpwidgets/nsBaseAppShell.cpp:324
#7  0x00007fd01bf8fe0f in nsThread::ProcessNextEvent (this=0x7fd01dc45570, mayWait=true, result=0x7fffb1f34edf) at /home/kmachulis/code/mozbuild/mozilla-central/xpcom/threads/nsThread.cpp:618
#8  0x00007fd01bf25cab in NS_ProcessNextEvent_P (thread=0x7fd01dc45570, mayWait=true) at /home/kmachulis/code/mozbuild/mozilla-central/obj-debug/xpcom/build/nsThreadUtils.cpp:245
#9  0x00007fd01bdd66f2 in mozilla::ipc::MessagePump::Run (this=0x7fd01125ad40, aDelegate=0x7fd01dcd5440) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/glue/MessagePump.cpp:134
#10 0x00007fd01bfdc8c1 in MessageLoop::RunInternal (this=0x7fd01dcd5440) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:208
#11 0x00007fd01bfdc852 in MessageLoop::RunHandler (this=0x7fd01dcd5440) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:201
#12 0x00007fd01bfdc82b in MessageLoop::Run (this=0x7fd01dcd5440) at /home/kmachulis/code/mozbuild/mozilla-central/ipc/chromium/src/base/message_loop.cc:175
#13 0x00007fd01bc706fa in nsBaseAppShell::Run (this=0x7fd00c231e80) at /home/kmachulis/code/mozbuild/mozilla-central/widget/xpwidgets/nsBaseAppShell.cpp:189
#14 0x00007fd01b9b2468 in nsAppStartup::Run (this=0x7fd00c2301a0) at /home/kmachulis/code/mozbuild/mozilla-central/toolkit/components/startup/nsAppStartup.cpp:295
#15 0x00007fd01a83969d in XRE_main (argc=3, argv=0x7fffb1f37b88, aAppData=0x422c00) at /home/kmachulis/code/mozbuild/mozilla-central/toolkit/xre/nsAppRunner.cpp:3703
#16 0x00000000004023f8 in do_main (argc=3, argv=0x7fffb1f37b88) at /home/kmachulis/code/mozbuild/mozilla-central/browser/app/nsBrowserApp.cpp:190
#17 0x000000000040264e in main (argc=3, argv=0x7fffb1f37b88) at /home/kmachulis/code/mozbuild/mozilla-central/browser/app/nsBrowserApp.cpp:277
Comment 2 Kyle Machulis [:qdot] 2012-03-26 16:29:16 PDT
This seems to have to do with the lifetime of sClient in ipc/ril/Ril.cpp. Specifically, that it doesn't have one. After ConnectToRil() is called, sClient ceases to be.
Comment 3 Kyle Machulis [:qdot] 2012-03-26 16:30:38 PDT
This bug is on m-c as of a30fd69f1e0c
Comment 4 Kyle Machulis [:qdot] 2012-03-26 16:58:41 PDT
Due to the addition of loading libcutils.so in dom/wifi/WifiWorker.js in Bug 739115, the uncaught exception goes upward into dom/system/gonk/SystemWorkerManager.cpp and causes a cascading failure of the worker manager. This ends up in DisconnectFromRil being called and the destruction of the sClient object.
Comment 5 Kyle Machulis [:qdot] 2012-03-28 10:16:21 PDT
*** Bug 739136 has been marked as a duplicate of this bug. ***
Comment 6 James Lal [:lightsofapollo] (inactive) 2012-03-31 19:55:51 PDT
I wanted to mention the work around from the other bug for the same issue:

--

Workaround: Download this python code and run this before starting b2g:

% python fauxphone.py -i &

Code is here: https://gist.github.com/2205561

I'm not sure who wrote that code, but it works for me

--
Comment 7 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-04-01 01:58:09 PDT
Created attachment 611254 [details] [diff] [review]
part 1: Catch errors in importing cutils, since (unfortunately) this code also runs on desktop builds

Not the prettiest patch ever, but I hope to see a nice refactorin' of this soon!
Comment 8 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-04-01 01:58:37 PDT
Created attachment 611255 [details] [diff] [review]
part 2: Ensure we don't process stale 'reconnect' tasks after shutting down
Comment 9 Philipp von Weitershausen [:philikon] 2012-04-01 14:22:52 PDT
Comment on attachment 611254 [details] [diff] [review]
part 1: Catch errors in importing cutils, since (unfortunately) this code also runs on desktop builds

You could also use libcutils.property_get from systemlibs.js. It deals with this situation gracefully. Though if you'd rather get this out the door, I'd be happy to do this in a follow-up patch.
Comment 10 Kyle Machulis [:qdot] 2012-04-01 17:42:44 PDT
Comment on attachment 611255 [details] [diff] [review]
part 2: Ensure we don't process stale 'reconnect' tasks after shutting down

Review of attachment 611255 [details] [diff] [review]:
-----------------------------------------------------------------

Huh, I saw this crash earlier this week but lumped it in with the cutils stuff, didn't realize the thread wasn't destructed at the right time. I'll talk to the NFC guys about this too, since they're reusing the IPC thread code.
Comment 11 Eric Chou [:ericchou] [:echou] 2012-04-02 04:06:33 PDT
*** Bug 741337 has been marked as a duplicate of this bug. ***
Comment 12 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-04-02 14:34:07 PDT
(Might not have time to land this until ~Wed., should go in before then.)
Comment 13 Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please) 2012-04-02 14:45:35 PDT
https://hg.mozilla.org/integration/mozilla-inbound/rev/02b9017cc6c0
https://hg.mozilla.org/integration/mozilla-inbound/rev/6314b9c23fd7
Comment 14 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-04-02 22:50:39 PDT
Thanks!
Comment 15 :Ms2ger (⌚ UTC+1/+2) 2012-04-03 02:09:23 PDT
https://hg.mozilla.org/mozilla-central/rev/6314b9c23fd7
Comment 16 :Ms2ger (⌚ UTC+1/+2) 2012-04-03 02:10:11 PDT
And

https://hg.mozilla.org/mozilla-central/rev/02b9017cc6c0

which was landed before part 1 (!?)

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