Skip to content

An improper locking bug(e.g., deadlock) on the lock runloop_lock #641

@ycaibb

Description

@ycaibb

Hi, developers, thank you for your checking. It seems the lock runloop_lock is not released correctly when ret != 0 in the function setup_kinect?

pthread_mutex_lock(&runloop_lock);
int thread_running_prev = thread_running;
if (!thread_running) {
int ret = init_thread();
if (ret != 0) return ret;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions