Skip to content

DirectX codegen tests failing when ran under hwasan #128598

Closed
@Icohedron

Description

@Icohedron

After the merging of a PR (#128556) fix to DirectX build breaks, 28 DirectX tests are failing when ran under my hwasan build of this PR's branch.
See this log: https://gist.github.com/Icohedron/54739cbd0ab952d666bf376e76c9bb85

Similar to issue #124045, it appears to be related to the use of -o /dev/null with llc

/workspace/llvm-project/build/bin/llc /workspace/llvm-project/llvm/test/CodeGen/DirectX/BufferStore-errors.ll -o /dev/null 2>&1
error: <unknown>:0:0: in function storetoomany void (<5 x float>, i32): typedBufferStore data must be a vector of 4 elements

error: <unknown>:0:0: in function storetoofew void (<3 x i32>, i32): typedBufferStore data must be a vector of 4 elements

pure virtual method called
terminate called without an active exception
Aborted

Replacing -o /dev/null with -o - makes the tests pass.

This is odd because @vitalybuka supposedly patched a similar issue w.r.t. a SPIRV codegen error test ( #125599 (comment) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:DirectXquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions