Skip to content

Clang 15.x RISCV64 backend segfaults in usdt tests from bpftrace #58477

@kraj

Description

@kraj

Attached testcase crashed Clang itself, it only happens on RISC-V64

In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/bpftrace/0.16.0+gita277ec42102c463d656df8f64eb2f7e87e322210-r0/git/tests/testprogs/usdt_semaphore_test.c:8:
In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/bpftrace/0.16.0+gita277ec42102c463d656df8f64eb2f7e87e322210-r0/recipe-sysroot/usr/include/sys/time.h:21:
/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/bpftrace/0.16.0+gita277ec42102c463d656df8f64eb2f7e87e322210-r0/recipe-sysroot/usr/include/features.h:412:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
#  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
   ^
fatal error: error in backend: Could not match memory address.  Inline asm failure!

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:RISC-VcrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions