This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
calling PyTasklet_New( NULL, ...) crashes #129
Copy link
Copy link
Closed

Description
Originally reported by: Anselm Kruis (Bitbucket: akruis, GitHub: akruis)
Affected version: all
Problem
Jun Liu reported on the Stackless mailing list, that calling PyTasklet_New( NULL, ...) crashes (http://www.stackless.com/pipermail/stackless/2017-April/006470.html). The documentation explicitly allows NULL as first argument.
Looking at the history of PyTasklet_New I found the changes 20dad21ded9c (2.7-slp) and dae0e80f141d (3.2-slp), which remove - probably by accident - a if (type == NULL) type = &PyTasklet_Type;
. The documentation needs some love too: what does "via capture()" mean?
Proposed Solution
I'll re-add the check for NULL and update the documentation.