Closed Bug 933910 Opened 11 years ago Closed 8 years ago

test_jQuery.html | application crashed [@ mozilla::net::MissingRequiredTabChild] on debug B2G

Categories

(Core :: Networking, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jgriffin, Unassigned)

References

Details

The test dom/tests/mochitest/ajax/jquery/test_jQuery.html crashes at least intermittently on debug B2G emulators.

full log: https://tbpl.mozilla.org/php/getParsedLog.php?id=29982575&tree=Cedar#error3

stack trace:

10:46:09  WARNING -  PROCESS-CRASH | /tests/dom/tests/mochitest/ajax/jquery/test_jQuery.html | application crashed [@ mozilla::net::MissingRequiredTabChild]
10:46:09     INFO -  Crash dump filename: /tmp/tmpasRSNe/2ad727e4-e228-6720-493fd1ea-149e7ece.dmp
10:46:09     INFO -  Operating system: Android
10:46:09     INFO -                    0.0.0 Linux 2.6.29-00294-g701690d #1 Mon May 20 22:43:07 CST 2013 armv7l Android/full/generic:4.0.4.0.4.0.4/OPENMASTER/eng.cltbld.20131101.104707:eng/test-keys
10:46:09     INFO -  CPU: arm
10:46:09     INFO -       0 CPUs
10:46:09     INFO -  Crash reason:  SIGSEGV
10:46:09     INFO -  Crash address: 0x0
10:46:09     INFO -  Thread 0 (crashed)
10:46:09     INFO -   0  libxul.so!mozilla::net::MissingRequiredTabChild [NeckoCommon.h : 130 + 0x2]
10:46:09     INFO -       r4 = 0x00000000    r5 = 0x4280103c    r6 = 0x42807038    r7 = 0x80070057
10:46:09     INFO -       r8 = 0x00000000    r9 = 0xbecd469c   r10 = 0x000022b8    fp = 0xbecd4700
10:46:09     INFO -       sp = 0xbecd4010    lr = 0x406de8ef    pc = 0x406de8f0
10:46:09     INFO -      Found by: given as instruction pointer in context
10:46:09     INFO -   1  libxul.so!mozilla::net::HttpChannelChild::AsyncOpen(nsIStreamListener*, nsISupports*) [HttpChannelChild.cpp:9aa828994230 : 1058 + 0x3]
10:46:09     INFO -       r4 = 0x45c18400    r5 = 0x4280103c    r6 = 0xbecd4700    r7 = 0x80070057
10:46:09     INFO -       r8 = 0x00000000    r9 = 0xbecd469c   r10 = 0x000022b8    fp = 0xbecd4700
10:46:09     INFO -       sp = 0xbecd4028    pc = 0x406dfbb3
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   2  libxul.so!nsXMLHttpRequest::Send(nsIVariant*, mozilla::dom::Nullable<nsXMLHttpRequest::RequestBody> const&) [nsXMLHttpRequest.cpp:9aa828994230 : 2860 + 0xf]
10:46:09     INFO -       r4 = 0x457e0b00    r5 = 0x4280103c    r6 = 0x00000000    r7 = 0x457e0b5c
10:46:09     INFO -       r8 = 0x45c18454    r9 = 0x00000000   r10 = 0x406db6a5    fp = 0x457e0b34
10:46:09     INFO -       sp = 0xbecd4738    pc = 0x40a8bb4b
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   3  libxul.so!mozilla::dom::XMLHttpRequestBinding::send [nsXMLHttpRequest.h:9aa828994230 : 396 + 0x3]
10:46:09     INFO -       r4 = 0xbecd4ca0    r5 = 0x44cedec0    r6 = 0x4280103c    r7 = 0x00000000
10:46:09     INFO -       r8 = 0xbecd4ac0    r9 = 0xbecd4c10   r10 = 0x457e0b00    fp = 0x00000001
10:46:09     INFO -       sp = 0xbecd4a80    pc = 0x41484925
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   4  libxul.so!mozilla::dom::XMLHttpRequestBinding::genericMethod [XMLHttpRequestBinding.cpp : 1210 + 0x3]
10:46:09     INFO -       r4 = 0x44cedec0    r5 = 0x414840c1    r6 = 0xbecd4c84    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x402c7390    r9 = 0xbecd4cd0   r10 = 0xbecd52b8    fp = 0xbecd5740
10:46:09     INFO -       sp = 0xbecd4c78    pc = 0x414686c9
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   5  libxul.so!js::CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) [jscntxtinlines.h:9aa828994230 : 220 + 0x3]
10:46:09     INFO -       r4 = 0x00000000    r5 = 0x44cedec0    r6 = 0xbecd4d04    r7 = 0x41468615
10:46:09     INFO -       r8 = 0x402c7390    r9 = 0xbecd4cd0   r10 = 0xbecd52b8    fp = 0xbecd5740
10:46:09     INFO -       sp = 0xbecd4cc8    pc = 0x41afe129
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   6  libxul.so!js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) [Interpreter.cpp:9aa828994230 : 462 + 0xd]
10:46:09     INFO -       r4 = 0xbecd4d04    r5 = 0x44cedec0    r6 = 0x00000000    r7 = 0x00000000
10:46:09     INFO -       r8 = 0xbecd5238    r9 = 0xbecd5218   r10 = 0xbecd52b8    fp = 0xbecd5740
10:46:09     INFO -       sp = 0xbecd4cf8    pc = 0x41b10cc1
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   7  libxul.so!Interpret [Interpreter.cpp:9aa828994230 : 2499 + 0xb]
10:46:09     INFO -       r4 = 0xbecd50a0    r5 = 0x44cedec0    r6 = 0xbecd52e8    r7 = 0x00000000
10:46:09     INFO -       r8 = 0xbecd5238    r9 = 0xbecd5218   r10 = 0xbecd52b8    fp = 0xbecd5740
10:46:09     INFO -       sp = 0xbecd4f70    pc = 0x41b04a13
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   8  libxul.so!js::RunScript(JSContext*, js::RunState&) [Interpreter.cpp:9aa828994230 : 419 + 0x7]
10:46:09     INFO -       r4 = 0x44cedec0    r5 = 0xbecd5740    r6 = 0xbecd5504    r7 = 0xbecd5740
10:46:09     INFO -       r8 = 0x00000001    r9 = 0x00000000   r10 = 0xbecd58c8    fp = 0xbecd59fc
10:46:09     INFO -       sp = 0xbecd5500    pc = 0x41b105c5
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   9  libxul.so!js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) [Interpreter.cpp:9aa828994230 : 481 + 0x7]
10:46:09     INFO -       r4 = 0xbecd5534    r5 = 0x44cedec0    r6 = 0x00000000    r7 = 0xbecd5740
10:46:09     INFO -       r8 = 0x00000001    r9 = 0x00000000   r10 = 0xbecd58c8    fp = 0xbecd59fc
10:46:09     INFO -       sp = 0xbecd5528    pc = 0x41b10c0d
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  10  libxul.so!js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) [Interpreter.cpp:9aa828994230 : 512 + 0x15]
10:46:09     INFO -       r4 = 0xbecd57b0    r5 = 0x00000001    r6 = 0x44cedec0    r7 = 0xbecd583c
10:46:09     INFO -       r8 = 0x00000000    r9 = 0x00000000   r10 = 0xbecd58c8    fp = 0xbecd59fc
10:46:09     INFO -       sp = 0xbecd57a0    pc = 0x41b11543
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  11  libxul.so!JS_CallFunctionValue(JSContext*, JSObject*, JS::Value, unsigned int, JS::Value*, JS::Value*) [jsapi.cpp:9aa828994230 : 4969 + 0x15]
10:46:09     INFO -       r4 = 0x44cedec0    r5 = 0xbecd58a0    r6 = 0xbecd58b8    r7 = 0xbecd58e0
10:46:09     INFO -       r8 = 0xbecd5950    r9 = 0xbecd5898   r10 = 0x00000000    fp = 0xbecd59fc
10:46:09     INFO -       sp = 0xbecd5888    pc = 0x419ba675
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  12  libxul.so!mozilla::dom::Function::Call(JSContext*, JS::Handle<JSObject*>, nsTArray<JS::Value> const&, mozilla::ErrorResult&) [FunctionBinding.cpp : 34 + 0x15]
10:46:09     INFO -       r4 = 0x00000001    r5 = 0x44cedec0    r6 = 0xbecd5a58    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x4726a010    r9 = 0xbecd5928   r10 = 0xbecd5b68    fp = 0xbecd59fc
10:46:09     INFO -       sp = 0xbecd5908    pc = 0x412f44bd
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  13  libxul.so!nsGlobalWindow::RunTimeoutHandler(nsTimeout*, nsIScriptContext*) [FunctionBinding.h : 53 + 0xf]
10:46:09     INFO -       r4 = 0x459e16a0    r5 = 0x44cb3090    r6 = 0x44cedec0    r7 = 0xbecd5b84
10:46:09     INFO -       r8 = 0x4726a010    r9 = 0x00000001   r10 = 0xbecd5b1c    fp = 0x459e16ac
10:46:09     INFO -       sp = 0xbecd5a30    pc = 0x40c7eeed
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  14  libxul.so!nsGlobalWindow::RunTimeout(nsTimeout*) [nsGlobalWindow.cpp:9aa828994230 : 11803 + 0x3]
10:46:09     INFO -       r4 = 0x44cb3090    r5 = 0x44a96330    r6 = 0x44a96330    r7 = 0xbecd5c2c
10:46:09     INFO -       r8 = 0x00000001    r9 = 0x00000000   r10 = 0x00000000    fp = 0x44a96ce0
10:46:09     INFO -       sp = 0xbecd5bf8    pc = 0x40c7fbc3
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  15  libxul.so!nsGlobalWindow::TimerCallback(nsITimer*, void*) [nsGlobalWindow.cpp:9aa828994230 : 12049 + 0x11]
10:46:09     INFO -       r4 = 0x44a96420    r5 = 0x40c7fd69    r6 = 0x00000002    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x00000001    r9 = 0xbecd5d5f   r10 = 0x402023c8    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5c60    pc = 0x40c7fd87
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  16  libxul.so!nsTimerImpl::Fire() [nsTimerImpl.cpp:9aa828994230 : 546 + 0x5]
10:46:09     INFO -       r4 = 0x44a96420    r5 = 0x40c7fd69    r6 = 0x00000002    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x00000001    r9 = 0xbecd5d5f   r10 = 0x402023c8    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5c70    pc = 0x414ef081
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  17  libxul.so!nsTimerEvent::Run() [nsTimerImpl.cpp:9aa828994230 : 630 + 0x5]
10:46:09     INFO -       r4 = 0x44627490    r5 = 0x00004d0b    r6 = 0xbecd5d28    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x00000001    r9 = 0xbecd5d5f   r10 = 0x402023c8    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5cd0    pc = 0x414ef27b
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  18  libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:9aa828994230 : 622 + 0x9]
10:46:09     INFO -       r4 = 0x40202390    r5 = 0x00000000    r6 = 0xbecd5d28    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x00000001    r9 = 0xbecd5d5f   r10 = 0x402023c8    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5cf8    pc = 0x414eb9f5
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  19  libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:9aa828994230 : 251 + 0xd]
10:46:09     INFO -       r4 = 0x40202390    r5 = 0x00000000    r6 = 0x40201b60    r7 = 0x40201b6c
10:46:09     INFO -       r8 = 0x00000001    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5d50    pc = 0x414b7737
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  20  libxul.so!mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) [MessagePump.cpp:9aa828994230 : 85 + 0x7]
10:46:09     INFO -       r4 = 0x40201b50    r5 = 0xbecd681c    r6 = 0x40201b60    r7 = 0x40201b6c
10:46:09     INFO -       r8 = 0x00000001    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5d70    pc = 0x4117cf01
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  21  libxul.so!mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) [MessagePump.cpp:9aa828994230 : 250 + 0x7]
10:46:09     INFO -       r4 = 0xbecd681c    r5 = 0x40201b50    r6 = 0xbecd681c    r7 = 0x00000001
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5da0    pc = 0x4117d081
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  22  libxul.so!MessageLoop::RunInternal() [message_loop.cc:9aa828994230 : 220 + 0x7]
10:46:09     INFO -       r4 = 0xbecd681c    r5 = 0x43e7d8e0    r6 = 0x40202390    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5dc0    pc = 0x41514107
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  23  libxul.so!MessageLoop::Run() [message_loop.cc:9aa828994230 : 213 + 0x5]
10:46:09     INFO -       r4 = 0xbecd681c    r5 = 0x43e7d8e0    r6 = 0x40202390    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5dd8    pc = 0x4151411f
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  24  libxul.so!nsBaseAppShell::Run() [nsBaseAppShell.cpp:9aa828994230 : 161 + 0x7]
10:46:09     INFO -       r4 = 0x00000000    r5 = 0x43e7d8e0    r6 = 0x40202390    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5df0    pc = 0x411013df
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  25  libxul.so!XRE_RunAppShell [nsEmbedFunctions.cpp:9aa828994230 : 714 + 0x5]
10:46:09     INFO -       r4 = 0xbecd681c    r5 = 0x40201b50    r6 = 0x00000000    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5e08    pc = 0x405caedf
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  26  libxul.so!mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) [MessagePump.cpp:9aa828994230 : 217 + 0x3]
10:46:09     INFO -       r4 = 0xbecd681c    r5 = 0x40201b50    r6 = 0x00000000    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5e20    pc = 0x4117cfeb
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  27  libxul.so!MessageLoop::RunInternal() [message_loop.cc:9aa828994230 : 220 + 0x7]
10:46:09     INFO -       r4 = 0xbecd681c    r5 = 0xbecd6924    r6 = 0x40244c00    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5e40    pc = 0x41514107
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  28  libxul.so!MessageLoop::Run() [message_loop.cc:9aa828994230 : 213 + 0x5]
10:46:09     INFO -       r4 = 0xbecd681c    r5 = 0xbecd6924    r6 = 0x40244c00    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5e58    pc = 0x4151411f
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  29  libxul.so!XRE_InitChildProcess [nsEmbedFunctions.cpp:9aa828994230 : 551 + 0x9]
10:46:09     INFO -       r4 = 0xbecd6930    r5 = 0xbecd6924    r6 = 0x40244c00    r7 = 0x00000002
10:46:09     INFO -       r8 = 0xbecd69b4    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd5e70    pc = 0x405cb7bd
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  30  plugin-container!main [MozillaRuntimeMain.cpp:9aa828994230 : 116 + 0x5]
10:46:09     INFO -       r4 = 0xbecd69b4    r5 = 0x00000007    r6 = 0x00000001    r7 = 0xbecd697c
10:46:09     INFO -       r8 = 0x00000000    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd6970    pc = 0x00008787
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  31  libc.so!__libc_init [libc_init_dynamic.c : 114 + 0x7]
10:46:09     INFO -       r4 = 0x000086e4    r5 = 0xbecd69b4    r6 = 0x00000008    r7 = 0xbecd69d8
10:46:09     INFO -       r8 = 0x00000000    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd6998    pc = 0x4006b743
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  32  0xb0001dc5
10:46:09     INFO -       r4 = 0x00000000    r5 = 0x00000000    r6 = 0x00000000    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x00000000    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
10:46:09     INFO -       sp = 0xbecd69b0    pc = 0xb0001dc7
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -  Thread 1
10:46:09     INFO -   0  libc.so + 0xc690
10:46:09     INFO -       r4 = 0x40226090    r5 = 0x40226060    r6 = 0x402260c0    r7 = 0x00000036
10:46:09     INFO -       r8 = 0x00000001    r9 = 0x4022607c   r10 = 0x40226068    fp = 0x00000000
10:46:09     INFO -       sp = 0x100ffe28    lr = 0x4007cb19    pc = 0x40061690
10:46:09     INFO -      Found by: given as instruction pointer in context
10:46:09     INFO -   1  libbinder.so!android::IPCThreadState::talkWithDriver(bool) [IPCThreadState.cpp : 806 + 0xd]
10:46:09     INFO -       sp = 0x100ffe3c    pc = 0x42d08acf
10:46:09     INFO -      Found by: stack scanning
10:46:09     INFO -   2  0x4022608e
10:46:09     INFO -       r4 = 0x00000100    r5 = 0x00000000    r6 = 0x40232100    r7 = 0x40226060
10:46:09     INFO -       r8 = 0x00000030    sp = 0x100ffe6c    pc = 0x40226090
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   3  libbinder.so!android::IPCThreadState::joinThreadPool(bool) [IPCThreadState.cpp : 457 + 0x7]
10:46:09     INFO -       sp = 0x100ffe78    pc = 0x42d093c9
10:46:09     INFO -      Found by: stack scanning
10:46:09     INFO -   4  libbinder.so!android::PoolThread::threadLoop() [ProcessState.cpp : 67 + 0xb]
10:46:09     INFO -       r4 = 0x40201a30    r5 = 0x00000001    r6 = 0x40201a3c    r7 = 0x100ffeb4
10:46:09     INFO -       r8 = 0x100ffeb0    r9 = 0x402045e0   r10 = 0x00100000    fp = 0x00000001
10:46:09     INFO -       sp = 0x100ffea0    pc = 0x42d0e689
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   5  libutils.so!android::Thread::_threadLoop(void*) [Threads.cpp : 834 + 0x5]
10:46:09     INFO -       r4 = 0x40201a30    r5 = 0x00000001    r6 = 0x40201a3c    r7 = 0x100ffeb4
10:46:09     INFO -       r8 = 0x100ffeb0    r9 = 0x402045e0   r10 = 0x00100000    fp = 0x00000001
10:46:09     INFO -       sp = 0x100ffea8    pc = 0x42d38181
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   6  libutils.so!thread_data_t::trampoline(thread_data_t const*) [Threads.cpp : 127 + 0x3]
10:46:09     INFO -       r4 = 0x40205c80    r5 = 0x42d3810d    r6 = 0x40201a30    r7 = 0x00000000
10:46:09     INFO -       r8 = 0x42d38731    r9 = 0x402045e0   r10 = 0x00100000    fp = 0x00000001
10:46:09     INFO -       sp = 0x100ffed0    pc = 0x42d387c7
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   7  libc.so!__thread_entry [pthread.c : 217 + 0x6]
10:46:09     INFO -       r4 = 0x100fff00    r5 = 0x42d38731    r6 = 0x402045e0    r7 = 0x00000078
10:46:09     INFO -       r8 = 0x42d38731    r9 = 0x402045e0   r10 = 0x00100000    fp = 0x00000001
10:46:09     INFO -       sp = 0x100ffef0    pc = 0x40067e4c
10:46:09     INFO -      Found by: call frame info
10:46:09     INFO -   8  libc.so!pthread_create [pthread.c : 357 + 0xe]
10:46:09     INFO -       r4 = 0x100fff00    r5 = 0x0000a008    r6 = 0xbecd68a4    r7 = 0x00000078
10:46:09     INFO -       r8 = 0x42d38731    r9 = 0x402045e0   r10 = 0x00100000    fp = 0x00000001
10:46:09     INFO -       sp = 0x100fff00    pc = 0x4006799c
10:46:09     INFO -      Found by: call frame info
Jason, looks like you added the assertion here in bug 833935:  https://github.com/mozilla/mozilla-central/commit/d01d14e1 .  Any thoughts on this situation occurring with debug builds?  What say you, jdm?
Component: DOM → Networking
Flags: needinfo?(josh)
Flags: needinfo?(jduell.mcbugs)
Flags: needinfo?(josh)
In my experience, this comes from places in the code that create an XMLHttpRequest out of thin air (ie. createInstance from chrome JS code). The usual case of this being an addon's fault shouldn't apply, given that this is b2g.
In any case, seeing the JS stack when this assertion occurs would clear up the issue.
As it says near the assertion:

  // Bug 833935: during navigation away from page some loads may lack
  // TabParent: we don't want to kill browser for that.  Doesn't happen in
  // test harness, so fail in debug mode so we can catch new code that fails   
  // to pass security info.

That could explain why we might lack a TabChild ("TabParent" looks like a typo :)  Or as JDM said, if we're using XHR out of thin air.

What makes no sense to me is that this is causing a debug-only segfault.  The *only* thing different in the code here is that we add a MOZ_ASSERT.  That should kill a debug process, but not IIRC with a 0x0 segfault without printing the assert message.  I don't see anything in MissingRequiredTabChild() or the one function it calls (UsingNeckoIPCSecurity) that do anything that could cause a null memory reference.  

It is of course possible that we've got a misleading stack trace...
Flags: needinfo?(jduell.mcbugs)
MOZ_ASSERT ends up calling MOZ_REALLY_ASSERT which dereferences a null pointer.
(In reply to Josh Matthews [:jdm] from comment #3)
> In any case, seeing the JS stack when this assertion occurs would clear up
> the issue.

Jonathan, is it possible to get this?
Flags: needinfo?(jgriffin)
I have no idea; ted, is it possible to get the JS stack from cases like this?
Flags: needinfo?(jgriffin) → needinfo?(ted)
We don't have any existing way to get a JS stack out in cases like this. However, since this is just an assertion failure, you could add some debug logging to the assertion site that calls DumpJSStack when the assertion fails, which should be fine.
Flags: needinfo?(ted)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.