[pypy-issue] [issue1154] IndexError in jitviewer

kostia.lopuhin tracker at bugs.pypy.org
Mon May 28 19:46:19 CEST 2012


New submission from kostia.lopuhin <kostia.lopuhin at gmail.com>:

I get an exception when trying to load jitviewer webpage:

127.0.0.1 - - [28/May/2012 20:56:02] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
  File ".../pypy-env/site-packages/flask/app.py", line 1518, in __call__
    return self.wsgi_app(environ, start_response)
  File ".../pypy-env/site-packages/flask/app.py", line 1506, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File ".../pypy-env/site-packages/flask/app.py", line 1504, in wsgi_app
    response = self.full_dispatch_request()
  File ".../pypy-env/site-packages/flask/app.py", line 1264, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File ".../pypy-env/site-packages/flask/app.py", line 1262, in full_dispatch_request
    rv = self.dispatch_request()
  File ".../pypy-env/site-packages/flask/app.py", line 1248, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/kostia/programming/python/jitviewer/_jitviewer/app.py", line 95, in index
    loopname=name)
  File "/home/kostia/programming/python/pypy/pypy/tool/jitlogparser/parser.py", line 265, in 
from_operations
    if so_far:
  File "/home/kostia/programming/python/pypy/pypy/tool/jitlogparser/parser.py", line 162, in 
__init__
    self.parse_code_data(op.args[2][1:-1]
IndexError: list index out of range

I get the same error both on log.pypylog, supplied with jitviewer, and on log from my 
application. If I change op.args[2] to op.args[1] everything seems to work fine (op.args is a 
two element list).

Steps to reproduce:

1) Install 1.8 build locally (tried a nighly build, got same results)
2) hg clone pypy repository
3) add it to PYTHONPATH
4) make a virtualenv with pypy from step 1, activate it
5) hg clone jitviewer repo
6) run python setup.py develop in jitviewer dir
7) run jitviewer log.pypylog
8) Go to localhost:5000
9) Observe traceback

Using Ubuntu 12.04 64 bit.

I understand this is highly unlikely that this is a bug in pypy or jitviewer, just wired...

----------
messages: 4337
nosy: kostia.lopuhin, pypy-issue
priority: bug
status: unread
title: IndexError in jitviewer

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1154>
________________________________________


More information about the pypy-issue mailing list