[llvm-bugs] [Bug 43273] New: LICM: OptimizationRemarkEmitterAnalysis not cached at a higher level

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 11 01:50:38 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43273

            Bug ID: 43273
           Summary: LICM: OptimizationRemarkEmitterAnalysis not cached at
                    a higher level
           Product: new-bugs
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: 348085547 at qq.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

When I run fuzzer testcase llvm-opt-fuzzer--x86_64-licm, a fatal error occurs.

#589    NEW    cov: 3718 ft: 6077 corp: 166/181Kb lim: 4096 exec/s: 196 rss:
89Mb L: 1228/1280 MS: 2 Custom-Custom-
#597    NEW    cov: 3718 ft: 6092 corp: 167/182Kb lim: 4096 exec/s: 199 rss:
89Mb L: 1268/1280 MS: 3 Custom-Custom-Custom-
LLVM ERROR: LICM: OptimizationRemarkEmitterAnalysis not cached at a higher
level
Aborting to trigger fuzzer exit handling.
AddressSanitizer:DEADLYSIGNAL
=================================================================
==13==ERROR: AddressSanitizer: ABRT on unknown address 0x00000000000d (pc
0x7f048d9b3428 bp 0x7ffe58fb11b0 sp 0x7ffe58fb1068 T0)
SCARINESS: 10 (signal)
    #0 0x7f048d9b3427 in gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35427)
    #1 0x7f048d9b5029 in abort (/lib/x86_64-linux-gnu/libc.so.6+0x37029)
    #2 0x797d6f in handleLLVMFatalError(void*, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)
/src/llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp:169:3
    #3 0x70c0445 in llvm::report_fatal_error(llvm::Twine const&, bool)
/src/llvm/lib/Support/ErrorHandling.cpp:107:5
    #4 0x70c02bc in llvm::report_fatal_error(char const*, bool)
/src/llvm/lib/Support/ErrorHandling.cpp:82:3
    #5 0x6972c84 in llvm::LICMPass::run(llvm::Loop&,
llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&,
llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)
/src/llvm/lib/Transforms/Scalar/LICM.cpp:285:5
    #6 0x79234cc in llvm::detail::PassModel<llvm::Loop, llvm::LICMPass,
llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Loop,
llvm::LoopStandardAnalysisResults&>, llvm::LoopStandardAnalysisResults&,
llvm::LPMUpdater&>::run(llvm::Loop&, llvm::AnalysisManager<llvm::Loop,
llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&,
llvm::LPMUpdater&) /src/llvm/include/llvm/IR/PassManagerInternal.h:79:17
    #7 0x87e83eb in llvm::PassManager<llvm::Loop,
llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>,
llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&>::run(llvm::Loop&,
llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&,
llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)
/src/llvm/lib/Transforms/Scalar/LoopPassManager.cpp:44:38
    #8 0x792bb4b in
llvm::FunctionToLoopPassAdaptor<llvm::PassManager<llvm::Loop,
llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>,
llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&> >::run(llvm::Function&,
llvm::AnalysisManager<llvm::Function>&)
/src/llvm/include/llvm/Transforms/Scalar/LoopPassManager.h:352:39
    #9 0x792a57c in llvm::detail::PassModel<llvm::Function,
llvm::FunctionToLoopPassAdaptor<llvm::PassManager<llvm::Loop,
llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>,
llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&> >,
llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&,
llvm::AnalysisManager<llvm::Function>&)
/src/llvm/include/llvm/IR/PassManagerInternal.h:79:17
    #10 0x5a12c29 in llvm::PassManager<llvm::Function,
llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&,
llvm::AnalysisManager<llvm::Function>&)
/src/llvm/include/llvm/IR/PassManager.h:515:37
    #11 0x795cb84 in
llvm::ModuleToFunctionPassAdaptor<llvm::PassManager<llvm::Function,
llvm::AnalysisManager<llvm::Function>> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
/src/llvm/include/llvm/IR/PassManager.h:1307:39
    #12 0x795c4bc in llvm::detail::PassModel<llvm::Module,
llvm::ModuleToFunctionPassAdaptor<llvm::PassManager<llvm::Function,
llvm::AnalysisManager<llvm::Function>> >, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
/src/llvm/include/llvm/IR/PassManagerInternal.h:79:17
    #13 0x5a0d6a9 in llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&)
/src/llvm/include/llvm/IR/PassManager.h:515:37
    #14 0x78dc83 in LLVMFuzzerTestOneInput
/src/llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp:154:7
    #15 0x687a21 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*,
unsigned long) /src/llvm/projects/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:554:15
    #16 0x687145 in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long,
bool, fuzzer::InputInfo*, bool*)
/src/llvm/projects/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:470:3
    #17 0x6894f7 in fuzzer::Fuzzer::MutateAndTestOne()
/src/llvm/projects/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:696:19
    #18 0x68a295 in fuzzer::Fuzzer::Loop(std::Fuzzer::vector<fuzzer::SizedFile,
fuzzer::fuzzer_allocator<fuzzer::SizedFile> >&)
/src/llvm/projects/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:832:5
    #19 0x678068 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char
const*, unsigned long))
/src/llvm/projects/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:825:6
    #20 0x6a18f2 in main
/src/llvm/projects/compiler-rt/lib/fuzzer/FuzzerMain.cpp:19:10
    #21 0x7f048d99e82f in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #22 0x64b6f8 in _start (/out/llvm-opt-fuzzer--x86_64-licm+0x64b6f8)

I am not sure whether should I append some test options or it is a bug.
Any suggestions?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190911/195c7530/attachment-0001.html>


More information about the llvm-bugs mailing list