Skip to content

calling sys.exit causes a segfault #1782

@dylon

Description

@dylon

Calling sys.exit with any value causes a segfault in lpython 0.13.0:

$ cat main.py
import sys
sys.exit(0)

$ lpython --show-c main.py
[1]    3803544 segmentation fault (core dumped)  lpython --show-c main.py

$ lpython --version
LPython version: 0.13.0
Platform: Linux
Default target: x86_64-unknown-linux-gnu

If I comment-out the call to sys.exit, lpython works as expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions