Closed
Bug 412338
Opened 18 years ago
Closed 14 years ago
Assertion failure: !cx->thread || cx->thread == thread, at /home/kaie/moz/head/mozilla/js/src/jscntxt.c:177
Categories
(Core Graveyard :: Security: UI, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: KaiE, Assigned: mayhemer)
References
Details
Attachments
(3 files)
I followed the STR in bug 408601:
- Go to https://verisign.com
- Add a expection for the Site
- The verisign homepage loads
Well, I did not get that crash described in that bug.
However, after the page loaded, I quit Firefox.
This results in the following assertion...
Assertion failure: !cx->thread || cx->thread == thread, at
/home/kaie/moz/head/mozilla/js/src/jscntxt.c:177
... and I crash. Stack attached.
Comment 1•18 years ago
|
||
What was cx->thread->id? Can you find thread ids as assigned by NSPR for the running threads (info threads in gdb might give them, depending on platform; not sure but IIRC NSPR uses native thread ids on some OSes).
/be
| Reporter | ||
Comment 2•18 years ago
|
||
Now I got this, even earlier in the procedure:
Assertion failure: cx->thread->id == js_CurrentThreadId(), at /home/kaie/moz/head/mozilla/js/src/jsapi.c:852
Will try to answer question from comment 1 next.
| Reporter | ||
Comment 3•18 years ago
|
||
| Reporter | ||
Comment 4•18 years ago
|
||
this answers the question about the value of thread id.
your code isn't legal.
nsIProxyObjectManager.getProxyForObject should be called on the original thread, not the second thread. The object you had wasn't thread safe and you passed it across a thread.
You have two choices:
A. get the proxy for the thread unsafe object *in advance* on the ui thread.
B. get a proxy to a threadsafe object and pass the work to it, and have it then on the ui thread operate on this potentially thread unsafe object.
Assignee: general → kengert
Component: JavaScript Engine → Security: UI
QA Contact: general → ui
| Reporter | ||
Comment 6•18 years ago
|
||
Tentatively marking as a duplicate of bug Bug 414745, as it talks about the same assertion.
| Reporter | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Comment 8•18 years ago
|
||
Kai, your stack trace is different from the stack trace in bug 414745.
Comment 9•18 years ago
|
||
Sorry, I only saw the second stack trace. The (first) crash stack is the same.
Comment 10•18 years ago
|
||
| Reporter | ||
Comment 11•18 years ago
|
||
reopening to deal with comment 2 + 5
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
| Assignee | ||
Comment 12•18 years ago
|
||
Crash stack in description and other one in comment 3 are IMO separate issues (bugs). I am unable to reproduce any of these. If it is a priority, I will dive into the code searching for possible cause. But it will probably take time.
Assignee: kengert → honzab
Status: REOPENED → NEW
| Reporter | ||
Comment 13•18 years ago
|
||
I can't reproduce either.
Is anyone still able to?
| Assignee | ||
Comment 14•14 years ago
|
||
Marking WFM since no other cases seen apparently.
Status: NEW → RESOLVED
Closed: 18 years ago → 14 years ago
Resolution: --- → WORKSFORME
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•