[PATCH] D148854: [llvm-stress] Switch to a FuzzMutate driver

Peter Rong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 10:00:46 PDT 2023


Peter added a comment.

In D148854#4291762 <https://reviews.llvm.org/D148854#4291762>, @bjope wrote:

> One thing I've noticed when testing this is that I do not get the same program every time, even when using the same seed.
>
> So for example running `llvm-stress -seed 20379` multiple times gives lots of different programs. That seems bad.
> Also, quite often it result in crashes such as:
>
>   llvm-stress -seed 20379
>   PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
>   Stack dump:
>   0.      Program arguments: bin/llvm-stress -seed 20379
>    #0 0x00000000005fb9f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (bin/llvm-stress+0x5fb9f8)
>    #1 0x00000000005f96ee llvm::sys::RunSignalHandlers() (bin/llvm-stress+0x5f96ee)
>    #2 0x00000000005fc1c6 SignalHandler(int) Signals.cpp:0:0
>    #3 0x00007f7fa59c5630 __restore_rt sigaction.c:0:0
>    #4 0x000000000047f070 llvm::AttributeList::hasAttributeAtIndex(unsigned int, llvm::Attribute::AttrKind) const (bin/llvm-stress+0x47f070)
>    #5 0x00000000005958fe llvm::RandomIRBuilder::connectToSink(llvm::BasicBlock&, llvm::ArrayRef<llvm::Instruction*>, llvm::Value*)::$_2::operator()(llvm::ArrayRef<llvm::Instruction*>) const RandomIRBuilder.cpp:0:0
>    #6 0x0000000000594dab llvm::RandomIRBuilder::connectToSink(llvm::BasicBlock&, llvm::ArrayRef<llvm::Instruction*>, llvm::Value*) (bin/llvm-stress+0x594dab)
>    #7 0x000000000058449e llvm::InjectorIRStrategy::mutate(llvm::BasicBlock&, llvm::RandomIRBuilder&) (bin/llvm-stress+0x58449e)
>    #8 0x00000000005833bb llvm::IRMutationStrategy::mutate(llvm::Function&, llvm::RandomIRBuilder&) (bin/llvm-stress+0x5833bb)
>    #9 0x0000000000583999 llvm::InjectorIRStrategy::mutate(llvm::Function&, llvm::RandomIRBuilder&) (bin/llvm-stress+0x583999)
>   #10 0x00000000005832a6 llvm::IRMutationStrategy::mutate(llvm::Module&, llvm::RandomIRBuilder&) (bin/llvm-stress+0x5832a6)
>   #11 0x00000000005838c8 llvm::IRMutator::mutateModule(llvm::Module&, int, unsigned long, unsigned long) (bin/llvm-stress+0x5838c8)
>   #12 0x000000000040e820 main (bin/llvm-stress+0x40e820)
>   #13 0x00007f7fa30f8555 __libc_start_main (/lib64/libc.so.6+0x22555)
>   #14 0x000000000040c86b _start (bin/llvm-stress+0x40c86b)
>   Segmentation fault (core dumped)

Thanks, I also noticed some bugs in FuzzMutate since this patch, we are working on fixing it. Let us ping you when we finished debugging.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148854/new/

https://reviews.llvm.org/D148854



More information about the llvm-commits mailing list