Skip to content

NPE — receive() reads volatile input without synchronization in IpcClient #1985

Description

@elharo

Affected version: HEAD

File:

is a volatile field (line 86). reads it without holding the monitor. Meanwhile, (line 351, ) sets (line 360). Between the volatile read at line 291 and the call, another thread can call , nulling . The same pattern applies to at line 316 with .

Originally reported in #1944.

Activity

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:criticalCrashes, loss of data, severe memory leak

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions