[Python-bugs-list] [ python-Bugs-472956 ] UMR when there is a syntax error

noreply@sourceforge.net noreply@sourceforge.net
Sat, 20 Oct 2001 07:28:21 -0700


Bugs item #472956, was opened at 2001-10-19 16:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=472956&group_id=5470

Category: Parser/Compiler
Group: Python 2.2
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: UMR when there is a syntax error

Initial Comment:
perrdetail.token is unitialized when there is a syntax
error in a file.

Call chain during the error is:

            err_input      [pythonrun.c:1207]
            PyParser_SimpleParseFile [pythonrun.c:1158]
            load_source_module [import.c:634]
            load_module    [import.c:1318]
            imp_load_module [import.c:2310]
            PyCFunction_Call [methodobject.c:101]

The attached patch fixes the problem.

Neal


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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-20 07:28

Message:
Logged In: YES 
user_id=6380

Thanks -- good job!

Applied to CVS.

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

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