[pypy-issue] [issue1236] Pypy eventlet crash
bloodmage
tracker at bugs.pypy.org
Sat Aug 18 18:56:15 CEST 2012
New submission from bloodmage <zhouyisu at gmail.com>:
Environment:
Windows 7 64bit
Pypy-1.9 (or latest)
eventlet-0.9.15
Flask-0.9
Jinja2-2.6
werkzeug-fe7633c(latest)
mongo-python-driver-880ba27(latest)
I'm running a small benchmark to test pypy performance. Unfortunately it
crashes, showing me following message:
D:\pypy-1.9\benchmark>..\pypy.exe pypyflaskmongo.py
RPython traceback:
File "jit_metainterp_compile.c", line 136, in force_now_1
File "jit_metainterp_compile.c", line 228, in ResumeGuardForcedDescr_save_data
Fatal RPython error: AssertionError
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
----------
files: pypyflaskmongo.py
messages: 4654
nosy: bloodmage, pypy-issue
priority: bug
release: 1.9
status: unread
title: Pypy eventlet crash
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1236>
________________________________________
-------------- next part --------------
import eventlet
eventlet.monkey_patch()
from eventlet import wsgi
from flask import Flask
app=Flask(__name__)
import random
import time
pymongo=eventlet.import_patched('pymongo')
conn=pymongo.Connection(use_greenlets=True)
db=conn.testdatabase
@app.route('/')
def hello():
rand=random.random()
db.testcollection.insert({'timestamp':time.time(),'rand':rand})
conn.end_request()
return "Hello world! %s"%rand
class StubFile:
def write(self,a): pass
def hello_world(env, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['Hello, World!\r\n']
wsgi.server(eventlet.listen(('',8090)),app.wsgi_app,keepalive=False,log=StubFile())
More information about the pypy-issue
mailing list