Bug #91183 CLANG/UBSAN Thread stack overrun
Submitted: 8 Jun 2018 7:28 Modified: 11 Jun 2018 14:07
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[8 Jun 2018 7:28] Tor Didriksen
Description:
Several mtr tests fail with  "Thread stack overrun"
It seems clang/UBSAN uses a lot of extra stack, compared to other compilers.

./mtr --mem   --sanitize x.notices_enable

 Mysqlx.Error {
   severity: ERROR
-  code: 1644
-  msg: "Oops in proc_1"
-  sql_state: "45000"
+  code: 1436
+  msg: "Thread stack overrun:  348015 bytes used of a 655360 byte stack, and 320000 bytes needed.  Use \'mysqld --thread_stack=#\' to specify a bigger stack."
+  sql_state: "HY000"
 }

How to repeat:
Build with clang/ubsan

Suggested fix:
Enable -O1 for WITH_UBSAN, as we do for other sanitizers.
[11 Jun 2018 14:07] Paul DuBois
Posted by developer:
 
Fixed in 8.0.13.

Work was done for test suite. No changelog entry needed.