Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.6.4
-
All
Description
Hi, developers, thank you for your checking. It seems the lock thd->ctrl_mutex is not correctly released if it goes to the error, so there is a missing unlock in the *error *branch
pthread_mutex_lock(&thd->ctrl_mutex);
|
|
if (pthread_create(&thd->id, NULL, compress_worker_thread_func, |
thd)) {
|
msg("compress: pthread_create() failed: " |
"errno = %d", errno); |
goto err; |
}
|
}
|
|
/* Wait for the threads to start */ |
for (i = 0; i < n; i++) { |
comp_thread_ctxt_t *thd = threads + i;
|
|
while (thd->started == FALSE) |
pthread_cond_wait(&thd->ctrl_cond, &thd->ctrl_mutex);
|
pthread_mutex_unlock(&thd->ctrl_mutex);
|
}
|
|
return threads; |
|
err:
|
my_free(threads);
|
return NULL; |
}
|
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | mariabackup [ 14500 ] | |
Component/s | Server [ 13907 ] |
Priority | Blocker [ 1 ] | Major [ 3 ] |
Assignee | Daniel Black [ danblack ] |
Fix Version/s | 10.2 [ 14601 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Fix Version/s | 10.2.42 [ 26803 ] | |
Fix Version/s | 10.3.33 [ 26805 ] | |
Fix Version/s | 10.4.23 [ 26807 ] | |
Fix Version/s | 10.5.14 [ 26809 ] | |
Fix Version/s | 10.6.6 [ 26811 ] | |
Fix Version/s | 10.7.2 [ 26813 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | Confirmed [ 10101 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 124872 ] | MariaDB v4 [ 159670 ] |