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)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: KaiE, Assigned: mayhemer)

References

Details

Attachments

(3 files)

Attached file crash stack
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.
Blocks: 411743
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
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.
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
Tentatively marking as a duplicate of bug Bug 414745, as it talks about the same assertion.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Kai, your stack trace is different from the stack trace in bug 414745.
Sorry, I only saw the second stack trace. The (first) crash stack is the same.
kaie: comment 2/comment 5 are a bug, please make sure there's a living bug for it, i really don't want my research into that to get lost.
reopening to deal with comment 2 + 5
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
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
I can't reproduce either. Is anyone still able to?
Marking WFM since no other cases seen apparently.
Status: NEW → RESOLVED
Closed: 18 years ago14 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: