Segmentation Fault in add_prop
Reported by seb | May 25th, 2009 @ 10:08 AM
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
Comments and changes to this ticket
-
Paul J. Davis May 25th, 2009 @ 03:12 PM
(from [888e8cbfd959f18273ac69c9910a952bd883ea04]) [#17] Fix context properties when value is
null
.Thanks to Spahl for the report, patch, and test, and general awesomeness
at being so thorough.[#17 state:resolved] http://github.com/davisp/python-spidermonkey/commit/888e8cbfd959f18...
-
Paul J. Davis May 25th, 2009 @ 03:12 PM
- State changed from new to resolved
(from [888e8cbfd959f18273ac69c9910a952bd883ea04]) [#17] Fix context properties when value is
null
.Thanks to Spahl for the report, patch, and test, and general awesomeness
at being so thorough.[#17 state:resolved] http://github.com/davisp/python-spidermonkey/commit/888e8cbfd959f18...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Python/JavaScript bridge module, making use of Mozilla's spidermonkey JavaScript implementation. Allows implementation of JavaScript classes, objects and functions in Python, and evaluation and calling of JavaScript scripts and functions respectively. Borrows heavily from Claes Jacobssen's Javascript Perl module, in turn based on Mozilla's 'PerlConnect' Perl binding.
People watching this ticket
Referenced by
- 17 Segmentation Fault in add_prop (from [888e8cbfd959f18273ac69c9910a952bd883ea04]) [#17] F...
- 17 Segmentation Fault in add_prop [#17 state:resolved] http://github.com/davisp/python-spi...
- 17 Segmentation Fault in add_prop (from [888e8cbfd959f18273ac69c9910a952bd883ea04]) [#17] F...
- 17 Segmentation Fault in add_prop [#17 state:resolved] http://github.com/davisp/python-spi...