Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Race bug in Actor passivation logic #1139

Open
lrweck opened this issue Jan 31, 2025 · 0 comments
Open

Data Race bug in Actor passivation logic #1139

lrweck opened this issue Jan 31, 2025 · 0 comments

Comments

@lrweck
Copy link
Contributor

lrweck commented Jan 31, 2025

Describe the bug

WARNING: DATA RACE
Write at 0x00c006720d40 by goroutine 11743:
  github.com/asynkron/protoactor-go/actor.(*actorContextExtras).killReceiveTimeoutTimer()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/actor_context.go:81 +0x88
  github.com/asynkron/protoactor-go/actor.(*actorContext).CancelReceiveTimeout()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/actor_context.go:246 +0xf6
  github.com/asynkron/protoactor-go/actor.(*actorContext).receiveTimeoutHandler()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/actor_context.go:252 +0x8f
  github.com/asynkron/protoactor-go/actor.(*actorContext).receiveTimeoutHandler-fm()
      <autogenerated>:1 +0x33

Previous read at 0x00c006720d40 by goroutine 11622:
  github.com/asynkron/protoactor-go/actor.(*actorContextExtras).stopReceiveTimeoutTimer()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/actor_context.go:68 +0x7ee
  github.com/asynkron/protoactor-go/actor.(*actorContext).InvokeUserMessage()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/actor_context.go:482 +0x7b8
  github.com/asynkron/protoactor-go/actor.(*defaultMailbox).run()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/mailbox.go:169 +0x327
  github.com/asynkron/protoactor-go/actor.(*defaultMailbox).processMessages()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/mailbox.go:105 +0x2e
  github.com/asynkron/protoactor-go/actor.(*defaultMailbox).processMessages-fm()
      <autogenerated>:1 +0x33

Goroutine 11743 (running) created at:
  time.goFunc()
      /usr/local/go/src/time/sleep.go:215 +0x44

Goroutine 11622 (running) created at:
  github.com/asynkron/protoactor-go/actor.goroutineDispatcher.Schedule()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/dispatcher.go:13 +0x26
  github.com/asynkron/protoactor-go/actor.(*goroutineDispatcher).Schedule()
      <autogenerated>:1 +0x4b
  github.com/asynkron/protoactor-go/actor.(*defaultMailbox).schedule()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/mailbox.go:99 +0xcf
  github.com/asynkron/protoactor-go/actor.(*defaultMailbox).PostUserMessage()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/mailbox.go:80 +0x22e
  github.com/asynkron/protoactor-go/actor.(*ActorProcess).SendUserMessage()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/actor_process.go:21 +0x51
  github.com/asynkron/protoactor-go/actor.(*PID).sendUserMessage()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/pid.go:49 +0x55
  github.com/asynkron/protoactor-go/actor.NewRootContext.func1()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/root_context.go:30 +0x45
  github.com/pismo/ledger/internal/protoactor.(*ClusterActorCaller).newRootCtx.func1.1()
      /codefresh/volume/ledger/internal/protoactor/actor_caller.go:277 +0x269
  github.com/asynkron/protoactor-go/actor.(*RootContext).sendUserMessage()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/root_context.go:145 +0x158
  github.com/asynkron/protoactor-go/actor.(*RootContext).RequestFuture()
      /codefresh/volume/.cache/go-path/pkg/mod/github.com/asynkron/[email protected]/actor/root_context.go:137 +0x153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant