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.

classification
Title: an extra comma in condition command crashes pdb
Type: Stage:
Components: None Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, isandler
Priority: normal Keywords:

Created on 2007-01-03 20:26 by isandler, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg30904 - (view) Author: Ilya Sandler (isandler) Date: 2007-01-03 20:26
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())
msg30905 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-01-22 21:24
Fixed in rev. 53524, 53525 (2.5).
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44402
2007-01-03 20:26:29isandlercreate