[New-bugs-announce] [issue1315] Bug in pstats.print_callers

Joel Schaerer report at bugs.python.org
Tue Oct 23 12:31:25 CEST 2007


New submission from Joel Schaerer:

The following command:

python -c "import
pstats;s=pstats.Stats('profile.pck');s.strip_dirs();s.print_callers(25)"

Crashes with the following traceback:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/pstats.py", line 388, in print_callers
    self.print_call_line(width, func, callers, "<-")
  File "/usr/lib/python2.5/pstats.py", line 417, in print_call_line
    nc, cc, tt, ct = value
ValueError: too many values to unpack

when called with the attached profile.pck file, which was generated with
cProfile.

The interesting thing is that is I remove strip_dirs, it works.

----------
components: Library (Lib)
files: profile.pck
messages: 56677
nosy: lardon
severity: normal
status: open
title: Bug in pstats.print_callers
type: crash
versions: Python 2.5
Added file: http://bugs.python.org/file8596/profile.pck

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1315>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profile.pck
Type: application/octet-stream
Size: 115173 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071023/ec670981/attachment-0001.obj 


More information about the New-bugs-announce mailing list