Skip to content

Cancelling unanswered toxav call locks uninitialied mutex #1194

@sphaerophoria

Description

@sphaerophoria

Edit: My apologies for the initial bug report, I thought the scope of this problem was much larger and was only being shown on MSVC.

When we create a toxav call we do not initialize any of our mutexes until we activate the call. If we then cancel the call we lock/unlock an uninitialized mutex. On MSVC this results in a segfault due to the pthread_mutex_t type being a typedeffed pointer.

Example in the following image.

image

Note that mutex[0] == NULL. Visual studio made a mistake in where it places the (X) in this image, the access violation occurs in pthread_mutex_unlock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions