[llvm-bugs] [Bug 51737] New: frontend failure when compiling openmp offload with -g

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 3 10:51:49 PDT 2021


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

            Bug ID: 51737
           Summary: frontend failure when compiling openmp offload with -g
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xw111luoye at gmail.com
                CC: llvm-bugs at lists.llvm.org

got failure when compiling QMCPACK with -g.
No issue on 20210811 but 20210824 already have this issue

1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/home/yeluo/opt/qmcpack/src/QMCWaveFunctions/Fermion/DiracDeterminantBatched.cpp'.
4.      Running pass 'NVPTX Assembly Printer' on function
'@__kmpc_nvptx_parallel_reduce_nowait_v2'
 #0 0x0000000002cf8703 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x2cf8703)
 #1 0x0000000002cf63ee llvm::sys::RunSignalHandlers()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x2cf63ee)
 #2 0x0000000002cf8a8f SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f75e4175f80 __restore_rt (/lib64/libpthread.so.0+0x13f80)
 #4 0x0000000003939e04
llvm::DwarfDebug::emitInitialLocDirective(llvm::MachineFunction const&,
unsigned int) (/soft/compilers/llvm/main-20210903/bin/clang-14+0x3939e04)
 #5 0x000000000390c049
llvm::AsmPrinter::emitInitialRawDwarfLocDirective(llvm::MachineFunction const&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x390c049)
 #6 0x000000000160045c llvm::NVPTXAsmPrinter::emitFunctionEntryLabel()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x160045c)
 #7 0x000000000390eca7 llvm::AsmPrinter::emitFunctionHeader()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x390eca7)
 #8 0x000000000390ff7d llvm::AsmPrinter::emitFunctionBody()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x390ff7d)
 #9 0x0000000001601849
llvm::NVPTXAsmPrinter::runOnMachineFunction(llvm::MachineFunction&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x1601849)
#10 0x00000000020956ce
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x20956ce)
#11 0x00000000024dbc58 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x24dbc58)
#12 0x00000000024e2408 llvm::FPPassManager::runOnModule(llvm::Module&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x24e2408)
#13 0x00000000024dc2f7 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x24dc2f7)
#14 0x0000000002f96564 (anonymous
namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
#15 0x0000000002f8f9ae clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef,
llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x2f8f9ae)
#16 0x0000000003caf22f
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x3caf22f)
#17 0x00000000046877c3 clang::ParseAST(clang::Sema&, bool, bool)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x46877c3)
#18 0x00000000035f9423 clang::FrontendAction::Execute()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x35f9423)
#19 0x0000000003569648
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x3569648)
#20 0x00000000036b42d2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x36b42d2)
#21 0x0000000000afb4d2 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/soft/compilers/llvm/main-20210903/bin/clang-14+0xafb4d2)
#22 0x0000000000af93cd ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
driver.cpp:0:0
#23 0x0000000000af90bd main
(/soft/compilers/llvm/main-20210903/bin/clang-14+0xaf90bd)
#24 0x00007f75e2c2c34d __libc_start_main (/lib64/libc.so.6+0x2534d)
#25 0x0000000000af623a _start
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S:122:0
clang-14: error: unable to execute command: Segmentation fault
clang-14: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 14.0.0 (https://github.com/llvm/llvm-project.git
0f80961e8c72dd67e1d9a9817b581b9848c9393e)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /soft/compilers/llvm/master-nightly/bin
clang-14: note: diagnostic msg: Error generating preprocessed source(s).

-- 
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/20210903/3bc4d8db/attachment.html>


More information about the llvm-bugs mailing list