Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Destroying the default loop in corecext causes the interpreter to crash #1098
>>> import gevent >>> gevent.get_hub() <Hub at 0x10cb74768 select default pending=0 ref=0> >>> loop = gevent.config.loop(default=True) >>> loop.destroy() None >>> del loop >>> ^D Segmentation fault: 11
I've seen this backtrace from that example:
I've also seen this backtrace from a test script:
We should try to do better than crash.
This can also happen in the CFFI implementations, you just have to work at it because they don't have a
loop1 = gevent.config.loop(default=True) loop2 = gevent.config.loop(default=True) loop1.destroy() loop2.destroy() # bang!