Skip to content

Segmentation fault in invoking list(zip(,)) #246

Description

@xiaxinmeng

The following code triggers a segmentation fault when invoking list(zip(c, c)).

test.py

a = ['1', '2', '3']
b = [1, 2, 3]
c = zip(b, b)
print(list(c))
print(list(zip(c, c)))

Reproduce:
'codon/codon-linux-x86_64/codon-deploy/bin/codon' run -release test.py

Crash message:

[(1, 1), (2, 2), (3, 3)]
Segmentation fault (core dumped)

Behavior on CPython 3.10.8:

[(1, 1), (2, 2), (3, 3)]
[]

Environment:
codon: v0.15.5 on Feb 6
Ubuntu 18.04

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions