Closed Bug 109635 Opened 23 years ago Closed 23 years ago

crash in js_GC() when marking fp->argv

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: MobDotCom, Assigned: brendan)

Details

(Keywords: crash)

Attachments

(1 file)

crash on the line: nslots = JS_MAX(fp->argc, fp->fun->nargs);
when fp->fun is NULL.

happens when i'm invoking Java (instanciating a small class and calling a small 
method).
JS_GC() is simultaneously invoked by another thread, and crashes.

ofcourse the first thread called JS_BeginRequest()
Severity: normal → critical
Keywords: crash
MobDotCom@hotmail.com : could you attach a reduced testcase to this bug
via the "Create a new attachment" link above? Thank you -

Also, please attach a stack trace for the crash - 

cc'ing Brendan in case the problem is already apparent to him.

MobDotCom@hotmail.com : could you attach a reduced testcase? Or is
there a URL we can go to that shows the problem? If not, we're going
to have to close this bug; thanks -
We need those threads' stacks, at the least.  Also, the Java you're invoking,
and the JS that invokes it.  Please supply such data when reporting bugs!

The GC is assuming that if fp->argv is non-null, fp->fun must be non-null.  That
looks like it may be an invalid assumption for LiveConnect.  Cc'ing beard.

/be
Assignee: rogerl → brendan
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch proposed fixSplinter Review
Comment on attachment 58390 [details] [diff] [review]
proposed fix

r/sr=jband
Attachment #58390 - Flags: superreview+
Fixed.

/be
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Marking Verified - 
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: