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 on shutdown process #353

Open
bokunodev opened this issue Dec 18, 2022 · 0 comments
Open

Data race on shutdown process #353

bokunodev opened this issue Dec 18, 2022 · 0 comments

Comments

@bokunodev
Copy link

==================
WARNING: DATA RACE
Write at 0x00c00022c0a0 by goroutine 21:
  github.com/ochinchina/supervisord/process.(*Process).changeStateTo()
      github.com/ochinchina/supervisord/process/process.go:687 +0xd4f
  github.com/ochinchina/supervisord/process.(*Process).run()
      github.com/ochinchina/supervisord/process/process.go:643 +0x1406
  github.com/ochinchina/supervisord/process.(*Process).Start.func1()
      github.com/ochinchina/supervisord/process/process.go:165 +0xdb

Previous read at 0x00c00022c0a0 by goroutine 31:
  github.com/ochinchina/supervisord/process.(*Process).Stop.func1()
      github.com/ochinchina/supervisord/process/process.go:960 +0x673

Goroutine 21 (running) created at:
  github.com/ochinchina/supervisord/process.(*Process).Start()
      github.com/ochinchina/supervisord/process/process.go:163 +0x4ee
  github.com/ochinchina/supervisord/process.(*Manager).StartAutoStartPrograms.func1()
      github.com/ochinchina/supervisord/process/process_manager.go:44 +0x7e
  github.com/ochinchina/supervisord/process.(*Manager).ForEachProcess()
      github.com/ochinchina/supervisord/process/process_manager.go:153 +0x295
  github.com/ochinchina/supervisord/process.(*Manager).StartAutoStartPrograms()
      github.com/ochinchina/supervisord/process/process_manager.go:42 +0x35
  main.(*Supervisor).startAutoStartPrograms()
      github.com/ochinchina/supervisord/supervisor.go:494 +0x3ea
  main.(*Supervisor).Reload()
      github.com/ochinchina/supervisord/supervisor.go:455 +0x3c5
  main.runServer()
      github.com/ochinchina/supervisord/main.go:136 +0x47c
  main.main.func1()
      github.com/ochinchina/supervisord/main.go:174 +0xcb
  github.com/jessevdk/go-flags.(*Parser).ParseArgs()
      github.com/jessevdk/[email protected]/parser.go:338 +0xfc2
  github.com/jessevdk/go-flags.(*Parser).Parse()
      github.com/jessevdk/[email protected]/parser.go:191 +0x139
  main.main()
      github.com/ochinchina/supervisord/main.go:181 +0xd3

Goroutine 31 (running) created at:
  github.com/ochinchina/supervisord/process.(*Process).Stop()
      github.com/ochinchina/supervisord/process/process.go:947 +0x8f1
  github.com/ochinchina/supervisord/process.(*Manager).StopAllProcesses.func1.1()
      github.com/ochinchina/supervisord/process/process_manager.go:197 +0x78
  github.com/ochinchina/supervisord/process.(*Manager).StopAllProcesses.func1.2()
      github.com/ochinchina/supervisord/process/process_manager.go:198 +0x47
==================
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