Skip to content

Volatile fields with inconsistent synchronization in IpcClient #1991

Closed

Description

@elharo

Affected version: HEAD

File: maven-resolver-named-locks-ipc/src/main/java/org/eclipse/aether/named/ipc/IpcClient.java:78-87

Fields initialized, socket, output, input, receiver are volatile but their compound use (read + method call) lacks synchronization. send() reads output into a local variable at line 316 without holding the monitor, then synchronizes on the local reference at line 323, but close() nulls output under synchronized(this) at line 361. receive() has the same pattern with input.

Originally reported in #1944.

Activity

  1. modified the milestones: 2.1.0, on Sep 1, 2026
  2. added a commit that references this issue on Sep 4, 2026
  3. added a commit that references this issue on Sep 26, 2026
    7a141f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions