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

macos: fix missing pthread mutex init after calloc #21

Open
wants to merge 1 commit into
base: mariadb-4.x
Choose a base branch
from

Commits on Jul 31, 2024

  1. macos: fix missing pthread mutex init after calloc

    calls constructor for a mutex in a struct value init-ed with gu_calloc.
    
    in path `gcs_core_create() -> gcs_group_init()`, the first one allocates
    `gcs_core_t* core` with gu_calloc() whereas `gcs_code_t` has
    `gcs_group_t group` with `gu::Mutex memb_mtx_`. After memory allocation
    gu::Mutex constructor was not called that lead to an error on Darwin in
    a call to pthread mutex lock.
    
    Signed-off-by: Ivan Prisyazhnyy <[email protected]>
    sitano committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ec7d79d View commit details
    Browse the repository at this point in the history