#17 ✓resolved
seb

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

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.

New-ticket Create new ticket

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

Pages