Skip to content

Deadlock with PCL global mutex in log-func #48

@kchanqvq

Description

@kchanqvq

Currently, forms passed to (log:* ...) are wrapped in log-func and called while Log4CL serialized appender lock is being held. This is prone to deadlock because such forms are user code and may (attempt to) acquire other locks. In particular, this can cause deadlock with PCL global mutex on SBCL when redefining classes.

In principle this can be fixed by moving the call to log-func outside Log4CL serialized appender lock. I'm not sure how difficult it is given how the code is structured, but at least I think documenting it here may help others encountering the same issue.

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