This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients
Date 2004-08-31.18:06:40
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hotshot has a bug that manifests when using start/stop
instead of run(), however it appears to only occur in
the interactive interpreter or in an embedded application.

If you run the attached program like "python
hotshotbug.py" it works just fine.  However, if you
start an interactive session and paste each line one by
one into the shell, you get the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.3/hotshot/stats.py",
line 12, in load
    return StatsLoader(filename).load()
  File "/usr/local/lib/python2.3/hotshot/stats.py",
line 29, in load
    for event in log:
  File "/usr/local/lib/python2.3/hotshot/log.py", line
110, in next
    return what, self._pop(), tdelta
IndexError: pop from empty list

We discovered this when trying to profile an embedded
application which doesn't have a single entrypoint
suitable for run().  Unfortunately, I can't provide
that application, but it shouldn't matter, since the
interpreter crash is the same.
History
Date User Action Args
2007-08-23 14:25:54adminlinkissue1019882 messages
2007-08-23 14:25:54admincreate