Bug #90145 Contribution by Facebook: Avoid a crash in ha_statistic_increment
Submitted: 20 Mar 2018 18:51 Modified: 31 Jul 2018 18:54
Reporter: FBContrib Admin Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: MyISAM storage engine Severity:S3 (Non-critical)
Version:8.0.4 OS:Any
Assigned to: CPU Architecture:Any

[20 Mar 2018 18:51] FBContrib Admin
Background innformation provided by Facebook:
ha_statistic_increment can seg fault during myisam query, when a temporary table fails to be created properly.

Repo: https://github.com/mysql/mysql-server

Patch on top of 8.0.4: https://github.com/mysql/mysql-server/commit/577fbcf856cd693434d554545d499559bcdd3695

How to repeat:
See description

Suggested fix:
See contribution code attached
[20 Mar 2018 18:51] FBContrib Admin
Avoid a crash in ha_statistic_increment 
(*) This code is contributed under the Facebook agreement

Contribution: fb_patch_33.txt (text/plain), 949 bytes.

[30 Jul 2018 16:35] Omer Barnir
Thanks for the contribution
[31 Jul 2018 18:54] Paul Dubois
Posted by developer:
Fixed in 5.6.42, 5.7.24, 8.0.13.

Failure to create a temporary table during a MyISAM table could cause
a server exit. Thanks to Facebook for the patch.