[Python-bugs-list] [Bug #116516] test_sre.py fails on Win64 because PyOS_CheckStack *never* f
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 10 Oct 2000 09:51:02 -0700
Bug #116516, was updated on 2000-Oct-10 09:51
Here is a current snapshot of the bug.
Project: Python
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: test_sre.py fails on Win64 because PyOS_CheckStack *never* f
Details: There is a small thread on python-dev discussing this:
http://www.python.org/pipermail/python-dev/2000-October/016455.html
Basically I found that PyOS_CheckStack does not fire as expected on Win64. Looking into this more I got frustrated with PyOS_CheckStack's behaviour on *Win32*. There is a simple workaround (the existing RECURSION_LIMIT framework) that could simply be turned on to ensure that test_[s]re.py run for Python 2.0. The PyOS_CheckStack behavious on Win64 can be figured out when it become more mainstream.
The proposed fix is:
*** Include\pythonrun.h~ Wed Oct 04 14:18:00 2000
--- Include\pythonrun.h Wed Oct 04 13:17:17 2000
***************
*** 88,94 ****
to a 8k margin. */
#define PYOS_STACK_MARGIN 2048
! #if defined(WIN32) && defined(_MSC_VER)
/* Enable stack checking under Microsoft C */
#define USE_STACKCHECK
#endif
--- 88,94 ----
to a 8k margin. */
#define PYOS_STACK_MARGIN 2048
! #if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER)
/* Enable stack checking under Microsoft C */
#define USE_STACKCHECK
#endif
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=116516&group_id=5470