Skip to content

[SPIRV] Investigate usage of report_fatal_error in SPIRVInstructionSelector #124045

@inbelic

Description

@inbelic

Throughout SPIRVInstructionSelector there are many uses of report_fatal_error to indicate various errors, however, none of these have any associated testing.

As part of #123853, this pattern was propagated to report an error and a test was added to ensure the correct error message was received. This caused the hwasan build bot to fail.

It is assumed that all of the other report_fatal_error instances would cause a similar failure if executed on the build-bot, or at the least, the other instance that outputs a diagnostics message printing out the current instruction here.

This issue is to track an investigation of which uses of report_fatal_error cause the sanitization build-bot to fail, and apply a fix correspondingly.

Of the top of my head some potential things to check are:
We don't seem to return false after reporting a fatal error
We have allocated a diag message to output through a locally constructed output_stream.

AC:

Metadata

Metadata

Assignees

Labels

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

Type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions