Skip to content
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

Closed
@ghost

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.


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions