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: unbalanced parentheses from command line crash pdb
Type: Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, isandler
Priority: normal Keywords:

Created on 2006-07-22 04:03 by isandler, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg29252 - (view) Author: Ilya Sandler (isandler) Date: 2006-07-22 04:03
 bagira:~/python-svn/patches> cat simple
 print 123

 bagira:~/python-svn/patches> ../python/trunk/python -m
pdb simple

 (Pdb) b f(                   #crashes your program
 Traceback (most recent call last):
 ...
  File "/home/ilya/python-svn/python/trunk/Lib/sre.py",  
  line 233, in _compile
    raise error, v # invalid expression
 error: unbalanced parenthesis
 Uncaught exception. Entering post mortem debugging

 (Pdb) b f(   # doing it post-mortem fully crashes pdb
 Traceback (most recent call last):
 ..
    raise error, v # invalid expression
 sre_constants.error: unbalanced parenthesis

 bagira:~/python-svn/patches>
msg29253 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-07-27 12:38
Logged In: YES 
user_id=11375

Easily fixed by adding a re.escape() call, but this means
that 'b f()', if you've been doing that, will no longer work
to set a breakpoint.  The documentation doesn't claim that
'b f()' should work, but people may be used to typing this.

I've asked the 2.5 release manager about this issue.
msg29254 - (view) Author: Ilya Sandler (isandler) Date: 2006-08-06 19:41
Logged In: YES 
user_id=971153

I don't think supporting 
"b f()"

is needed...

And as a catch-all argument, gdb does not support "b f()"
either
msg29255 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-09-05 13:19
Logged In: YES 
user_id=11375

Fix applied in rev. 51745.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43708
2006-07-22 04:03:46isandlercreate