Bug #83456 | Race condition in mysql_set_character_set, ASAN failure with multi-source rpl | ||
---|---|---|---|
Submitted: | 20 Oct 2016 10:38 | Modified: | 24 May 2017 9:54 |
Reporter: | Sven Sandberg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S3 (Non-critical) |
Version: | 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[20 Oct 2016 10:38]
Sven Sandberg
[20 Oct 2016 10:41]
Sven Sandberg
Posted by developer: Note: the non-thread-safeness has probably been there since forever, but it probably only manifests itself in 5.7 because we introduced multi-source replication which will call these functions from different threads at about the same time. I don't think the server would use different MYSQL objects concurrently before that. Therefore I set the version to 5.7.
[20 Oct 2016 12:06]
Sven Sandberg
Posted by developer: Last line of Description should be: 4. T2 executes 1.2, where strdup will read freed memory. (Thanks Daogang for spotting that.)
[24 May 2017 9:54]
Erlend Dahl
Fixed in 8.0.2.