-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
It seems that the lock server->pth_mutex is missed to be released before Line 446
fluent-bit/lib/monkey/mk_server/mk_scheduler.c
Lines 435 to 456 in 8edaed6
| pthread_mutex_lock(&server->pth_mutex); | |
| /* Thread data */ | |
| thconf = mk_mem_alloc_z(sizeof(struct mk_sched_thread_conf)); | |
| thconf->server = server; | |
| pthread_attr_init(&attr); | |
| pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); | |
| if (pthread_create(&tid, &attr, mk_sched_launch_worker_loop, | |
| (void *) thconf) != 0) { | |
| mk_libc_error("pthread_create"); | |
| return -1; | |
| } | |
| *tout = tid; | |
| /* Block until the child thread is ready */ | |
| while (!server->pth_init) { | |
| pthread_cond_wait(&server->pth_cond, &server->pth_mutex); | |
| } | |
| pthread_mutex_unlock(&server->pth_mutex); |
Reactions are currently unavailable