-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
1. Built on Fedora 19, roughly using the instructions on:
https://andrewwilkinson.wordpress.com/2012/01/23/integrating-python-and-javascri
pt-with-pyv8/
Python 2.7
2. Download CherryPy 3.7.0
3. Run the following:
import cherrypy
import PyV8
class Hello(object):
def index(self):
ctx = PyV8.JSContext()
return "Hello World!"
index.exposed = True
cherrypy.quickstart(Hello())
4: Access in browser: http://localhost:8080 through browser.
What is the expected output? What do you see instead?
Expected: "Hello World" on web browser
Instead: Segmentation Fault
Example:
python test_cherrypy.py
[12/Jun/2015:05:36:57] ENGINE Listening for SIGHUP.
[12/Jun/2015:05:36:57] ENGINE Listening for SIGTERM.
[12/Jun/2015:05:36:57] ENGINE Listening for SIGUSR1.
[12/Jun/2015:05:36:57] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.
[12/Jun/2015:05:36:57] ENGINE Started monitor thread 'Autoreloader'.
[12/Jun/2015:05:36:57] ENGINE Started monitor thread '_TimeoutMonitor'.
[12/Jun/2015:05:36:57] ENGINE Serving on http://localhost:8080
[12/Jun/2015:05:36:57] ENGINE Bus STARTED
Segmentation fault
What version of the product are you using? On what operating system?
Python 2.7.5
CherryPy 3.7.0
PyV8 1.0 (trunk)
V8 (trunk)
Please provide any additional information below.
Everything seems to work fine with scripts from the command line. I tested
much of my needed functionality with Unit tests with no issues. However, as
soon as the line:
ctx = PyV8.JSContext()
is executed through CherryPy, a segmentation fault occurs, crashing out the
entire web service.
Original issue reported on code.google.com by re...@southpawtech.com on 15 Jun 2015 at 1:54
Reactions are currently unavailable