Issue456398
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2001-08-29 04:56 by dalke, last changed 2022-04-10 16:04 by admin. This issue is now closed.
Messages (3) | |||
---|---|---|---|
msg6232 - (view) | Author: Andrew Dalke (dalke) * | Date: 2001-08-29 04:56 | |
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 |
|||
msg6233 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2002-11-02 02:40 | |
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? |
|||
msg6234 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2003-05-22 22:09 | |
Logged In: YES user_id=33168 Closing this report at the test pass for me on IRIX 6.5 and there's no further input. If a bug persists, please open a new report. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:04:23 | admin | set | github: 35071 |
2001-08-29 04:56:50 | dalke | create |