Closed Bug 1152019 Opened 11 years ago Closed 11 years ago

Intermittent browser_widget.js | application crashed [@ nsStandardURL::Release()][@ mozilla::storage::Connection::~Connection()]

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox40 --- affected

People

(Reporter: RyanVM, Unassigned)

References

Details

(Keywords: crash, intermittent-failure)

02:51:44 INFO - Hit MOZ_CRASH(nsStandardURL not thread-safe) at /builds/slave/fx-team-l64-d-0000000000000000/build/src/netwerk/base/nsStandardURL.cpp:959 02:52:08 INFO - #01: mozilla::storage::Connection::~Connection() [storage/src/mozStorageConnection.cpp:499] 02:52:08 INFO - #02: mozilla::storage::Connection::Release() [memory/mozalloc/mozalloc.h:205] 02:52:08 INFO - #03: nsTArray_Impl<nsRefPtr<mozilla::storage::Connection>, nsTArrayInfallibleAllocator>::RemoveElementsAt(unsigned long, unsigned long) [xpcom/glue/nsTArray.h:1726] 02:52:08 INFO - #04: mozilla::storage::Service::unregisterConnection(mozilla::storage::Connection*) [storage/src/mozStorageService.cpp:329] 02:52:08 INFO - #05: mozilla::storage::Connection::Release() [storage/src/mozStorageConnection.cpp:527] 02:52:08 INFO - #06: nsTArray_Impl<nsRefPtr<mozilla::storage::Connection>, nsTArrayInfallibleAllocator>::RemoveElementsAt(unsigned long, unsigned long) [xpcom/glue/nsTArray.h:1726] 02:52:08 INFO - #07: nsTArray_Impl<nsRefPtr<mozilla::storage::Connection>, nsTArrayInfallibleAllocator>::~nsTArray_Impl() [xpcom/glue/nsTArray.h:790] 02:52:08 INFO - #08: mozilla::storage::Service::minimizeMemory() [xpcom/glue/nsTArray.h:1801] 02:52:08 INFO - #09: mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*) [storage/src/mozStorageService.cpp:918] 02:52:08 INFO - #10: nsObserverList::NotifyObservers(nsISupports*, char const*, char16_t const*) [xpcom/glue/nsTArray.h:331] 02:52:08 INFO - #11: nsObserverService::NotifyObservers(nsISupports*, char const*, char16_t const*) [xpcom/ds/nsObserverService.cpp:333] 02:52:08 INFO - #12: NS_InvokeByIndex [xpcom/reflect/xptcall/md/unix/xptcinvoke_x86_64_unix.cpp:176] 02:52:08 INFO - #13: CallMethodHelper::Call() [js/xpconnect/src/xpcprivate.h:883] 02:52:08 INFO - #14: XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) [js/xpconnect/src/XPCWrappedNative.cpp:1384] 02:52:08 INFO - #15: XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) [js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1140] 02:52:08 INFO - #16: js::CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) [js/src/jscntxtinlines.h:236] 02:52:08 INFO - #17: js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) [js/src/vm/Interpreter.cpp:704] 02:52:08 INFO - #18: Interpret [js/src/vm/Interpreter.cpp:2842] 02:52:08 INFO - #19: js::RunScript(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:654] 02:52:08 INFO - #20: js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) [js/src/vm/Interpreter.cpp:723] 02:52:08 INFO - #21: js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value const*, JS::MutableHandle<JS::Value>) [js/src/vm/Interpreter.cpp:760] 02:52:08 INFO - #22: js::DirectProxyHandler::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const [js/public/RootingAPI.h:772] 02:52:08 INFO - #23: js::CrossCompartmentWrapper::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const [js/src/proxy/CrossCompartmentWrapper.cpp:289] 02:52:08 INFO - #24: js::Proxy::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) [js/src/proxy/Proxy.cpp:391] 02:52:08 INFO - #25: js::proxy_Call(JSContext*, unsigned int, JS::Value*) [js/public/RootingAPI.h:772] 02:52:08 INFO - #26: js::CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) [js/src/jscntxtinlines.h:236] 02:52:08 INFO - #27: js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) [js/src/vm/Interpreter.cpp:697] 02:52:08 INFO - #28: js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value const*, JS::MutableHandle<JS::Value>) [js/src/vm/Interpreter.cpp:760] 02:52:08 INFO - #29: JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) [js/src/jsapi.cpp:4375] 02:52:08 INFO - #30: mozilla::dom::AnyCallback::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&) [obj-firefox/dom/bindings/PromiseBinding.cpp:78] 02:52:08 INFO - #31: mozilla::dom::WrapperPromiseCallback::Call(JSContext*, JS::Handle<JS::Value>) [obj-firefox/dist/include/mozilla/dom/PromiseBinding.h:122] 02:52:08 INFO - #32: mozilla::dom::PromiseCallbackTask::Run() [mfbt/Maybe.h:372] 02:52:08 INFO - #33: mozilla::dom::Promise::PerformMicroTaskCheckpoint() [dom/promise/Promise.cpp:435] 02:52:08 INFO - #34: nsXPConnect::AfterProcessNextEvent(nsIThreadInternal*, unsigned int, bool) [js/xpconnect/src/nsXPConnect.cpp:982] 02:52:08 INFO - #35: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:883] 02:52:08 INFO - #36: NS_ProcessNextEvent(nsIThread*, bool) [xpcom/glue/nsThreadUtils.cpp:265] 02:52:08 INFO - #37: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:100] 02:52:08 INFO - #38: MessageLoop::RunInternal() [ipc/chromium/src/base/message_loop.cc:234] 02:52:08 INFO - #39: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:517] 02:52:08 INFO - #40: nsBaseAppShell::Run() [widget/nsBaseAppShell.cpp:166] 02:52:08 INFO - #41: nsAppStartup::Run() [toolkit/components/startup/nsAppStartup.cpp:282] 02:52:08 INFO - #42: XREMain::XRE_mainRun() [toolkit/xre/nsAppRunner.cpp:4174] 02:52:08 INFO - #43: XREMain::XRE_main(int, char**, nsXREAppData const*) [toolkit/xre/nsAppRunner.cpp:4249] 02:52:08 INFO - #44: XRE_main [toolkit/xre/nsAppRunner.cpp:4470] 02:52:08 INFO - #45: do_main [browser/app/nsBrowserApp.cpp:294] 02:52:08 INFO - #46: main [browser/app/nsBrowserApp.cpp:669] 02:52:08 INFO - #47: libc.so.6 + 0x2176d 02:52:08 INFO - #48: _start 02:52:08 INFO - TEST-INFO | Main app process: killed by SIGSEGV 02:52:08 WARNING - TEST-UNEXPECTED-FAIL | ShutdownLeaks | process() called before end of test suite 02:52:08 INFO - 799 INFO checking window state 02:52:08 WARNING - TEST-UNEXPECTED-FAIL | browser/devtools/webide/test/browser_widget.js | application terminated with exit code 11 02:52:08 INFO - runtests.py | Application ran for: 0:00:44.321398 02:52:08 INFO - zombiecheck | Reading PID log: /tmp/tmpeKBZoxpidlog 02:52:17 INFO - mozcrash Saved minidump as /builds/slave/test/build/blobber_upload_dir/009fca43-d84e-520e-3295940f-6b417457.dmp 02:52:17 INFO - mozcrash Saved app info as /builds/slave/test/build/blobber_upload_dir/009fca43-d84e-520e-3295940f-6b417457.extra 02:52:17 WARNING - PROCESS-CRASH | browser/devtools/webide/test/browser_widget.js | application crashed [@ nsStandardURL::Release()] 02:52:17 INFO - Crash dump filename: /tmp/tmp0RZVHg.mozrunner/minidumps/009fca43-d84e-520e-3295940f-6b417457.dmp 02:52:17 INFO - Operating system: Linux 02:52:17 INFO - 0.0.0 Linux 3.2.0-76-generic #111-Ubuntu SMP Tue Jan 13 22:16:09 UTC 2015 x86_64 02:52:17 INFO - CPU: amd64 02:52:17 INFO - family 6 model 45 stepping 7 02:52:17 INFO - 1 CPU 02:52:17 INFO - Crash reason: SIGSEGV 02:52:17 INFO - Crash address: 0x0 02:52:17 INFO - Thread 0 (crashed) 02:52:17 INFO - 0 libxul.so!nsStandardURL::Release() [nsStandardURL.cpp:3a6dfc65f76b : 959 + 0x18] 02:52:17 INFO - rbx = 0x00007f606b232400 r12 = 0x00007f6064114a40 02:52:17 INFO - r13 = 0x00007f606b295750 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a24bab2 02:52:17 INFO - rsp = 0x00007fff9ff4fb70 rbp = 0x00007fff9ff4fb90 02:52:17 INFO - Found by: given as instruction pointer in context 02:52:17 INFO - 1 libxul.so!mozilla::storage::Connection::~Connection() [mozStorageConnection.cpp:3a6dfc65f76b : 499 + 0x1d] 02:52:17 INFO - rbx = 0x00007f60643f1b80 r12 = 0x0000000000000000 02:52:17 INFO - r13 = 0x00007f606b295750 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a71887b 02:52:17 INFO - rsp = 0x00007fff9ff4fba0 rbp = 0x00007fff9ff4fbb0 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 2 libxul.so!mozilla::storage::Connection::Release() [mozStorageConnection.cpp:3a6dfc65f76b : 533 + 0x9] 02:52:17 INFO - rbx = 0x00007f60643f1b80 r12 = 0x0000000000000000 02:52:17 INFO - r13 = 0x00007f606b295750 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a718adb 02:52:17 INFO - rsp = 0x00007fff9ff4fbc0 rbp = 0x00007fff9ff4fbd0 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 3 libxul.so!nsTArray_Impl<nsRefPtr<mozilla::storage::Connection>, nsTArrayInfallibleAllocator>::RemoveElementsAt(unsigned long, unsigned long) [nsTArray.h:3a6dfc65f76b : 489 + 0xf] 02:52:17 INFO - rbx = 0x00007f606b295748 r12 = 0x00007f608178ada0 02:52:17 INFO - r13 = 0x00007f606b295750 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a72c435 02:52:17 INFO - rsp = 0x00007fff9ff4fbe0 rbp = 0x00007fff9ff4fc10 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 4 libxul.so!mozilla::storage::Service::unregisterConnection(mozilla::storage::Connection*) [nsTArray.h:3a6dfc65f76b : 1426 + 0x9] 02:52:17 INFO - rbx = 0x00007f608178ad30 r12 = 0x00007f60643f1b80 02:52:17 INFO - r13 = 0x00007f6059702260 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a72c751 02:52:17 INFO - rsp = 0x00007fff9ff4fc20 rbp = 0x00007fff9ff4fc50 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 5 libxul.so!mozilla::storage::Connection::Release() [mozStorageConnection.cpp:3a6dfc65f76b : 527 + 0x16] 02:52:17 INFO - rbx = 0x00007f60643f1b80 r12 = 0x0000000000000001 02:52:17 INFO - r13 = 0x00007f6059702260 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a718abc 02:52:17 INFO - rsp = 0x00007fff9ff4fc60 rbp = 0x00007fff9ff4fc70 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 6 libxul.so!nsTArray_Impl<nsRefPtr<mozilla::storage::Connection>, nsTArrayInfallibleAllocator>::RemoveElementsAt(unsigned long, unsigned long) [nsTArray.h:3a6dfc65f76b : 489 + 0xf] 02:52:17 INFO - rbx = 0x00007f6059702248 r12 = 0x00007fff9ff4fcf0 02:52:17 INFO - r13 = 0x00007f6059702260 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a72c435 02:52:17 INFO - rsp = 0x00007fff9ff4fc80 rbp = 0x00007fff9ff4fcb0 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 7 libxul.so!nsTArray_Impl<nsRefPtr<mozilla::storage::Connection>, nsTArrayInfallibleAllocator>::~nsTArray_Impl() [nsTArray.h:3a6dfc65f76b : 790 + 0x4] 02:52:17 INFO - rbx = 0x00007fff9ff4fcf0 r12 = 0x000000000000000b 02:52:17 INFO - r13 = 0x00007fff9ff4fcf0 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a72c4c6 02:52:17 INFO - rsp = 0x00007fff9ff4fcc0 rbp = 0x00007fff9ff4fcd0 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 8 libxul.so!mozilla::storage::Service::minimizeMemory() [nsTArray.h:3a6dfc65f76b : 1801 + 0x4] 02:52:17 INFO - rbx = 0x00007f6059807100 r12 = 0x000000000000000b 02:52:17 INFO - r13 = 0x00007fff9ff4fcf0 r14 = 0x00007f6061026520 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a72f06d 02:52:17 INFO - rsp = 0x00007fff9ff4fce0 rbp = 0x00007fff9ff4fd40 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 9 libxul.so!mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*) [mozStorageService.cpp:3a6dfc65f76b : 918 + 0x7] 02:52:17 INFO - rbx = 0x00007f608178ad30 r12 = 0x00007f605a8580d0 02:52:17 INFO - r13 = 0x0000000000000000 r14 = 0x00007f605a8580d0 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a72f138 02:52:17 INFO - rsp = 0x00007fff9ff4fd50 rbp = 0x00007fff9ff4fda0 02:52:17 INFO - Found by: call frame info 02:52:17 INFO - 10 libxul.so!nsObserverList::NotifyObservers(nsISupports*, char const*, char16_t const*) [nsObserverList.cpp:3a6dfc65f76b : 100 + 0xe] 02:52:17 INFO - rbx = 0x0000000000000096 r12 = 0x00007fff9ff4fdb8 02:52:17 INFO - r13 = 0x0000000000000000 r14 = 0x00007f605a8580d0 02:52:17 INFO - r15 = 0x00007f6064aa8bc0 rip = 0x00007f608a185890 02:52:17 INFO - rsp = 0x00007fff9ff4fdb0 rbp = 0x00007fff9ff4fdf0 02:52:17 INFO - Found by: call frame info
mozilla::storage::Connection creates an nsIURI off the main thread, which ends up being released on the main thread. This causes an assertion, since nsStandardURL isn't thread safe.
See Also: → 1151239
See Also: → 1154985
Andrew, can you please take a look at this frequent crash we're hitting in automation? See the See Alsos as well.
Flags: needinfo?(bugmail)
:bkelly is preparing a fix for this on bug 1155193.
Depends on: 1155193
Flags: needinfo?(bugmail)
[Mass Closure] Closing bug as the WORKSFORME as the intermittent failure has not been seen for 45+ days If this has been closed and you feel that it should Not have been closed, please reopen and add [leave open] to the whiteboard.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.