Skip to content

Segmentation Fault in compiler #592

@cduck

Description

@cduck

Minimum example:

from kirin.prelude import basic
from kirin.dialects import ilist

print('Starting')

try:
    @basic
    def trigger_seg_fault_on_compile():
        def closure(i):
            ilist.map(closure, range(4))
        return closure(0)

except BaseException as e:
    print('Exception', e)  # This line is not run because segfault is not catchable

print('This line is not reached')
% uv run python crash.py
Starting
% echo $?  # Process exited with code 139
139

Metadata

Metadata

Assignees

No one assigned

    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