STINNER Victor added the comment:

I'm curious. I tested in release mode, the example does crash:

$ ./python 
Segmentation fault (core dumped)

I'm able to get a Python traceback using PYTHONMALLOC=debug:

$ PYTHONMALLOC=debug ./python 
Fatal Python error: Python memory allocator called without holding the GIL

Current thread 0x00007f65bd74b700 (most recent call first):
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 790 
in _create_connection_transport
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 777 
in create_connection
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 75 in 
  File "", line 13 in client
  File "", line 16 in runner
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 239 in _step
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 126 in _run
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 1390 
in _run_once
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 405 
in run_forever
  File "/home/haypo/prog/python/default/Lib/asyncio/", line 437 
in run_until_complete
  File "", line 18 in <module>
Aborted (core dumped)


Python tracker <>
Python-bugs-list mailing list

Reply via email to