Skip to content

llvm-reduce assertion failure #57446

@nikic

Description

@nikic

For https://gist.github.com/nikic/0e4c3a7e4783ceeb15b5f9fab1b22809 with

#!/bin/sh
! build/bin/opt -S -slp-vectorizer < $1 > /dev/null

build/bin/llvm-reduce --test crash.sh test.ll results in the following assertion failure:

llvm-reduce: /home/npopov/repos/llvm-project/llvm/tools/llvm-reduce/deltas/Delta.cpp:271: void llvm::runDeltaPass(llvm::TestRunner&, llvm::ReductionFunc): Assertion `Targets == NoChunksCounter.count() && "number of chunks changes when reducing"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: build/bin/llvm-reduce --test crash.sh out.ll
 #0 0x000000000288cf91 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #1 0x000000000288ac74 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f34e1ac8dc0 __restore_rt (/lib64/libc.so.6+0x54dc0)
 #3 0x00007f34e1b1556c __pthread_kill_implementation (/lib64/libc.so.6+0xa156c)
 #4 0x00007f34e1ac8d16 gsignal (/lib64/libc.so.6+0x54d16)
 #5 0x00007f34e1a9c7f3 abort (/lib64/libc.so.6+0x287f3)
 #6 0x00007f34e1a9c71b _nl_load_domain.cold (/lib64/libc.so.6+0x2871b)
 #7 0x00007f34e1ac1c66 (/lib64/libc.so.6+0x4dc66)
 #8 0x00000000004e263a llvm::runDeltaPass(llvm::TestRunner&, llvm::function_ref<void (llvm::Oracle&, ReducerWorkItem&)>) (build/bin/llvm-reduce+0x4e263a)
 #9 0x00000000004d45c5 llvm::runDeltaPasses(llvm::TestRunner&, int) (build/bin/llvm-reduce+0x4d45c5)
#10 0x0000000000413f1b main (build/bin/llvm-reduce+0x413f1b)
#11 0x00007f34e1ab3eb0 __libc_start_call_main (/lib64/libc.so.6+0x3feb0)
#12 0x00007f34e1ab3f60 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3ff60)
#13 0x00000000004d1d65 _start (build/bin/llvm-reduce+0x4d1d65)
Aborted (core dumped)

cc @regehr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions