Bug #112259 Assert when debug_sync_timeout is 0

Submitted: 5 Sep 2023 9:44 Modified: 18 Oct 14:35
Reporter: Kamil Holubicki (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.33 OS:Any
Assigned to: CPU Architecture:Any
Tags: contributions

[5 Sep 2023 9:44] Kamil Holubicki
Description:
If server is built with debug sync and debug_sync_timeout option is not set it defaults to 0 (zero). It means that debug sync facility stays disabled.
However, when used, server asserts.

How to repeat:
Start the server without debug_sync_timeout specified in my.cnf

SET GLOBAL debug = '+d,dbug.enabled_commit';
create database test;
[5 Sep 2023 9:46] Kamil Holubicki
proposed patch

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: debug_sync.patch (text/x-patch), 499 bytes.

[5 Sep 2023 10:21] MySQL Verification Team
Hello Kamil Holubicki ,

Thank you for the report and contribution.

regards,
Umesh
[13 Jul 8:48] MySQL Admin
Posted by developer: Bug status updated to 'Patch pending'
[7 Oct 7:41] Prabakaran Thirumalai
Hi Kamil Holubicki,

Thank you for your contribution.
Your patch has been approved and will be included in the next Innovation release.

Thanks
Prabakaran
[7 Oct 8:48] MySQL Admin
Posted by developer: Bug status updated to 'Documenting'
[18 Oct 14:35] Edward Gilmore
Posted by developer:
 
Added the following note to the MySQL Server 26.10.0 release notes:

In servers built with Debug Sync, an unset debug_sync_timeout could cause some debug 
actions to assert or abort instead of being ignored. A zero timeout now consistently 
disables Debug Sync. 
Our thanks to Kamil Holubicki and the team at Percona for the contribution.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.