<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/155209>155209</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
When using llvm-bolt, garbled characters appear when executing the --update-debug-sections command.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
BOLT
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jiovf
</td>
</tr>
</table>
<pre>
When using llvm-bolt to perform bolt reordering, adding the --update-debug-sections option causes the log output to become disordered.
Without --update-debug-sections option, Can output results normally:
- Command: llvm-bolt "xx/libxx.so" -o "bolt_output/libxx.bolt" \
-data="fdata_output/libpxx.yaml" \
--reorder-blocks=ext-tsp \
--reorder-functions=cdsort \
--split-functions \
--split-strategy=profile2 \
--split-eh \
--dyno-stats \
--no-huge-pages \
--align-text=0x4000 \
--infer-stale-profile
BOLT-INFO: setting __hot_start to 0x64000
BOLT-INFO: setting __hot_end to 0x64bac
- Result: SUCCESS (took 0 seconds)
- Output size: 596K
With --update-debug-sections option, the program will enter garbled code, suspected of entering an infinite loop.
<img width="1228" height="1138" alt="Image" src="https://github.com/user-attachments/assets/388d8c31-0401-423f-bc50-58db8ba55690" />
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMVMGO2zYQ_Rr6QtCgSMuxDjp47TUQtOgC3RY5LihyJDGhSIEc7cr9-oKSk9TFIsmJ9Js3zxzNm1Ep2c4D1KR8IOV5oybsQ6w_2_DabppgrvWnHjydkvUdde51YE1wSDHQEWIb4kCX3xFCNBCt74g4UWVMpmMPlLFpNAqBGWimjiXQaINPNIz5pFpNCdLCdKGjYcJxWtQb0GEAamxahMFsCT8SfvxksQ8T0p8I51eclP8qGCFNDhP1IQ7KuSt5vJCHE6mOqyhl9BSGQXlD5PE_VRIh5pmIi7PNPG9TIEJQFjKcwy-r-Ld4xjKDlKesSSllRqEi8kyEaPP1LmOc5-1VDe5_Kez2KVnjg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