Closed Bug 1575692 Opened 5 years ago Closed 5 years ago

Storage gtest invokes the directory service off the mainthread (via DatabaseLocker::Run() and getDatabase())

Categories

(Toolkit :: Storage, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

Attachments

(1 file)

[task 2019-08-21T22:00:28.618Z] 22:00:28     INFO -  TEST-START | storage_unlock_notify.Test
[task 2019-08-21T22:00:28.640Z] 22:00:28     INFO -  Assertion failure: NS_IsMainThread(), at z:/build/build/src/xpcom/io/nsDirectoryService.cpp:186
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #01: getDatabase() [storage/test/gtest/storage_test_harness.h:63]
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #02: DatabaseLocker::Run() [storage/test/gtest/test_unlock_notify.cpp:47]
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #03: nsThread::ProcessNextEvent(bool,bool *) [xpcom/threads/nsThread.cpp:1214]
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #04: NS_ProcessNextEvent(nsIThread *,bool) [xpcom/threads/nsThreadUtils.cpp:486]
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #05: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate *) [ipc/glue/MessagePump.cpp:303]
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #06: MessageLoop::RunHandler() [ipc/chromium/src/base/message_loop.cc:309]
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #07: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:291]
[task 2019-08-21T22:00:48.843Z] 22:00:48     INFO -  #08: nsThread::ThreadFunc(void *) [xpcom/threads/nsThread.cpp:460]
[task 2019-08-21T22:00:49.256Z] 22:00:49     INFO -  #09: PR_NativeRunThread [nsprpub/pr/src/threads/combined/pruthr.c:406]

This looks like a testing artifact that should be easy to fix.

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/0a32477c7afc
do not recreate the DB file via the directory service inside DatabaseLocker class off the mainthread, r=mak
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: