Description
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: 87a4215
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0xc20000, offset 0xc20000
BOLT-INFO: enabling relocation mode
BOLT-INFO: pre-processing profile using branch profile reader
llvm-bolt: /home/llvm/llvm-bolt/llvm-project/bolt/lib/Core/BinaryFunction.cpp:3220: void llvm::bolt::BinaryFunction::setIgnored(): Assertion `CurrentState == State::Empty && "cannot ignore non-empty functions in current mode"' failed.
#0 0x00000064f4e30d10 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (.localalias) (/usr/bin/llvm-bolt+0xd00d10)
#1 0x00000064f4e2eb20 llvm::sys::RunSignalHandlers() (.localalias) (/usr/bin/llvm-bolt+0xcfeb20)
#2 0x00000064f4e2eca0 SignalHandler(int, siginfo_t*, void*) (/usr/bin/llvm-bolt+0xcfeca0)
#3 0x00000072b41cf848 (linux-vdso.so.1+0x848)
#4 0x00000072b3d48e6c raise ./signal/../sysdeps/unix/sysv/linux/raise.c:51:1
#5 0x00000072b3d35a60 abort ./stdlib/abort.c:81:7
#6 0x00000072b3d42438 __assert_fail_base ./assert/assert.c:89:7
#7 0x00000072b3d4249c (/lib/aarch64-linux-gnu/libc.so.6+0x2d49c)
#8 0x00000064f55f6ad0 llvm::bolt::BinaryFunction::postProcessEntryPoints() (/usr/bin/llvm-bolt+0x14c6ad0)
#9 0x00000064f54f11e8 llvm::bolt::MarkRAStates::runOnFunction(llvm::bolt::BinaryFunction&) (.localalias) (/usr/bin/llvm-bolt+0x13c11e8)
#10 0x00000064f565f684 std::_Function_handler<void (), std::_Bind<llvm::bolt::ParallelUtilities::runOnEachFunction(llvm::bolt::BinaryContext&, llvm::bolt::ParallelUtilities::SchedulingPolicy, std::function<void (llvm::bolt::BinaryFunction&)>, std::function<bool (llvm::bolt::BinaryFunction const&)>, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, unsigned int)::'lambda'(std::_Rb_tree_iterator<std::pair<unsigned long const, llvm::bolt::BinaryFunction> >, std::_Rb_tree_iterator<std::pair<unsigned long const, llvm::bolt::BinaryFunction> >) (std::_Rb_tree_iterator<std::pair<unsigned long const, llvm::bolt::BinaryFunction> >, std::_Rb_tree_iterator<std::pair<unsigned long const, llvm::bolt::BinaryFunction> >)> >::_M_invoke(std::_Any_data const&) (/usr/bin/llvm-bolt+0x152f684)
#11 0x00000064f4f0efe8 std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tuple<std::function<void ()> > >, void> >::_M_invoke(std::_Any_data const&) (/usr/bin/llvm-bolt+0xddefe8)
#12 0x00000064f4f0f8dc std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>, bool) (/usr/bin/llvm-bolt+0xddf8dc)
#13 0x00000072b417e3ec __pthread_once_slow ./nptl/pthread_once.c:118:7
#14 0x00000064f4f0f780 std::__future_base::_Deferred_state<std::thread::_Invoker<std::tuple<std::function<void ()> > >, void>::_M_complete_async() (/usr/bin/llvm-bolt+0xddf780)
#15 0x00000064f4f13b70 std::_Function_handler<void (), std::shared_future llvm::ThreadPoolInterface::asyncImpl(std::function<void ()>, llvm::ThreadPoolTaskGroup*)::'lambda'()>::_M_invoke(std::_Any_data const&) (/usr/bin/llvm-bolt+0xde3b70)
#16 0x00000064f64263d8 llvm::StdThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (.localalias) (/usr/bin/llvm-bolt+0x22f63d8)
#17 0x00000064f6426fa4 void* llvm::thread::ThreadProxy<std::tuplellvm::StdThreadPool::grow(int)::'lambda'() >(void*) (/usr/bin/llvm-bolt+0x22f6fa4)
#18 0x00000072b4175648 start_thread ./nptl/pthread_create.c:477:8
#19 0x00000072b3de6c9c ./misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:81:0
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
./bolt_perf2bolt.sh: line 114: 2370 Aborted llvm-bolt "$sym_path" -o "$bolt_output" -data="$input_fdata" --reorder-blocks=ext-tsp --reorder-functions=cdsort --split-functions --split-strategy=profile2 --split-eh --dyno-stats --no-huge-pages --align-text=0x4000 --use-old-text
- Result: FAILED (llvm-bolt returned error)