[llvm-dev] [RFC] Generating LLD reproducers on crashes

via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 21 05:50:15 PDT 2021


> If the logic is simply `if CrashRecoveryContext::RunSafely finds a
> failure, rerun with --reproduce`. I don't think implementing this in the
> driver is simpler than `(ld.lld "$@" 2> log; code=$?; if grep 'crash
> pattern, maybe Stack' log; then ld.lld "$@" --reproduce=somewhere; fi
> ...).

I think implementing it once in the driver is simpler than implementing
the above scripting many times by each user who wants a reproducer.
Having it as a linker feature is obviously more user-friendly.
--paulr



More information about the llvm-dev mailing list