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.

classification
Title: struni: Three ctypes tests are SEGFAULTing
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: christian.heimes, theller
Priority: normal Keywords:

Created on 2007-07-11 13:34 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg32473 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-07-11 13:34
Three test modules of the ctypes package are causing a seg fault in the py3k-struni branch.

for MOD in Lib/ctypes/test/test_*.py; do echo $MOD; ./python $MOD >>results 2>&1; done

...
Lib/ctypes/test/test_functions.py
Segmentation fault
Lib/ctypes/test/test_python_api.py
Segmentation fault
Lib/ctypes/test/test_slicing.py
Segmentation fault
msg32474 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-07-11 13:36
Oh I forgot to mention my system: Ubuntu Linux 7.04 on an i386 compatible machine (Intel P3).
msg32475 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-07-11 14:28
Thanks for finding out (and apologies that I've made it so difficult to find crashing tests).
Further investigation shows that the crashing test cases are:

in test_functions.py:  test_stringresult
in test_python_api.py: test_PyOS_snprintf
in test_slicing.py:   test_char_ptr and test_char_ptr_with_free

All in all, there are quite some char problems in the struni branch, but I'm working on them.
msg32476 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-07-11 18:27
Yeah it wasn't easy to find the faulty tests.

Your last commit fixed the segfault problem for me. About 20 to 25 tests are still failing but at least I can run the regression tests again w/o removing test_ctypes.py.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45169
2008-01-06 22:29:46adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-11 13:34:27christian.heimescreate