Last Comment Bug 704478 - JS Shell Workers broken (Assertion failure: rt->onOwnerThread(), at jsapi.cpp:6326)
: JS Shell Workers broken (Assertion failure: rt->onOwnerThread(), at jsapi.cpp...
: assertion, testcase
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: x86 Linux
-- normal (vote)
: mozilla11
Assigned To: Luke Wagner [:luke]
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2011-11-22 07:03 PST by Christian Holler (:decoder)
Modified: 2011-12-16 05:43 PST (History)
4 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

fix (2.05 KB, patch)
2011-11-22 08:07 PST, Luke Wagner [:luke]
jorendorff: review+
Details | Diff | Splinter Review

Description User image Christian Holler (:decoder) 2011-11-22 07:03:56 PST
I just wanted to give the workers in JS shell a try (mozilla-central revision 5ebeef1eabcb) but I only get this:

js> new Worker()
Assertion failure: rt->onOwnerThread(), at mozilla-central/js/src/jsapi.cpp:6326

I've built this shell with --enable-threadsafe and system NSPR.
Comment 1 User image Christian Holler (:decoder) 2011-11-22 07:53:44 PST
The first bad revision is:
changeset:   79916:31d13586087f
user:        Luke Wagner
date:        Fri Jul 01 14:11:31 2011 -0700
summary:     Bug 650411 - assert in debug/release builds that JSRuntime is only used in a single-threaded manner (r=jorendorff,sr=dmandelin)
Comment 2 User image Luke Wagner [:luke] 2011-11-22 08:07:03 PST
Created attachment 576167 [details] [diff] [review]

Oops, I added a new JS_AbortIfWrongThread (under JS_SetContextThread) and forgot to run shell workers.
Comment 3 User image David Mandelin [:dmandelin] 2011-12-12 15:09:51 PST
*** Bug 704592 has been marked as a duplicate of this bug. ***
Comment 5 User image :Ms2ger (⌚ UTC+1/+2) 2011-12-16 05:43:20 PST

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