Skip to content

Parser crash on Clang 20.1.3 for BPF code. #140584

Open
@etsal

Description

@etsal

STEPS TO REPLICATE

git clone -b clangcrash https://github.com/etsal/scx.git scx;
cd scx/scheds/rust/scx_p2dq;
cargo build;

DESCRIPTION

Over at the sched_ext project we have recently started encountering compiler crashes, seemingly in the [parser] (https://github.com/user-attachments/files/20301509/clangcrash.txt). These crashes do not have an obvious cause, but seem to be triggered by code that uses BPF arenas.

topology-c68477.c.txt
topology-c68477.sh.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other categorycrashPrefer [crash-on-valid] or [crash-on-invalid]needs-reductionLarge reproducer that should be reduced into a simpler form

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions