<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61075>61075</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AArch64] llvm-bolt crash on aarch64 platform
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rickyzhang012500
</td>
</tr>
</table>
<pre>
Compiler Flags:
bazel build -c opt --config=j5 //onboard/planner/speed:speed_finder_bm --copt=-O2 --copt=-flto --copt=-fwhole-program-vtables --copt=-gline-tables-only --copt=-funique-internal-linkage-names --copt=-fdebug-info-for-profiling --linkopt="-Wl,--no-rosegment" --copt=-fprofile-sample-use=/qcraft/speed_finder_bm.prof --copt=-emit-llvm --linkopt="-Wl,--emit-relocs,-znow"
tztek:/userdata# llvm-bolt ./speed_finder_bm -instrument -o speed_finder_bm_ins
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: <unknown>
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x1600000, offset 0x1600000
BOLT-INFO: enabling relocation mode
BOLT-INFO: forcing -jump-tables=move for instrumentation
BOLT-INFO: disabling -align-macro-fusion on non-x86 platform
BOLT-INFO: number of removed linker-inserted veneers: 0
BOLT-INFO: 0 out of 42694 functions in the binary (0.0%) have non-empty execution profile
BOLT-INFO: merged 1 duplicate CFG edge
BOLT-INFO: UCE removed 0 blocks and 0 bytes of code.
BOLT-INFO: Starting stub-insertion pass
BOLT-INFO: Inserted 1 stubs in the hot area and 0 stubs in the cold area. Shared 0 times, iterated 2 times.
#0 0x0000aaaace5d1804 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/llvm-project-15.0.7.src/llvm/lib/Support/Unix/Signals.inc:569:0
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: ./llvm-bolt ./speed_finder_bm -instrument -o speed_finder_bm_ins
Segmentation fault (core dumped)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVs1u27oSfhp6M6BBU5ESLbxwk_iiQHFbIC3uMhiRI5kNRaoklb-nvyDlJO6pz-YcLyyRnP_55qMwRjM4oi2rP7H6ZoVzOviwDUY9vLwe0A1iI2shVp3XL9trP07GUoC9xSGyasfEDRO7Dl_JQjcbq4Er8FMCzpV3vRlYdfOzBib3TO696zwGzeR-sugcBSb3cSLSrNqV531vnKZw341Ff0qsuuFf5cmit8mfLp8O3hKfgh8CjvwxYWcpnggM1jjiyzb3zr6cKs_O_JqJG5coOLTcGveAA3GH429Gek3dPHDjes97H7K73ljjBuBFZxFjUvL_WSavOXeeBx9pGMklJn-Lf9ElHnGcLPE5UlHd_1IB-_RWkI9CrLPCiQEaTeLWPo5_57sIBLJexbx-df6JSbn0aflPr4kecu_kfo4UNCZksoJslHfeJlj_GQZw42IKc84IuIe_HN8bFxfjn75--c4__3f_lVU7iAcMpMF3P0kl8AEmH00y3vGsOJHT2Rw9k5pLi0BTIpVIn7H1HcNACTCog8lCc6C8jXmjuTijkBfwSCEa7_KaVdeze3D-ybHq9ox8b0JMgNZ6Bah1oBjBRBDP4oywCoQpI8DRExzhBwdCTQGWVDC9WxHPm0bkH5PX4Ps-UjrZ-9M4OewKvEobMRcMRq_pXNA-qALEn_M4HXHOqpvRP1I-g4-uFTNnLGgTj944WjM4PqIKnvdzrht4B847_nzVwGQx9T6MZ2y4eewogO8hUHatIUOTQgYNhUQaHskRhcwYcC5jAX5OWf9CNu0F9LNTOdwIxkE6EHTGYXgBJq_EWjBZM9nCAR-pBEfjlF6OKMoxH0fsjJuRwkAaNqDnyRqFieB6_x8gPZyT_nF9-56PgM569RABXVm8JIo5XuU1rc_o3iUMBR8xzd2xDCU2jOcG5fNbnTZF4T3vg8-IJzy6_e1MeavL4RruljkTkMxIeezBJAqYDcpl7xgjk5XIiBZCICIqq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