[Python-Dev] simple syntax error bombs interpreter

Thomas Wouters thomas@xs4all.net
Wed, 12 Jul 2000 19:04:44 +0200

On Wed, Jul 12, 2000 at 06:59:20PM +0200, Thomas Wouters wrote:
> On Wed, Jul 12, 2000 at 05:48:16PM +0100, Michael Hudson wrote:
> > "Fredrik Lundh" <effbot@telia.com> writes:
> > Hmm.  Mine doesn't.  What platform, stack, etc?
> Mine does crash. 

Eh, Linux (RedHat 6.1), both 2.0b1-CVS-tree (recent) and python 1.6a2
(couple of weeks old) that is.

Traceback of the exception is:

#0  PyErr_NormalizeException (exc=0xbffff718, val=0xbffff71c, tb=0xbffff720)
    at errors.c:170
#1  0x8065501 in PyErr_PrintEx (set_sys_last_vars=1) at pythonrun.c:686
#2  0x80654d6 in PyErr_Print () at pythonrun.c:676
#3  0x80652fa in PyRun_SimpleString (command=0x821fc58 "def a(b): global b\n")
    at pythonrun.c:601
#4  0x8052a01 in Py_Main (argc=3, argv=0xbffff7d4) at main.c:256
#5  0x8052606 in main (argc=3, argv=0xbffff7d4) at python.c:10

though I doubt it's really helpful, as the actual bug is elsewhere.

Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!