Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS-8908: Mysqld crash when user forgets to set debug timeout #5117

Open
wants to merge 1 commit into
base: 8.0
Choose a base branch
from

Commits on Sep 5, 2023

  1. PS-8908: Mysqld crash when user forgets to set debug timeout

    https://jira.percona.com/browse/PS-8908
    
    Problem:
    If 'debug_sync_timeout' parameter is not specified in my.cnf or as
    a command line argument, the usage of debug sync factility leads to
    the assertion.
    
    Cause:
    The default value of 'debug_sync_timeout' is 0, which means the debug
    sync factility is disabled. In such a case 'debug_sync_control' member
    of the THD is not initialized during THD initialization
    (debug_sync_init_thread()).
    The callstack debug_sync_set_action => debug_sync_eval_action =>
    debug_sync_get_action uses 'debug_sync_control' member unconditionally
    causing the assertion.
    
    Solution:
    There was a missing check for 'debug_sync_timeout' in
    the above-mentioned callstack. Similar checks are present in
    debug_sync_update() or debug_sync_init() functions.
    Added missing check.
    kamil-holubicki committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    f2f00b8 View commit details
    Browse the repository at this point in the history