Skip to content

Commit

Permalink
Detect LLVM verification failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 6, 2024
1 parent c16e5d0 commit 43c9618
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/evaluate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const reasons = [
missing => missing,
# crash
:abort => "the process was aborted",
:codegen => "invalid LLVM IR was generated",
:internal => "an internal error was encountered",
:unreachable => "an unreachable instruction was executed",
:gc_corruption => "GC corruption was detected",
Expand Down Expand Up @@ -390,6 +391,9 @@ function evaluate_test(config::Configuration, pkg::Package; use_cache::Bool=true
if occursin("GC error (probable corruption)", log)
status = :crash
reason = :gc_corruption
elseif occursin(r"Failed to verify .+, dumping entire module", log)
status = :crash
reason = :codegen
elseif occursin("Unreachable reached", log)
status = :crash
reason = :unreachable
Expand Down

0 comments on commit 43c9618

Please sign in to comment.