Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Segmentation Fault in add_prop

#17

When doing this:

>>> rt = spidermonkey.Runtime()
>>> cx = rt.new_context()
>>> cx.execute("test = null;")

the program segfaults because:

JSVAL_IS_OBJECT(JSVAL_NULL) is true

You can find the fix here:

http://github.com/spahl/python-spidermonkey/tree/add_prop-segfault

It also fixes a warning at compilation.

Seb

Reported by seb · May 25th, 2009 @ 10:08 AM

State: resolved
Milestone: none
Assigned to: Paul J. Davis Paul J. Davis

Activity

  1. Paul J. Davis
    Paul J. Davis

    (from [888e8cbfd959f18273ac69c9910a952bd883ea04]) [#17 Segmentation Fault in add_prop] Fix context properties when value is null.

    Thanks to Spahl for the report, patch, and test, and general awesomeness
    at being so thorough.

    [#17 Segmentation Fault in add_prop state:resolved] http://github.com/davisp/python-spidermonkey/commit/888e8cbfd959f18...

    May 25th, 2009 @ 03:12 PM

  2. Paul J. Davis
    Paul J. Davis
    • State changed from new to resolved

    (from [888e8cbfd959f18273ac69c9910a952bd883ea04]) [#17 Segmentation Fault in add_prop] Fix context properties when value is null.

    Thanks to Spahl for the report, patch, and test, and general awesomeness
    at being so thorough.

    [#17 Segmentation Fault in add_prop state:resolved] http://github.com/davisp/python-spidermonkey/commit/888e8cbfd959f18...

    May 25th, 2009 @ 03:12 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.