exaloop / exaloop/codon

Segmentation fault in invoking list(zip(,))

Open
#246 6 comments 0 reactions 1 assignee Claimed by @arshajii View on GitHub
bug
Dominant language
Python
Stars
16.8k
Forks
603
Avg merge
4d 23h
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.