You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Originally reported by: Johnny Healey (Bitbucket: johealey, GitHub: revnull)
I've been encountering segfaults while shutting down stackless. Debugging with gdb lead to a for loop that doesn't seem to be checking to see if the value it is iterating over is null.
Original comment byAnselm Kruis (Bitbucket: akruis, GitHub: akruis):
I was able to craft a test case, that triggers the bug reliable.
The for(cs = csfirst; !(in_loop && cs == csfirst); cs = cs->next) loop is broken. PyTasklet_Kill(t) decrefs t->tempval. This can run code. If this code releases the GIL, tasklet t might run and t->cstate might change and cs gets finalized.
Originally reported by: Johnny Healey (Bitbucket: johealey, GitHub: revnull)
I've been encountering segfaults while shutting down stackless. Debugging with gdb lead to a for loop that doesn't seem to be checking to see if the value it is iterating over is null.
I've attached a proposed patch.
null_ptr.patch.zip
test_issue105.py.zip
The text was updated successfully, but these errors were encountered: