[ python-Bugs-1627316 ] an extra comma in condition command crashes pdb

SourceForge.net noreply at sourceforge.net
Mon Jan 22 22:24:04 CET 2007


Bugs item #1627316, was opened at 2007-01-03 20:26
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1627316&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ilya Sandler (isandler)
Assigned to: Nobody/Anonymous (nobody)
Summary: an extra comma in condition command crashes pdb

Initial Comment:
if instead of

condition <bp_no>  <condition_text>

one enters (note the extra comma):

condition <bp_no>, <condition text>

pdb throws an exception and aborts execution of a program

Relevant parts of stacktrace:

  File "/usr/lib/python2.4/bdb.py", line 48, in trace_dispatch
    return self.dispatch_line(frame)
  File "/usr/lib/python2.4/bdb.py", line 66, in dispatch_line
    self.user_line(frame)
  File "/usr/lib/python2.4/pdb.py", line 135, in user_line
    self.interaction(frame, None)
  File "/usr/lib/python2.4/pdb.py", line 158, in interaction
    self.cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.4/pdb.py", line 390, in do_condition
    bpnum = int(args[0].strip())
ValueError: invalid literal for int(): 2,
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /site/tools/pse/lib/python2.4/pdb.py(390)do_condition()
-> bpnum = int(args[0].strip())


----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2007-01-22 21:24

Message:
Logged In: YES 
user_id=849994
Originator: NO

Fixed in rev. 53524, 53525 (2.5).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1627316&group_id=5470


More information about the Python-bugs-list mailing list