[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"

2018-01-18 Thread Василь Коломієць

Василь Коломієць  added the comment:

Thanks a lot!
Grace and Honor!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"

2018-01-18 Thread Eryk Sun

Eryk Sun  added the comment:

CPython pushes a frame on the thread's stack for every Python frame. By default 
in Windows Python the thread's stack is allowed to grow up to about 2 MB. On 
Linux the default limit is 8 MB, but a higher limit can be set via `ulimit -s`. 
After the stack is full, pushing another value will crash the process due to a 
stack overflow. Windows raises a STATUS_STACK_OVERFLOW (0xC0FD) exception. 
Linux raises a SIGSEGV signal (segmentation fault).

The default interpreter recursion limit of 1,000 is set to raise a Python 
RecursionError well before you'd see a hard crash from a stack overflow. If we 
ballpark a C stack frame at about 1 KB in 64-bit Python, then the default stack 
size on Windows should support a recursion limit of about 2,000. For a 
recursion limit of 100,000, I would estimate a 100 MB stack size.

You can call threading.stack_size(size_in_bytes) to reserve a larger stack size 
for new threads. However, in Python code it's better to rewrite such deeply 
recursive cases to use loops instead.

--
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"

2018-01-18 Thread Василь Коломієць

Василь Коломієць  added the comment:

sorry - wrong ideone example
this one better to look:
https://ideone.com/aV9Z8p

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"

2018-01-16 Thread Василь Коломієць

New submission from Василь Коломієць :

The code https://ideone.com/ctx92s works for 1 000 000. 
But on my PC it works only for 1024.
Wen i am trting give him 1 000 000 - the Python crashes without any words:
https://i.stack.imgur.com/1do06.png
and in windows we can found this crash report: 
https://i.stack.imgur.com/nruoa.png
---
so it works for low values and crashes on higher values. Buy its no bug...
Than - What is it?

--
components: Windows
messages: 310095
nosy: Vasyl Kolomiets, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python crash  0xc0fd Windows10 x64  -  "fail without words"
type: crash
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com