Segmentation fault in invoking list(zip(,))
Open
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
Assessment
This issue has not been assessed yet.