Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build LLVM 18.1.7 due to failed x86 tests on FC39 on ppc64le #101016

Open
matevy opened this issue Jul 29, 2024 · 6 comments
Open

Unable to build LLVM 18.1.7 due to failed x86 tests on FC39 on ppc64le #101016

matevy opened this issue Jul 29, 2024 · 6 comments
Labels
backend:PowerPC build-problem llvm-tools All llvm tools that do not have corresponding tag platform:linux

Comments

@matevy
Copy link

matevy commented Jul 29, 2024

if I try to build LLVM 18.1.7 or 18.1.7 on FC39 inside docker container (host is Power8 ppc64le Ubuntu 22.04) it fails during testing:

`[663/664] Running the LLVM regression tests
FAIL: LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test (46252 of 53310)
******************** TEST 'LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test' FAILED ********************
Exit Code: 139

Command Output (stderr):

RUN: at line 1: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test

  • /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
    PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
    /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.script: line 8: 2005731 Segmentation fault /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test

--


FAIL: LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test (46475 of 53310)
******************** TEST 'LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test' FAILED ********************
Exit Code: 2

Command Output (stderr):

RUN: at line 1: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test | /root/llvm-project/build/bin/llvm-dwarfdump --verify - | /root/llvm-project/build/bin/FileCheck -check-prefixes=VERIFY /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test

  • /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/llvm-dwarfdump --verify -
  • /root/llvm-project/build/bin/FileCheck -check-prefixes=VERIFY /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
    RUN: at line 2: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test | /root/llvm-project/build/bin/llvm-dwarfdump -a - | /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/llvm-dwarfdump -a -
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
    PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
    #0 0x00000000127f2d80 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/root/llvm-project/build/bin/dsymutil+0x127f2d80)
    Fixing Rust build #1 0x00000000127eff8c SignalHandler(int) Signals.cpp:0:0
    Fix a typo #2 0x00007c73f7d60444 (linux-vdso64.so.1+0x444)
    Fix a compilation error on gcc8 #3 0x0000000012473e0c llvm::dwarf_linker::parallel::CompileUnit::allocateTypeDie(llvm::dwarf_linker::parallel::TypeEntryBody*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm::dwarf::Tag, bool, bool) (/root/llvm-project/build/bin/dsymutil+0x12473e0c)
    Fix a compilation error on gcc8 #4 0x00000000124744b8 llvm::dwarf_linker::parallel::CompileUnit::createTypeDIEandCloneAttributes(llvm::DWARFDebugInfoEntry const*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm::StringMapEntry<std::atomicllvm::dwarf_linker::parallel::TypeEntryBody*>, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x124744b8)
    Seedarg/member/wip #5 0x0000000012474e80 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomicllvm::dwarf_linker::parallel::TypeEntryBody*>, unsigned long, std::optional, std::optional, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474e80)
    Add check for matching HeaderFilter before emitting Diagnostic #6 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomicllvm::dwarf_linker::parallel::TypeEntryBody*>, unsigned long, std::optional, std::optional, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    Random engine swap #7 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomicllvm::dwarf_linker::parallel::TypeEntryBody*>, unsigned long, std::optional, std::optional, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    Update rwlock init #8 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomicllvm::dwarf_linker::parallel::TypeEntryBody*>, unsigned long, std::optional, std::optional, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    Next80 merge test #9 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomicllvm::dwarf_linker::parallel::TypeEntryBody*>, unsigned long, std::optional, std::optional, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    Fix typo: 'soruce' -> 'source' #10 0x0000000012480644 llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(std::optional<std::reference_wrapper<llvm::Triple const>>, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12480644)
    fix for gcc 8 #11 0x000000001246215c llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::linkSingleCompileUnit(llvm::dwarf_linker::parallel::CompileUnit&, llvm::dwarf_linker::parallel::TypeUnit*, llvm::dwarf_linker::parallel::CompileUnit::Stage) (/root/llvm-project/build/bin/dsymutil+0x1246215c)
    Fix "Allman" style example #12 0x0000000012752d8c std::_Function_handler<void (), llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref<void (unsigned long)>)::'lambda0'()>::_M_invoke(std::_Any_data const&) Parallel.cpp:0:0 Defer diag #13 0x0000000012753280 std::_Function_handler<void (), llvm::parallel::TaskGroup::spawn(std::function<void ()>, bool)::'lambda'()>::_M_invoke(std::_Any_data const&) Parallel.cpp:0:0 WIP lifetime categories #14 0x0000000012753e04 std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()>>>::_M_run() Parallel.cpp:0:0 Fix ClangOpenCLBuiltinsImpl target not found #15 0x00007c73f7941330 (/lib64/libstdc++.so.6+0x161330)
    __unique_stable_name implementation. #16 0x00007c73f7471524 start_thread (/lib64/libc.so.6+0xb1524)
    error: -: The file was not recognized as a valid object file
    FileCheck error: '' is empty.
    FileCheck command line: /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test

--



Failed Tests (2):
LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test
LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test

Testing Time: 877.44s

Total Discovered Tests: 58174
Skipped : 64 (0.11%)
Unsupported : 2060 (3.54%)
Passed : 55892 (96.08%)
Expectedly Failed: 156 (0.27%)
Failed : 2 (0.00%)
FAILED: test/CMakeFiles/check-llvm /root/llvm-project/build/test/CMakeFiles/check-llvm
cd /root/llvm-project/build/test && /usr/bin/python3.12 /root/llvm-project/build/./bin/llvm-lit -sv /root/llvm-project/build/test
ninja: build stopped: subcommand failed.`

compiling on host itself on Ubuntu 22.04 does not fail.
Using exactly the same Dockerfile on Ubuntu 22.04 x86_64 host it also builds fine.

Some of previous versions of LLVM (16.x for sure) built find in the same environment.

@matevy
Copy link
Author

matevy commented Jul 29, 2024

Same host, but FC40 and LLVM 18.1.8 fails on even more tests:
Failed Tests (5): LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-fwd-declaration2.test LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-fwd-declaration3.test LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-uniquing.cpp
llvm-18.1.8 build fail FC40.txt

@matevy matevy changed the title Unable to build LLVM 18.1.7 due to failed tests on FC39 on ppc64le Unable to build LLVM 18.1.7 due to failed x86 tests on FC39 on ppc64le Jul 29, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Jul 29, 2024

@llvm/issue-subscribers-backend-powerpc

Author: None (matevy)

if I try to build LLVM 18.1.7 or 18.1.7 on FC39 inside docker container (host is Power8 ppc64le Ubuntu 22.04) it fails during testing:

`[663/664] Running the LLVM regression tests
FAIL: LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test (46252 of 53310)
******************** TEST 'LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test' FAILED ********************
Exit Code: 139

Command Output (stderr):

RUN: at line 1: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test

  • /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
    PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
    /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.script: line 8: 2005731 Segmentation fault /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test

--


FAIL: LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test (46475 of 53310)
******************** TEST 'LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test' FAILED ********************
Exit Code: 2

Command Output (stderr):

RUN: at line 1: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test | /root/llvm-project/build/bin/llvm-dwarfdump --verify - | /root/llvm-project/build/bin/FileCheck -check-prefixes=VERIFY /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test

  • /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/llvm-dwarfdump --verify -
  • /root/llvm-project/build/bin/FileCheck -check-prefixes=VERIFY /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
    RUN: at line 2: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test | /root/llvm-project/build/bin/llvm-dwarfdump -a - | /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
  • /root/llvm-project/build/bin/llvm-dwarfdump -a -
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
    warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
    PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
    #0 0x00000000127f2d80 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/root/llvm-project/build/bin/dsymutil+0x127f2d80)
    #1 0x00000000127eff8c SignalHandler(int) Signals.cpp:0:0
    #2 0x00007c73f7d60444 (linux-vdso64.so.1+0x444)
    #3 0x0000000012473e0c llvm::dwarf_linker::parallel::CompileUnit::allocateTypeDie(llvm::dwarf_linker::parallel::TypeEntryBody*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm::dwarf::Tag, bool, bool) (/root/llvm-project/build/bin/dsymutil+0x12473e0c)
    #4 0x00000000124744b8 llvm::dwarf_linker::parallel::CompileUnit::createTypeDIEandCloneAttributes(llvm::DWARFDebugInfoEntry const*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x124744b8)
    #5 0x0000000012474e80 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474e80)
    #6 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    #7 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    #8 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    #9 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
    #10 0x0000000012480644 llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(std::optional<std::reference_wrapper<llvm::Triple const>>, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12480644)
    #11 0x000000001246215c llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::linkSingleCompileUnit(llvm::dwarf_linker::parallel::CompileUnit&, llvm::dwarf_linker::parallel::TypeUnit*, llvm::dwarf_linker::parallel::CompileUnit::Stage) (/root/llvm-project/build/bin/dsymutil+0x1246215c)
    #12 0x0000000012752d8c std::_Function_handler<void (), llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref<void (unsigned long)>)::'lambda0'()>::_M_invoke(std::_Any_data const&) Parallel.cpp:0:0 #13 0x0000000012753280 std::_Function_handler<void (), llvm::parallel::TaskGroup::spawn(std::function<void ()>, bool)::'lambda'()>::_M_invoke(std::_Any_data const&) Parallel.cpp:0:0 #14 0x0000000012753e04 std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()>>>::_M_run() Parallel.cpp:0:0 #15 0x00007c73f7941330 (/lib64/libstdc++.so.6+0x161330)
    #16 0x00007c73f7471524 start_thread (/lib64/libc.so.6+0xb1524)
    error: -: The file was not recognized as a valid object file
    FileCheck error: '<stdin>' is empty.
    FileCheck command line: /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test

--



Failed Tests (2):
LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test
LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test

Testing Time: 877.44s

Total Discovered Tests: 58174
Skipped : 64 (0.11%)
Unsupported : 2060 (3.54%)
Passed : 55892 (96.08%)
Expectedly Failed: 156 (0.27%)
Failed : 2 (0.00%)
FAILED: test/CMakeFiles/check-llvm /root/llvm-project/build/test/CMakeFiles/check-llvm
cd /root/llvm-project/build/test && /usr/bin/python3.12 /root/llvm-project/build/./bin/llvm-lit -sv /root/llvm-project/build/test
ninja: build stopped: subcommand failed.`

compiling on host itself on Ubuntu 22.04 does not fail.
Using exactly the same Dockerfile on Ubuntu 22.04 x86_64 host it also builds fine.

Some of previous versions of LLVM (16.x for sure) built find in the same environment.

@EugeneZelenko EugeneZelenko added the llvm-tools All llvm tools that do not have corresponding tag label Jul 29, 2024
@chenzheng1030
Copy link
Collaborator

Thanks for reporting this issue. I suspect this is caused by #68721

It would be great if you can share more info about where the crash happens inside function CompileUnit::allocateTypeDie(llvm::dwarf_linker::parallel::TypeEntryBody*. @matevy

Any thoughts for this crash inside docker? @avl-llvm

@matevy
Copy link
Author

matevy commented Jul 31, 2024

can you give me instructions how to collect more info?

@chenzheng1030
Copy link
Collaborator

can you give me instructions how to collect more info?

For example, build a debug version LLVM, when the crash happens, it should tell you the line number in the GDB's trace back table.

@matevy
Copy link
Author

matevy commented Aug 2, 2024

debug versions itself fails even before testing, other erros.

but if I reproduce this specific problem, I get the following backtrace

(gdb) run
Starting program: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test

This GDB supports auto-downloading debuginfo from the following URLs:
https://debuginfod.fedoraproject.org/
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /lib64/libz.so.1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff75bf0c0 (LWP 633158)]
[New Thread 0x7ffff6daf0c0 (LWP 633159)]
[New Thread 0x7ffff659f0c0 (LWP 633160)]
[New Thread 0x7ffff5d8f0c0 (LWP 633161)]
[New Thread 0x7ffff557f0c0 (LWP 633162)]
[New Thread 0x7ffff4d6f0c0 (LWP 633163)]
[New Thread 0x7fffefdef0c0 (LWP 633164)]
[New Thread 0x7fffef5df0c0 (LWP 633165)]
[New Thread 0x7fffeedcf0c0 (LWP 633166)]
[New Thread 0x7fffee5bf0c0 (LWP 633167)]
[New Thread 0x7fffeddaf0c0 (LWP 633168)]
[New Thread 0x7fffed59f0c0 (LWP 633169)]
[New Thread 0x7fffecd8f0c0 (LWP 633170)]
[New Thread 0x7fffec57f0c0 (LWP 633171)]
[New Thread 0x7fffebd6f0c0 (LWP 633172)]
[New Thread 0x7fffeb55f0c0 (LWP 633173)]
[New Thread 0x7fffead4f0c0 (LWP 633174)]
[New Thread 0x7fffea53f0c0 (LWP 633175)]
[New Thread 0x7fffe9d2f0c0 (LWP 633176)]
[New Thread 0x7fffe951f0c0 (LWP 633177)]
[New Thread 0x7fffe8d0f0c0 (LWP 633178)]
[New Thread 0x7fffe84ff0c0 (LWP 633179)]
[New Thread 0x7fffe7cef0c0 (LWP 633180)]
[New Thread 0x7fffe74df0c0 (LWP 633181)]
[New Thread 0x7fffe6ccf0c0 (LWP 633182)]
[New Thread 0x7fffe64bf0c0 (LWP 633183)]
[New Thread 0x7fffe5caf0c0 (LWP 633184)]
[New Thread 0x7fffe549f0c0 (LWP 633185)]
[New Thread 0x7fffe4c8f0c0 (LWP 633186)]
[New Thread 0x7fffe447f0c0 (LWP 633187)]
[New Thread 0x7fffe3c6f0c0 (LWP 633188)]
[New Thread 0x7fffe345f0c0 (LWP 633189)]
[New Thread 0x7fffe2c4f0c0 (LWP 633190)]
[New Thread 0x7fffe243f0c0 (LWP 633191)]
[New Thread 0x7fffe1c2f0c0 (LWP 633192)]
[New Thread 0x7fffe141f0c0 (LWP 633193)]
[New Thread 0x7fffe0c0f0c0 (LWP 633194)]
[New Thread 0x7fffe03ff0c0 (LWP 633195)]
[New Thread 0x7fffdfbef0c0 (LWP 633196)]
[New Thread 0x7fffdf3df0c0 (LWP 633197)]
[New Thread 0x7fffdebcf0c0 (LWP 633198)]
[New Thread 0x7fffde3bf0c0 (LWP 633199)]
[New Thread 0x7fffddbaf0c0 (LWP 633200)]
[New Thread 0x7fffdd39f0c0 (LWP 633201)]
[New Thread 0x7fffdcb8f0c0 (LWP 633202)]
[New Thread 0x7fffdc37f0c0 (LWP 633203)]
[New Thread 0x7fffdbb6f0c0 (LWP 633204)]
[New Thread 0x7fffdb35f0c0 (LWP 633205)]
[New Thread 0x7fffdab4f0c0 (LWP 633206)]
[New Thread 0x7fffda33f0c0 (LWP 633207)]
[New Thread 0x7fffd9b2f0c0 (LWP 633208)]
[New Thread 0x7fffd931f0c0 (LWP 633209)]
[New Thread 0x7fffd8b0f0c0 (LWP 633210)]
[New Thread 0x7fffd82ff0c0 (LWP 633211)]
[New Thread 0x7fffd7aef0c0 (LWP 633212)]
[New Thread 0x7fffd72df0c0 (LWP 633213)]
[New Thread 0x7fffd6acf0c0 (LWP 633214)]
[New Thread 0x7fffd62bf0c0 (LWP 633215)]
[New Thread 0x7fffd5aaf0c0 (LWP 633216)]
[New Thread 0x7fffd529f0c0 (LWP 633217)]
[New Thread 0x7fffd4a8f0c0 (LWP 633218)]
[New Thread 0x7fffd427f0c0 (LWP 633219)]
[New Thread 0x7fffd3a6f0c0 (LWP 633220)]
[New Thread 0x7fffd325f0c0 (LWP 633221)]
[New Thread 0x7fffd2a4f0c0 (LWP 633222)]
[New Thread 0x7fffd223f0c0 (LWP 633223)]
[New Thread 0x7fffd1a2f0c0 (LWP 633224)]
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-31 11:01:17.[New Thread 0x7fffd121f0c0 (LWP 633225)]
636477297) and debug map (2021-12-07 19:18:39.000000000)
[New Thread 0x7fffd0a0f0c0 (LWP 633226)]
[New Thread 0x7fffd01ff0c0 (LWP 633227)]
[New Thread 0x7fffcf9ef0c0 (LWP 633228)]
[New Thread 0x7fffcf1df0c0 (LWP 633229)]
[New Thread 0x7fffce9cf0c0 (LWP 633230)]
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-31 11:01:17.636477297) and debug map (2021-12-07 19:18:43.000000000)
[New Thread 0x7fffce1bf0c0 (LWP 633231)]
[New Thread 0x7fffcd9af0c0 (LWP 633232)]
[New Thread 0x7fffcd19f0c0 (LWP 633233)]
[New Thread 0x7fffcc98f0c0 (LWP 633234)]
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-31 11:01:17.636477297) and debug map (2021-12-07 19:18:47.000000000)
[New Thread 0x7fffcc17f0c0 (LWP 633235)]
[New Thread 0x7fffcb96f0c0 (LWP 633236)]
[New Thread 0x7fffcb15f0c0 (LWP 633237)]
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-31 11:01:17.636477297) and debug map (2021-12-07 19:18:54.000000000)
[New Thread 0x7fffca94f0c0 (LWP 633238)]
[New Thread 0x7fffca13f0c0 (LWP 633239)]
[New Thread 0x7fffc992f0c0 (LWP 633240)]
[New Thread 0x7fffc911f0c0 (LWP 633241)]
dsymutil: /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1480: llvm::dwarf_linker::parallel::TypeEntry* llvm::dwarf_linker::parallel::CompileUnit::createTypeDIEandCloneAttributes(const llvm::DWARFDebugInfoEntry*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm::dwarf_linker::parallel::TypeEntry*, llvm::dwarf_linker::parallel::TypeUnit*): Assertion `EntryBody' failed.

Thread 4 "dsymutil" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff659f0c0 (LWP 633160)]
0x00007ffff767418c in __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:43
Downloading source file /usr/src/debug/glibc-2.38-18.fc39.ppc64le/nptl/pthread_kill.c
43 int ret = INTERNAL_SYSCALL_CALL (tgkill, __getpid (), tid, signo);
(gdb) backtrace
#0 0x00007ffff767418c in __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:43
#1 0x00007ffff767422c in __pthread_kill_internal (signo=6, threadid=) at pthread_kill.c:78
#2 0x00007ffff761070c in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007ffff75f073c in __GI_abort () at abort.c:79
#4 0x00007ffff7604798 in __assert_fail_base (fmt=0x7ffff77b7500 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x190f27d8 "EntryBody",
file=file@entry=0x190f1d48 "/root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp", line=line@entry=1480,
function=function@entry=0x190f2688 "llvm::dwarf_linker::parallel::TypeEntry* llvm::dwarf_linker::parallel::CompileUnit::createTypeDIEandCloneAttributes(const llvm::DWARFDebugInfoEntry*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm:"...) at assert.c:92
#5 0x00007ffff7604844 in __assert_fail (assertion=0x190f27d8 "EntryBody",
file=0x190f1d48 "/root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp", line=1480,
function=0x190f2688 "llvm::dwarf_linker::parallel::TypeEntry* llvm::dwarf_linker::parallel::CompileUnit::createTypeDIEandCloneAttributes(const llvm::DWARFDebugInfoEntry*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm:"...) at assert.c:101
#6 0x0000000013dde080 in llvm::dwarf_linker::parallel::CompileUnit::createTypeDIEandCloneAttributes (this=0x7fffbc000c90,
InputDieEntry=0x1ba5e188, TypeDIEGenerator=..., ClonedParentTypeDIE=0x7fffa802faf0, ArtificialTypeUnit=0x7fffc4000b70)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1480
#7 0x0000000013ddd3a0 in llvm::dwarf_linker::parallel::CompileUnit::cloneDIE (this=0x7fffbc000c90, InputDieEntry=0x1ba5e188,
ClonedParentTypeDIE=0x7fffa802faf0, OutOffset=49, FuncAddressAdjustment=std::optional [no contained value],
VarAddressAdjustment=std::optional [no contained value], Allocator=..., ArtificialTypeUnit=0x7fffc4000b70)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1317
#8 0x0000000013ddd4b4 in llvm::dwarf_linker::parallel::CompileUnit::cloneDIE (this=0x7fffbc000c90, InputDieEntry=0x1ba5e140,
ClonedParentTypeDIE=0x7fffa800bc38, OutOffset=49, FuncAddressAdjustment=std::optional [no contained value],
VarAddressAdjustment=std::optional [no contained value], Allocator=..., ArtificialTypeUnit=0x7fffc4000b70)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1338
#9 0x0000000013ddd4b4 in llvm::dwarf_linker::parallel::CompileUnit::cloneDIE (this=0x7fffbc000c90, InputDieEntry=0x1ba5d0c0,
ClonedParentTypeDIE=0x7fffa800bc18, OutOffset=49, FuncAddressAdjustment=std::optional [no contained value],
VarAddressAdjustment=std::optional [no contained value], Allocator=..., ArtificialTypeUnit=0x7fffc4000b70)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1338
#10 0x0000000013ddd4b4 in llvm::dwarf_linker::parallel::CompileUnit::cloneDIE (this=0x7fffbc000c90, InputDieEntry=0x1ba5d0a8,
ClonedParentTypeDIE=0x7fffa800bc00, OutOffset=49, FuncAddressAdjustment=std::optional [no contained value],
VarAddressAdjustment=std::optional [no contained value], Allocator=..., ArtificialTypeUnit=0x7fffc4000b70)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1338
#11 0x0000000013ddd4b4 in llvm::dwarf_linker::parallel::CompileUnit::cloneDIE (this=0x7fffbc000c90, InputDieEntry=0x1ba5d090,
ClonedParentTypeDIE=0x7fffc4282ed0, OutOffset=49, FuncAddressAdjustment=std::optional [no contained value],
VarAddressAdjustment=std::optional [no contained value], Allocator=..., ArtificialTypeUnit=0x7fffc4000b70)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1338
#12 0x0000000013ddd4b4 in llvm::dwarf_linker::parallel::CompileUnit::cloneDIE (this=0x7fffbc000c90, InputDieEntry=0x1ba5d060,
ClonedParentTypeDIE=0x7fffc4282ed0, OutOffset=49, FuncAddressAdjustment=std::optional [no contained value],
VarAddressAdjustment=std::optional [no contained value], Allocator=..., ArtificialTypeUnit=0x7fffc4000b70)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1338
#13 0x0000000013ddccf0 in llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit (this=0x7fffbc000c90, TargetTriple=std::optional = {...},
ArtificialTypeUnit=0x7fffc4000b70) at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp:1246
--Type for more, q to quit, c to continue without paging--
#14 0x0000000013d9322c in operator() (__closure=0x7ffff659e048) at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp:675
#15 0x0000000013d9adc0 in llvm::function_ref<llvm::Expected()>::callback_fn<llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::linkSingleCompileUnit(llvm::dwarf_linker::parallel::CompileUnit&, llvm::dwarf_linker::parallel::TypeUnit*, llvm::dwarf_linker::parallel::CompileUnit::Stage)::<lambda()> >(intptr_t) (callable=140737326473288) at /root/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46
#16 0x0000000013dad2a4 in llvm::function_ref<llvm::Expected ()>::operator()() const (this=0x7ffff659dff8)
at /root/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:68
#17 0x0000000013da89e0 in llvm::dwarf_linker::finiteLoop(llvm::function_ref<llvm::Expected ()>, unsigned long) (Iteration=...,
MaxCounter=100000) at /root/llvm-project/llvm/include/llvm/DWARFLinker/Utils.h:30
#18 0x0000000013d9347c in llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::linkSingleCompileUnit (this=0x1b9fa480, CU=...,
ArtificialTypeUnit=0x7fffc4000b70, DoUntilStage=llvm::dwarf_linker::parallel::CompileUnit::Stage::Cleaned)
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp:704
#19 0x0000000013d918ac in operator() (__closure=0x7fffca94dd30, CU=std::unique_ptrllvm::dwarf_linker::parallel::CompileUnit = {...})
at /root/llvm-project/llvm/lib/DWARFLinker/Parallel/DWARFLinkerImpl.cpp:500
#20 0x0000000013d9a008 in operator() (__closure=0x7fffca94dd00, I=0) at /root/llvm-project/llvm/include/llvm/Support/Parallel.h:234
#21 0x0000000013d9e350 in llvm::function_ref<void(long unsigned int)>::callback_fn<llvm::parallelForEach<std::unique_ptr<dwarf_linker::parallel::CompileUnit>, dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::link(llvm::dwarf_linker::parallel::TypeUnit)::<lambda(std::unique_ptr<dwarf_linker::parallel::CompileUnit>&)> >(std::unique_ptr<dwarf_linker::parallel::CompileUnit>, std::unique_ptr<dwarf_linker::parallel::CompileUnit>, dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::link(llvm::dwarf_linker::parallel::TypeUnit*)::<lambda(std::unique_ptr<dwarf_linker::parallel::CompileUnit>&)>)::<lambda(size_t)> >(intptr_t, unsigned long) (callable=140736592141568, params#0=0)
at /root/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:45
#22 0x000000001457ccc8 in llvm::function_ref<void (unsigned long)>::operator()(unsigned long) const (this=0x7fffca94dcc0, params#0=0)
at /root/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:68
#23 0x0000000014577de0 in operator() (__closure=0x7fffbc0014a0) at /root/llvm-project/llvm/lib/Support/Parallel.cpp:248
#24 0x000000001457a2fc in std::__invoke_impl<void, llvm::parallelFor(size_t, size_t, function_ref<void(long unsigned int)>)::<lambda()>&>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/13/bits/invoke.h:61
#25 0x0000000014579abc in std::__invoke_r<void, llvm::parallelFor(size_t, size_t, function_ref<void(long unsigned int)>)::<lambda()>&>(struct {...} &) (__fn=...) at /usr/include/c++/13/bits/invoke.h:111
#26 0x0000000014579160 in std::_Function_handler<void(), llvm::parallelFor(size_t, size_t, function_ref<void(long unsigned int)>)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/13/bits/std_function.h:290
#27 0x00000000100363a0 in std::function<void ()>::operator()() const (this=0x7fffbc0014c0) at /usr/include/c++/13/bits/std_function.h:591
#28 0x0000000014577b40 in operator() (__closure=0x7fffbc0014c0) at /root/llvm-project/llvm/lib/Support/Parallel.cpp:214
#29 0x0000000014579f74 in std::__invoke_impl<void, llvm::parallel::TaskGroup::spawn(std::function<void()>, bool)::<lambda()>&>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/13/bits/invoke.h:61
#30 0x000000001457956c in std::__invoke_r<void, llvm::parallel::TaskGroup::spawn(std::function<void()>, bool)::<lambda()>&>(struct {...} &) (
__fn=...) at /usr/include/c++/13/bits/invoke.h:111
#31 0x0000000014578dd0 in std::_Function_handler<void(), llvm::parallel::TaskGroup::spawn(std::function<void()>, bool)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/13/bits/std_function.h:290
#32 0x00000000100363a0 in std::function<void ()>::operator()() const (this=0x7ffff659e490) at /usr/include/c++/13/bits/std_function.h:591
#33 0x0000000014577820 in llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::work (this=0x1b75d110, S=..., ThreadID=2)
at /root/llvm-project/llvm/lib/Support/Parallel.cpp:141
#34 0x0000000014576c60 in operator() (__closure=0x7ffff0000ce8) at /root/llvm-project/llvm/lib/Support/Parallel.cpp:64
#35 0x000000001457b26c in std::__invoke_impl<void, llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::Threa--Type for more, q to quit, c to continue without paging--
dPoolStrategy)::<lambda()>::<lambda()> >(std::__invoke_other, struct {...} &&) (__f=...) at /usr/include/c++/13/bits/invoke.h:61
#36 0x000000001457b0c8 in std::__invoke<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::<lambda()>::<lambda()> >(struct {...} &&) (__fn=...) at /usr/include/c++/13/bits/invoke.h:96
#37 0x000000001457af6c in std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::<lambda()>::<lambda()> > >::_M_invoke<0>(std::_Index_tuple<0>) (this=0x7ffff0000ce8)
at /usr/include/c++/13/bits/std_thread.h:292
#38 0x000000001457aeb0 in std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::<lambda()>::<lambda()> > >::operator()(void) (this=0x7ffff0000ce8) at /usr/include/c++/13/bits/std_thread.h:299
#39 0x000000001457ae0c in std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::<lambda()>::<lambda()> > > >::_M_run(void) (this=0x7ffff0000ce0)
at /usr/include/c++/13/bits/std_thread.h:244
#40 0x00007ffff7b41330 in std::execute_native_thread_routine (__p=) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104
#41 0x00007ffff7671524 in start_thread (arg=0x7ffff659f0c0) at pthread_create.c:444
#42 0x00007ffff7724a18 in clone3 () at ../sysdeps/unix/sysv/linux/powerpc/powerpc64/clone3.S:114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:PowerPC build-problem llvm-tools All llvm tools that do not have corresponding tag platform:linux
Projects
None yet
Development

No branches or pull requests

4 participants