[ python-Bugs-1526834 ] unbalanced parentheses from command line crash pdb
SourceForge.net
noreply at sourceforge.net
Sun Aug 6 21:41:48 CEST 2006
Bugs item #1526834, was opened at 2006-07-21 21:03
Message generated for change (Comment added) made by isandler
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1526834&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: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Ilya Sandler (isandler)
Assigned to: A.M. Kuchling (akuchling)
Summary: unbalanced parentheses from command line crash pdb
Initial Comment:
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>
----------------------------------------------------------------------
>Comment By: Ilya Sandler (isandler)
Date: 2006-08-06 12:41
Message:
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
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2006-07-27 05:38
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1526834&group_id=5470
More information about the Python-bugs-list
mailing list