[llvm-bugs] [Bug 35089] New: clang abort/assertion in SelectionDag.cpp:6952 while compiling chrome

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 25 18:18:58 PDT 2017


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

            Bug ID: 35089
           Summary: clang abort/assertion in SelectionDag.cpp:6952 while
                    compiling chrome
           Product: clang
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llozano at chromium.org
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

attached preprocessed file and run script.

stack trace:

mismatched subprogram between llvm.dbg.value variable and !dbg attachment
  call void @llvm.dbg.value(metadata %"class.base::ThreadLocalPointer"* %15,
metadata !29310, metadata !DIExpression()) #14, !dbg !39674
label %if.then
void (%class.scoped_refptr.78*, %"class.gpu::gles2::TextureManager"*, i32,
i32*)* @_ZN3gpu5gles214TextureManager29CreateDefaultAndBlackTexturesEjPj
!29310 = !DILocalVariable(name: "this", arg: 1, scope: !29311, type: !29403,
flags: DIFlagArtificial | DIFlagObjectPointer)
!29311 = distinct !DISubprogram(name: "Get", linkageName:
"_ZN4base18ThreadLocalPointerIN2gl9CurrentGLEE3GetEv", scope: !29313, file:
!29312, line: 64, type: !29386, isLocal: false, isDefinition: true, scopeLine:
64, flags: DIFlagPrototyped, isOptimized: true, unit: !23942, declaration:
!29385, variables: !29402)
!39674 = !DILocation(line: 0, scope: !39675)
!13 = distinct !DISubprogram(name: "CreateDefaultAndBlackTextures",
linkageName:
"_ZN3gpu5gles214TextureManager29CreateDefaultAndBlackTexturesEjPj", scope: !14,
file: !5, line: 2054, type: !23901, isLocal: false, isDefinition: true,
scopeLine: 2056, flags: DIFlagPrototyped, isOptimized: true, unit: !23942,
declaration: !23900, variables: !28538)
mismatched subprogram between llvm.dbg.value variable and !dbg attachment
  call void @llvm.dbg.value(metadata %"class.base::ThreadLocalPointer"* %19,
metadata !29310, metadata !DIExpression()) #14, !dbg !39699
label %if.then
void (%class.scoped_refptr.78*, %"class.gpu::gles2::TextureManager"*, i32,
i32*)* @_ZN3gpu5gles214TextureManager29CreateDefaultAndBlackTexturesEjPj
!29310 = !DILocalVariable(name: "this", arg: 1, scope: !29311, type: !29403,
flags: DIFlagArtificial | DIFlagObjectPointer)
!29311 = distinct !DISubprogram(name: "Get", linkageName:
"_ZN4base18ThreadLocalPointerIN2gl9CurrentGLEE3GetEv", scope: !29313, file:
!29312, line: 64, type: !29386, isLocal: false, isDefinition: true, scopeLine:
64, flags: DIFlagPrototyped, isOptimized: true, unit: !23942, declaration:
!29385, variables: !29402)
!39699 = !DILocation(line: 0, scope: !39700)
!13 = distinct !DISubprogram(name: "CreateDefaultAndBlackTextures",
linkageName:
"_ZN3gpu5gles214TextureManager29CreateDefaultAndBlackTexturesEjPj", scope: !14,
file: !5, line: 2054, type: !23901, isLocal: false, isDefinition: true,
scopeLine: 2056, flags: DIFlagPrototyped, isOptimized: true, unit: !23942,
declaration: !23900, variables: !28538)
clang++:
/var/tmp/portage/sys-devel/llvm-5.0_pre305632_p20170806-r11/work/llvm-5.0_pre305632_p20170806/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:6952:
llvm::SDDbgValue *llvm::SelectionDAG::getDbgValue(llvm::DIVariable *,
llvm::DIExpression *, llvm::SDNode *, unsigned int, bool, const llvm::DebugLoc
&, unsigned int): Assertion
`cast<DILocalVariable>(Var)->isValidLocationForIntrinsic(DL) && "Expected
inlined-at fields to agree"' failed.
#0 0x00007f1188b4ddcf llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0x97bdcf)
#1 0x00007f1188b4e136 (/usr/bin/../lib64/libLLVM-6.0svn.so+0x97c136)
#2 0x00007f1187b4fd70 (/lib64/libc.so.6+0x33d70)
#3 0x00007f1187b4fcf2 gsignal (/lib64/libc.so.6+0x33cf2)
#4 0x00007f1187b51a2a abort (/lib64/libc.so.6+0x35a2a)
#5 0x00007f1187b48cf7 (/lib64/libc.so.6+0x2ccf7)
#6 0x00007f1187b48da2 (/lib64/libc.so.6+0x2cda2)
#7 0x00007f11891def5a llvm::SelectionDAG::getDbgValue(llvm::DIVariable*,
llvm::DIExpression*, llvm::SDNode*, unsigned int, bool, llvm::DebugLoc const&,
unsigned int) (/usr/bin/../lib64/libLLVM-6.0svn.so+0x100cf5a)
#8 0x00007f11891912b2
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) (/usr/bin/../lib64/libLLVM-6.0svn.so+0xfbf2b2)
#9 0x00007f1189169cc7 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst
const&) (/usr/bin/../lib64/libLLVM-6.0svn.so+0xf97cc7)
#10 0x00007f118915e996 llvm::SelectionDAGBuilder::visit(llvm::Instruction
const&) (/usr/bin/../lib64/libLLVM-6.0svn.so+0xf8c996)
#11 0x00007f11891f5163
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction,
true, false, void>, false, true>,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, true>, bool&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0x1023163)
#12 0x00007f11891f372b
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0x102172b)
#13 0x00007f11891efaa1
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0x101daa1)
#14 0x00007f118a7e4751 (/usr/bin/../lib64/libLLVM-6.0svn.so+0x2612751)
#15 0x00007f1188e36fd4
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0xc64fd4)
#16 0x00007f1188c71c9f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0xa9fc9f)
#17 0x00007f1188c71f23 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0xa9ff23)
#18 0x00007f1188c72411 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/bin/../lib64/libLLVM-6.0svn.so+0xaa0411)
#19 0x0000000000637a24 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) (/usr/bin/clang+++0x637a24)
#20 0x0000000000ad4eea (/usr/bin/clang+++0xad4eea)
#21 0x0000000000d22639 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/clang+++0xd22639)
#22 0x0000000000a3a5f8 clang::FrontendAction::Execute()
(/usr/bin/clang+++0xa3a5f8)
#23 0x00000000009f14d1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/clang+++0x9f14d1)
#24 0x0000000000aceaec
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/clang+++0xaceaec)
#25 0x00000000005eab00 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang+++0x5eab00)
#26 0x00000000005e7a85 main (/usr/bin/clang+++0x5e7a85)
#27 0x00007f1187b3c730 __libc_start_main (/lib64/libc.so.6+0x20730)
#28 0x00000000005e4f69 _start (/usr/bin/clang+++0x5e4f69)

1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'../../../../../chromeos-cache/distfiles/target/chrome-src-internal/src/gpu/command_buffer/service/texture_manager.cc'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN3gpu5gles214TextureManager29CreateDefaultAndBlackTexturesEjPj'
clang++: ^[[0;1;31merror: ^[[0munable to execute command: Aborted (core
dumped)^[[0m
clang++: ^[[0;1;31merror: ^[[0mclang frontend command failed due to signal (use
-v to see invocation)^[[0m
Chromium OS 5.0_pre305632_p20170806-r11 clang version 6.0.0
(/var/cache/chromeos-cache/distfiles/host/egit-src/clang.git
53df1a5045c5c9471b0b4b00f8d64433d862699d)
(/var/cache/chromeos-cache/distfiles/host/egit-src/llvm.git
f56176dd98a9f4f7a3c59e1309bf8201d4529f76) (based on LLVM 6.0.0svn)
Target: x86_64-cros-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang++: ^[[0;1;30mnote: ^[[0mdiagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.^[[0m
clang++: ^[[0;1;30mnote: ^[[0mdiagnostic msg:

-- 
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/20171026/8b1029a8/attachment-0001.html>


More information about the llvm-bugs mailing list