[Python-bugs-list] python 1.5.2 coredump (repost). (PR#113)

tjs@longford.cs.monash.edu.au tjs@longford.cs.monash.edu.au
Tue, 19 Oct 1999 09:21:50 -0400 (EDT)


[this is a repost of something I sent last week, which didn't receive any
 responses. python 1.5.2 coredumps (due to an assertion failure) when
 running the re module tests, if it is compiled with -DPy_DEBUG]

System configuration:
	Python 1.5.2 (#1, Oct 13 1999, 14:15:09)
	gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
	Linux ephedra 2.2.7 #2 Thu May 6 14:10:35 EST 1999 i686 unknown
	glibc-2.1.1
	(Redhat 6.0)

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

[toby@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