<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62307>62307</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[BOLT][X86] After optimizing with llvm-bolt, MySQL encounters a runtime error.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
llongint
</td>
</tr>
</table>
<pre>
### Error information:
```css
./mysqld.opt --defaults-file=/workspace/mysql/my.cnf --initialize
2023-04-23T07:12:28.070977Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2023-04-23T07:12:28.071168Z 0 [ERROR] Can't find error-message file '/home/hezuoqiang/workspace/mysql/mysql-server/build/runtime_output_directory/share/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2023-04-23T07:12:28.072271Z 0 [Warning] One can only use the --user switch if running as root
07:12:28 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68197 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
./mysqld.opt(my_print_stacktrace+0x3c)[0x112e6dc]
./mysqld.opt(handle_fatal_signal+0x593)[0x7cdd93]
/lib64/libpthread.so.0(+0xfd00)[0x2ba600744d00]
[0x38fa5a8]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
```
### Workaround
The problem does not occur in the earlier version. In addition, the problem does not occur after 82095bd5ed504fe26553b337d15131db530e768b is removed from the latest version.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEVl2P4yoS_TX0SykWxnHsPPRDpzPRjnZGc3duru7uvkQYyjHbGDyAk878-hWQdPd8aaSorabgUHXqcIB7r44G8Z7UG1Jv7_gcBuvutbbmqEy466y83BNW5R-8c846UKa3buRBWUOqB0K3hD6QFc0_4X0eKQjbjRf_RcvCTgEWC4k9n3Xwi15pJNWWsN3Zuic_cYG3uelbCNPDYqGMCopr9RUzIKOsWtDlglV72pDqoWSkemBtQRu6bpr_AgVSb_7mzihzJPUW9u8_vvtz__DxDzirMIAaJ62ECrB9t3v468MeTlzPCMqDxMmh4AFlAX9o5B5h9giLBT7nJYdb6ofeukNQI_rAxwk8uhM6sFOkAghrPSJIK-YRTUj8QG8djNYhSAxcaU_YuvhdOWW5aq_lvPv8-dPnWMwjN4Q1AXplJGBsw2JE7_kRIdIJhDWE7QY7RioH_DrbL4qb4y859l_0IqdP2K6blZaE7dxsYnEHO4dpDgepHIpg3YWwnR-4iwjo3OiPhb94wpoCHgcUTz_LR1uRCeBGxuS0uMX9QipHWAPCml4dZ5fn5c3UCX9LD2NN-WO3PxkEwQ1Yoy-pfWGILZw9OvBnFcQAqgc3m7gAuAdnbbhqN_19uwv8tX-EBWT5wtEGiMeEayhLINUmL9gPyoOws5bQIXQoeNz2YmcYVAAO3Xws4H2ICuPaW5is96rTMTMeIMTVnTLcXTKcdWANgu1T5lp1jjuFHlSAM_eglXlCCfzIlfEJVFjn5ikQ9hi17eyETl8g9jKOvYCOyt-YjgJPWaeGJbpSZl2kbvYoobvAyHU_GxGbEpkauJNn7m5teQgBxynESLAgrNYoAng74ltbyCVmbgbUE0jFj8ZeuzI522kcb4g-cxFpAuG4H5JmImQY4j7phPbRDVBf4OxslPVjQnrrRAnsmlBMYXJWoPcwquMQoOdKF2_b_YSXQz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