Bug: Intermittent browser/components/places/tests/unit/test_browserGlue_bookmarkshtml.js | application crashed [@ mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*)]
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-09-17 12:42:41+00:00
Resolved: 2022-12-27 17:00:14+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=390712374&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Q-XIWHu4QsqfSscQnYCNbw/runs/0/artifacts/public/logs/live_backing.log

---
```
[taask 2022-09-17T12:19:37.811Z] 12:19:37     INFO -  TEST-START | browser/components/places/tests/unit/test_browserGlue_bookmarkshtml.js
[task 2022-09-17T12:19:38.211Z] 12:19:38  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/places/tests/unit/test_browserGlue_bookmarkshtml.js | xpcshell return code: -11
[task 2022-09-17T12:19:38.211Z] 12:19:38     INFO -  TEST-INFO took 400ms
[task 2022-09-17T12:19:38.211Z] 12:19:38     INFO -  >>>>>>>
[task 2022-09-17T12:19:38.212Z] 12:19:38     INFO -  PID 28246 | [Parent 28246, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:2926
[task 2022-09-17T12:19:38.212Z] 12:19:38     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-09-17T12:19:38.213Z] 12:19:38     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2022-09-17T12:19:38.214Z] 12:19:38     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2022-09-17T12:19:38.215Z] 12:19:38     INFO -  running event loop
[task 2022-09-17T12:19:38.216Z] 12:19:38     INFO -  browser/components/places/tests/unit/test_browserGlue_bookmarkshtml.js | Starting
[task 2022-09-17T12:19:38.216Z] 12:19:38     INFO -  (xpcshell/head.js) | test pending (2)
[task 2022-09-17T12:19:38.217Z] 12:19:38     INFO -  TEST-PASS | browser/components/places/tests/unit/test_browserGlue_bookmarkshtml.js |  - 1 == 1
[task 2022-09-17T12:19:38.217Z] 12:19:38     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2022-09-17T12:19:38.217Z] 12:19:38     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2022-09-17T12:19:38.217Z] 12:19:38     INFO -  (xpcshell/head.js) | test finished (2)
[task 2022-09-17T12:19:38.219Z] 12:19:38     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (1)
[task 2022-09-17T12:19:38.219Z] 12:19:38     INFO -  exiting test

[task 2022-09-17T12:19:38.243Z] 12:19:38     INFO -  TEST-PASS | browser/components/places/tests/unit/test_browserGlue_bookmarkshtml.js |  - true == true
[task 2022-09-17T12:19:38.244Z] 12:19:38     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Failed to import bookmarks from chrome://browser/content/default-bookmarks.html: Error: Connection closed before committing the transaction." {file: "resource://gre/modules/BookmarkHTMLUtils.sys.mjs" line: 159}]
[task 2022-09-17T12:19:38.245Z] 12:19:38     INFO -  importFromURL@resource://gre/modules/BookmarkHTMLUtils.sys.mjs:159:10
[task 2022-09-17T12:19:38.252Z] 12:19:38     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:576:16
[task 2022-09-17T12:19:38.252Z] 12:19:38     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:709:23
[task 2022-09-17T12:19:38.252Z] 12:19:38     INFO -  @-e:1:1
[task 2022-09-17T12:19:38.253Z] 12:19:38     INFO -  "
[task 2022-09-17T12:19:38.254Z] 12:19:38     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Bookmarks.html file could be corrupt. Error: Connection closed before committing the transaction." {file: "resource:///modules/BrowserGlue.jsm" line: 3367}]
[task 2022-09-17T12:19:38.254Z] 12:19:38     INFO -  BG__initPlaces/<@resource:///modules/BrowserGlue.jsm:3367:16
[task 2022-09-17T12:19:38.255Z] 12:19:38     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:576:16
[task 2022-09-17T12:19:38.255Z] 12:19:38     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:709:23
[task 2022-09-17T12:19:38.256Z] 12:19:38     INFO -  @-e:1:1
[task 2022-09-17T12:19:38.257Z] 12:19:38     INFO -  "
[task 2022-09-17T12:19:38.257Z] 12:19:38     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Unable to parse distribution.ini" {file: "resource:///modules/distribution.js" line: 101}]
[task 2022-09-17T12:19:38.257Z] 12:19:38     INFO -  get _ini@resource:///modules/distribution.js:101:12
[task 2022-09-17T12:19:38.258Z] 12:19:38     INFO -  _doApplyBookmarks@resource:///modules/distribution.js:330:9
[task 2022-09-17T12:19:38.259Z] 12:19:38     INFO -  applyBookmarks@resource:///modules/distribution.js:323:18
[task 2022-09-17T12:19:38.259Z] 12:19:38     INFO -  BG__initPlaces/<@resource:///modules/BrowserGlue.jsm:3372:48
[task 2022-09-17T12:19:38.260Z] 12:19:38     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:576:16
[task 2022-09-17T12:19:38.261Z] 12:19:38     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:709:23
[task 2022-09-17T12:19:38.261Z] 12:19:38     INFO -  @-e:1:1
[task 2022-09-17T12:19:38.262Z] 12:19:38     INFO -  "
[task 2022-09-17T12:19:38.263Z] 12:19:38     INFO -  PID 28246 | [Parent 28246, IPDL Background] WARNING: IPC Connection Error: [Parent][PBackgroundParent] RunMessage(msgname=PRemoteWorkerService::Msg___delete__) Channel closing: too late to send/recv, messages will be lost: file /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1883
[task 2022-09-17T12:19:38.263Z] 12:19:38     INFO -  PID 28246 | Storage connection not closed: places.sqliteHit MOZ_CRASH() at /builds/worker/checkouts/gecko/storage/mozStorageService.cpp:719
[task 2022-09-17T12:19:38.264Z] 12:19:38     INFO -  PID 28246 | #01: mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*) [storage/mozStorageService.cpp:719]
[task 2022-09-17T12:19:38.265Z] 12:19:38     INFO -  PID 28246 | #02: {virtual override thunk({offset(-8)}, mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*))} [storage/mozStorageService.cpp:0]
[task 2022-09-17T12:19:38.265Z] 12:19:38     INFO -  PID 28246 | #03: nsObserverList::NotifyObservers(nsISupports*, char const*, char16_t const*) [xpcom/ds/nsObserverList.cpp:69]
[task 2022-09-17T12:19:38.266Z] 12:19:38     INFO -  PID 28246 | #04: nsObserverService::NotifyObservers(nsISupports*, char const*, char16_t const*) [xpcom/ds/nsObserverService.cpp:294]
[task 2022-09-17T12:19:38.267Z] 12:19:38     INFO -  PID 28246 | #05: mozilla::AppShutdown::AdvanceShutdownPhaseInternal(mozilla::ShutdownPhase, bool, char16_t const*, nsCOMPtr<nsISupports> const&) [xpcom/base/AppShutdown.cpp:374]
[task 2022-09-17T12:19:38.268Z] 12:19:38     INFO -  PID 28246 | #06: mozilla::ShutdownXPCOM(nsIServiceManager*) [xpcom/build/XPCOMInit.cpp:600]
[task 2022-09-17T12:19:38.268Z] 12:19:38     INFO -  PID 28246 | #07: XRE_XPCShellMain(int, char**, char**, XREShellData const*) [js/xpconnect/src/XPCShellImpl.cpp:1434]
[task 2022-09-17T12:19:38.311Z] 12:19:38     INFO -  PID 28246 | #08: main [js/xpconnect/shell/xpcshell.cpp:81]
[task 2022-09-17T12:19:38.318Z] 12:19:38     INFO -  PID 28246 | #09: __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6 + 0x21b97]
[task 2022-09-17T12:19:38.319Z] 12:19:38     INFO -  PID 28246 | #10: ??? [/builds/worker/workspace/build/application/firefox/xpcshell + 0x45d39]
[task 2022-09-17T12:19:38.320Z] 12:19:38     INFO -  PID 28246 | #11: ??? (???:???)
[task 2022-09-17T12:19:38.320Z] 12:19:38     INFO -  PID 28246 | ExceptionHandler::GenerateDump cloned child 28269
[task 2022-09-17T12:19:38.321Z] 12:19:38     INFO -  PID 28246 | ExceptionHandler::SendContinueSignalToChild sent continue signal to child
[task 2022-09-17T12:19:38.322Z] 12:19:38     INFO -  PID 28246 | ExceptionHandler::WaitForContinueSignal waiting for continue signal...
[task 2022-09-17T12:19:38.322Z] 12:19:38     INFO -  <<<<<<<
[task 2022-09-17T12:19:43.700Z] 12:19:43  WARNING -  PROCESS-CRASH | browser/components/places/tests/unit/test_browserGlue_bookmarkshtml.js | application crashed [@ mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*)]
[task 2022-09-17T12:19:43.703Z] 12:19:43     INFO -  Mozilla crash reason: MOZ_CRASH()
[task 2022-09-17T12:19:43.703Z] 12:19:43     INFO -  Crash dump filename: /tmp/xpc-other-b331xjeo/58febe81-4e34-d6ee-9676-aa09ccecb95b.dmp
[task 2022-09-17T12:19:43.710Z] 12:19:43     INFO -  Operating system: Linux
[task 2022-09-17T12:19:43.712Z] 12:19:43     INFO -                    4.4.0-1014-aws #14taskcluster1-Ubuntu SMP Tue Apr 3 10:27:00 UTC 2018
[task 2022-09-17T12:19:43.712Z] 12:19:43     INFO -  CPU: amd64
[task 2022-09-17T12:19:43.712Z] 12:19:43     INFO -       family 6 model 85 stepping 7
[task 2022-09-17T12:19:43.713Z] 12:19:43     INFO -       2 CPUs
[task 2022-09-17T12:19:43.713Z] 12:19:43     INFO -  Linux Ubuntu 18.04 - bionic (Ubuntu 18.04.6 LTS)
[task 2022-09-17T12:19:43.713Z] 12:19:43     INFO -  Crash reason:  SIGSEGV / SEGV_MAPERR
[task 2022-09-17T12:19:43.713Z] 12:19:43     INFO -  Crash address: 0x0
[task 2022-09-17T12:19:43.714Z] 12:19:43     INFO -  Process uptime: not available
[task 2022-09-17T12:19:43.714Z] 12:19:43     INFO -  Thread 0 xpcshell (crashed)
[task 2022-09-17T12:19:43.714Z] 12:19:43     INFO -   0  libxul.so!mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*) [mozStorageService.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 719 + 0x0]
[task 2022-09-17T12:19:43.714Z] 12:19:43     INFO -       rax = 0x00007f22c7720cc9    rdx = 0x0000000000000000
[task 2022-09-17T12:19:43.714Z] 12:19:43     INFO -       rcx = 0x000055fb52d73908    rbx = 0x00007fffb6199250
[task 2022-09-17T12:19:43.715Z] 12:19:43     INFO -       rsi = 0x00007f22c36c78b0    rdi = 0x00007f22c36c6680
[task 2022-09-17T12:19:43.715Z] 12:19:43     INFO -       rbp = 0x00007fffb61992e0    rsp = 0x00007fffb6199140
[task 2022-09-17T12:19:43.715Z] 12:19:43     INFO -        r8 = 0x00007f22c36c78b0     r9 = 0x00007f22d27c8200
[task 2022-09-17T12:19:43.715Z] 12:19:43     INFO -       r10 = 0x0000000000000000    r11 = 0x0000000000000000
[task 2022-09-17T12:19:43.715Z] 12:19:43     INFO -       r12 = 0x0000000000000000    r13 = 0x0000000000000000
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -       r14 = 0x00007fffb61991e0    r15 = 0x00007fffb6199250
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -       rip = 0x00007f22cb7ce166
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -      Found by: given as instruction pointer in context
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -   1  libxul.so!{virtual override thunk({offset(-8)}, mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*))} [mozStorageService.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 0 + 0xc]
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -       rbx = 0x0000000000000002    rbp = 0x00007fffb61992f0
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -       rsp = 0x00007fffb61992f0    r12 = 0x0000000000000000
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -       r13 = 0x00007f22c77c2742    r14 = 0x0000000000000000
[task 2022-09-17T12:19:43.716Z] 12:19:43     INFO -       r15 = 0x00007f22c77c2742    rip = 0x00007f22cb7ce1cf
[task 2022-09-17T12:19:43.717Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.717Z] 12:19:43     INFO -   2  libxul.so!nsObserverList::NotifyObservers(nsISupports*, char const*, char16_t const*) [nsObserverList.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 70 + 0xe]
[task 2022-09-17T12:19:43.717Z] 12:19:43     INFO -       rbx = 0x0000000000000002    rbp = 0x00007fffb6199330
[task 2022-09-17T12:19:43.717Z] 12:19:43     INFO -       rsp = 0x00007fffb6199300    r12 = 0x0000000000000000
[task 2022-09-17T12:19:43.717Z] 12:19:43     INFO -       r13 = 0x00007f22c77c2742    r14 = 0x0000000000000000
[task 2022-09-17T12:19:43.717Z] 12:19:43     INFO -       r15 = 0x00007f22c77c2742    rip = 0x00007f22cae7a565
[task 2022-09-17T12:19:43.717Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.718Z] 12:19:43     INFO -   3  libxul.so!nsObserverService::NotifyObservers(nsISupports*, char const*, char16_t const*) [nsObserverService.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 291 + 0x18]
[task 2022-09-17T12:19:43.723Z] 12:19:43     INFO -       rbx = 0x0000000000000000    rbp = 0x00007fffb6199460
[task 2022-09-17T12:19:43.723Z] 12:19:43     INFO -       rsp = 0x00007fffb6199340    r12 = 0x0000000000000000
[task 2022-09-17T12:19:43.723Z] 12:19:43     INFO -       r13 = 0x00007f22c77c2742    r14 = 0x00007f22bb98ad08
[task 2022-09-17T12:19:43.724Z] 12:19:43     INFO -       r15 = 0x00007fffb6199390    rip = 0x00007f22cae7b83d
[task 2022-09-17T12:19:43.724Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.727Z] 12:19:43     INFO -   4  libxul.so!mozilla::AppShutdown::AdvanceShutdownPhaseInternal(mozilla::ShutdownPhase, bool, char16_t const*, nsCOMPtr<nsISupports> const&) [AppShutdown.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 372 + 0xe]
[task 2022-09-17T12:19:43.728Z] 12:19:43     INFO -       rbx = 0x00007f22d1e71e10    rbp = 0x00007fffb61994b0
[task 2022-09-17T12:19:43.728Z] 12:19:43     INFO -       rsp = 0x00007fffb6199470    r12 = 0x00007fffb61994d8
[task 2022-09-17T12:19:43.728Z] 12:19:43     INFO -       r13 = 0x00007fffb6199478    r14 = 0x0000000000000000
[task 2022-09-17T12:19:43.729Z] 12:19:43     INFO -       r15 = 0x00007f22c77c2742    rip = 0x00007f22cae14736
[task 2022-09-17T12:19:43.729Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.729Z] 12:19:43     INFO -   5  libxul.so!mozilla::ShutdownXPCOM(nsIServiceManager*) [XPCOMInit.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 600 + 0xe]
[task 2022-09-17T12:19:43.730Z] 12:19:43     INFO -       rbx = 0x00007fffb61994d8    rbp = 0x00007fffb6199560
[task 2022-09-17T12:19:43.730Z] 12:19:43     INFO -       rsp = 0x00007fffb61994c0    r12 = 0x0000000000000000
[task 2022-09-17T12:19:43.732Z] 12:19:43     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000000000000
[task 2022-09-17T12:19:43.732Z] 12:19:43     INFO -       r15 = 0x00007fffb61994d0    rip = 0x00007f22caf3b8d6
[task 2022-09-17T12:19:43.732Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.733Z] 12:19:43     INFO -   6  libxul.so!XRE_XPCShellMain(int, char**, char**, XREShellData const*) [XPCShellImpl.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 1434 + 0x6]
[task 2022-09-17T12:19:43.733Z] 12:19:43     INFO -       rbx = 0x0000000000000001    rbp = 0x00007fffb6199850
[task 2022-09-17T12:19:43.733Z] 12:19:43     INFO -       rsp = 0x00007fffb6199570    r12 = 0x0000000000000000
[task 2022-09-17T12:19:43.734Z] 12:19:43     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000000000000
[task 2022-09-17T12:19:43.734Z] 12:19:43     INFO -       r15 = 0x00007fffb6199628    rip = 0x00007f22cb764601
[task 2022-09-17T12:19:43.734Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.735Z] 12:19:43     INFO -   7  xpcshell!main [xpcshell.cpp:473798bd11916dc1d69f8f3486377dfaa4e30610 : 81 + 0x1e]
[task 2022-09-17T12:19:43.735Z] 12:19:43     INFO -       rbx = 0x00007f22d22567a8    rbp = 0x00007fffb61998d0
[task 2022-09-17T12:19:43.735Z] 12:19:43     INFO -       rsp = 0x00007fffb6199860    r12 = 0xaaaaaaaaaaaaaaaa
[task 2022-09-17T12:19:43.736Z] 12:19:43     INFO -       r13 = 0x0000000000000000    r14 = 0x00007f22bb96e200
[task 2022-09-17T12:19:43.736Z] 12:19:43     INFO -       r15 = 0x00007fffb6199878    rip = 0x000055fb52cc9efe
[task 2022-09-17T12:19:43.736Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.737Z] 12:19:43     INFO -   8  libc.so.6!__libc_start_main [libc-start.c : 310 + 0x19]
[task 2022-09-17T12:19:43.737Z] 12:19:43     INFO -       rbx = 0x0000000000000000    rbp = 0x000055fb52d6d550
[task 2022-09-17T12:19:43.738Z] 12:19:43     INFO -       rsp = 0x00007fffb61998e0    r12 = 0x000055fb52cc9d10
[task 2022-09-17T12:19:43.738Z] 12:19:43     INFO -       r13 = 0x00007fffb61999b0    r14 = 0x0000000000000000
[task 2022-09-17T12:19:43.738Z] 12:19:43     INFO -       r15 = 0x0000000000000000    rip = 0x00007f22c32fbb97
[task 2022-09-17T12:19:43.739Z] 12:19:43     INFO -      Found by: call frame info
[task 2022-09-17T12:19:43.739Z] 12:19:43     INFO -   9  xpcshell!_start + 0x28
[task 2022-09-17T12:19:43.739Z] 12:19:43     INFO -       rbx = 0x0000000000000000    rbp = 0x0000000000000000
[task 2022-09-17T12:19:43.740Z] 12:19:43     INFO -       rsp = 0x00007fffb61999a0    r12 = 0x000055fb52cc9d10
[task 2022-09-17T12:19:43.740Z] 12:19:43     INFO -       r13 = 0x00007fffb61999b0    r14 = 0x0000000000000000
[task 2022-09-17T12:19:43.740Z] 12:19:43     INFO -       r15 = 0x0000000000000000    rip = 0x000055fb52cc9d39
[task 2022-09-17T12:19:43.741Z] 12:19:43     INFO -      Found by: call frame info
```