[MDEV-24637] fts_slots is being accessed after it gets freed. Created: 2021-01-21  Updated: 2021-01-25  Resolved: 2021-01-22

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.6.0
Fix Version/s: 10.6.0

Type: Bug Priority: Major
Reporter: Thirunarayanan Balathandayuthapani Assignee: Thirunarayanan Balathandayuthapani
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-21452 Use condition variables and normal mu... Closed

 Description   

fts_optimize_callback() does encounter the message FTS_MSG_STOP and frees the
fts_slots. Again fts_optimize_callback() is being called due to timer initiated callback.
This problem exists in 10.6 due to the following commit:

commit 38fd7b7d9170369b16ff553f01669182e70bc9b5
Author: Marko Mäkelä <marko.makela@mariadb.com>
Date:   Fri Dec 4 16:18:04 2020 +0200
 
    MDEV-21452: Replace all direct use of os_event_t

InnoDB fts_optimize_callback() should detect whether the FTS_STOP_MSG has been processed.



 Comments   
Comment by Marko Mäkelä [ 2021-01-21 ]

Thank you. It looks OK to me.

Generated at Thu Feb 08 09:31:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.