[Python-bugs-list] [ python-Bugs-456398 ] strange IRIX test_re/test_sre failure

noreply@sourceforge.net noreply@sourceforge.net
Fri, 01 Nov 2002 18:40:41 -0800


Bugs item #456398, was opened at 2001-08-29 00:56
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=456398&group_id=5470

>Category: Regular Expressions
Group: Platform-specific
Status: Open
Resolution: None
Priority: 4
Submitted By: Andrew Dalke (dalke)
Assigned to: Fredrik Lundh (effbot)
Summary: strange IRIX test_re/test_sre failure

Initial Comment:
The test_re and test_sre regression tests cause
a core dump with the CVS version of Python.  If
I run the file directly I don't get the core dump.

test_pyclbr
test_pyexpat
test test_pyexpat skipped --  No module named pyexpat
test_quopri
test_re
make: *** [test] Segmentation fault (core dumped)
./python -E -tt ./Lib/test/regrtest.py -l
^C
%
% ./python -E -tt ./Lib/test/test_re.py
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
Test engine limitations
maximum recursion limit exceeded
Running re_tests test suite
% 

This is under an IRIX 6.4 machine, which is
several years old.  Python is compiled with
gcc 2.95.2 but using the vendor's assembler.
The assembler is also out of date.  There were
known problems with in 1.5.2 where the optimizer
broke the pcre module.  So I recompiled _sre.c
with "-g".  That did not fix the problem.

Here's the stack trace from the core file.

>  0 mark_save(state = <no such address>, lo = <no 
such address>, hi = <no such ad
dress>) 
["/usr2/people/dalke/cvses/python/dist/src/./Modules/_s
re.c":280, 0x100a1e
2c]
   1 sre_match(state = 0x7fff1200, pattern = 
0x104ec55a, level = 1357) ["/usr2/peo
ple/dalke/cvses/python/dist/src/Modules/_sre.c":1053, 
0x100a44b4]
   2 sre_match(state = 0x7fff1200, pattern = 
0x104ec55a, level = 1356) ["/usr2/peo
ple/dalke/cvses/python/dist/src/Modules/_sre.c":1057, 
0x100a4504]

Guessing it's in the "recursion limit" test.

I don't know if the problem is in _sre.c or in
the IRIX libraries.  I don't have access to
a newer version of IRIX.

I tried to force the core dump to occur without
having to go through the whole regression suite.
That doesn't work, which is itself suspecious.

% ./python -E -tt ./Lib/test/regrtest.py -l test_re
test_re
1 test OK.
% ./python -E -tt ./Lib/test/regrtest.py -l test_array 
test_re
test_array
test_re
All 2 tests OK.
% ./python -E -tt ./Lib/test/regrtest.py -l test_array 
test_re test_re
test_array
test_re
test_re
All 3 tests OK.
%

I get the same failures with test_sre.

                Andrew
                dalke@dalkescientific.com



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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-01 21:40

Message:
Logged In: YES 
user_id=33168

Andrew, is this still a problem?  How big is the stack? 
Could the problem have been that the max stack size was
exceeded which caused the crash?

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

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