problem with python 1.5.2 compiled with -DPy_DEBUG

Toby J Sargeant tjs at longford.cs.monash.edu.au
Tue Oct 12 23:59:42 EDT 1999


Am I just doing something stupid?

I untarred the python 1.5.2 sources, and:

./configure --prefix=/usr/local/contrib/python-debug --with-threads
make OPT='-DPy_DEBUG -ggdb3'

[toby at ephedra Python-1.5.2]$ ./python Lib/test/test_re.py
Adding parser accelerators ...
Done.
Running tests on re.search and re.match
Running tests on re.sub
Running tests on symbolic references
Running tests on re.subn
Running tests on re.split
Running tests on re.findall
Running tests on re.match
Running tests on re.escape
Pickling a RegexObject instance
Running re_tests test suite
Fatal Python error: UNREF invalid object
Aborted (core dumped)

This happens with or without --with-threads

Stack trace follows:

#3  0x8072c43 in Py_FatalError (msg=0x80a027b "UNREF invalid object")
    at pythonrun.c:1036
#4  0x80524f1 in _Py_ForgetReference (op=0x8125a88) at object.c:658
#5  0x8052534 in _Py_Dealloc (op=0x8125a88) at object.c:680
#6  0x805d729 in eval_code2 (co=0x8139260, globals=0x8135728, locals=0x0, 
    args=0x80f0398, argcount=1, kws=0x80f039c, kwcount=0, defs=0x80da4e4, 
    defcount=1, owner=0x0) at ceval.c:1656
#7  0x805d505 in eval_code2 (co=0x8109150, globals=0x80f44e8, 
    locals=0x80f44e8, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, 
    defcount=0, owner=0x0) at ceval.c:1612
#8  0x805965e in PyEval_EvalCode (co=0x8109150, globals=0x80f44e8, 
    locals=0x80f44e8) at ceval.c:324
#9  0x8072836 in run_node (n=0x80e5f88, 
    filename=0xbffffda9 "Lib/test/test_re.py", globals=0x80f44e8, 
    locals=0x80f44e8) at pythonrun.c:887
#10 0x80727e5 in run_err_node (n=0x80e5f88, 
    filename=0xbffffda9 "Lib/test/test_re.py", globals=0x80f44e8, 
    locals=0x80f44e8) at pythonrun.c:872
#11 0x80727af in PyRun_File (fp=0x80c4b08, 
    filename=0xbffffda9 "Lib/test/test_re.py", start=257, globals=0x80f44e8, 
    locals=0x80f44e8) at pythonrun.c:860
#12 0x8071cfa in PyRun_SimpleFile (fp=0x80c4b08, 
    filename=0xbffffda9 "Lib/test/test_re.py") at pythonrun.c:570
#13 0x807189f in PyRun_AnyFile (fp=0x80c4b08, 
    filename=0xbffffda9 "Lib/test/test_re.py") at pythonrun.c:451
#14 0x804fb9c in Py_Main (argc=2, argv=0xbffffca4) at main.c:287
#15 0x804f5f0 in main (argc=2, argv=0xbffffca4) at python.c:12





More information about the Python-list mailing list