Skip to content

signal: data-race during shutdown #6137

@Crypt-iQ

Description

@Crypt-iQ

It failed to restore the stack, so not sure if the output is very useful.

==================
WARNING: DATA RACE
Read at 0x00000381a6c0 by goroutine 21:
  github.com/lightningnetwork/lnd/signal.(*Interceptor).mainInterruptHandler()
      /Users/nsa/lnd/signal/signal.go:177 +0x2de
  github.com/lightningnetwork/lnd/signal.Intercept·dwrap·1()
      /Users/nsa/lnd/signal/signal.go:139 +0x39

Previous write at 0x00000381a6c0 by main goroutine:
  [failed to restore the stack]

Goroutine 21 (running) created at:
  github.com/lightningnetwork/lnd/signal.Intercept()
      /Users/nsa/lnd/signal/signal.go:139 +0x2d0
  main.main()
      /Users/nsa/lnd/cmd/lnd/main.go:14 +0x3a
==================
==================
WARNING: DATA RACE
Read at 0x00c00079a6c0 by goroutine 21:
  github.com/lightningnetwork/lnd.(*replaceableLogger).Infof()
      <autogenerated>:1 +0x64
  github.com/lightningnetwork/lnd/signal.(*Interceptor).mainInterruptHandler()
      /Users/nsa/lnd/signal/signal.go:177 +0x311
  github.com/lightningnetwork/lnd/signal.Intercept·dwrap·1()
      /Users/nsa/lnd/signal/signal.go:139 +0x39

Previous write at 0x00c00079a6c0 by main goroutine:
  [failed to restore the stack]

Goroutine 21 (running) created at:
  github.com/lightningnetwork/lnd/signal.Intercept()
      /Users/nsa/lnd/signal/signal.go:139 +0x2d0
  main.main()
      /Users/nsa/lnd/cmd/lnd/main.go:14 +0x3a
==================
==================
WARNING: DATA RACE
Read at 0x00c00000e660 by goroutine 21:
  github.com/lightningnetwork/lnd/build.(*ShutdownLogger).Infof()
      <autogenerated>:1 +0x64
  github.com/lightningnetwork/lnd.(*replaceableLogger).Infof()
      <autogenerated>:1 +0x92
  github.com/lightningnetwork/lnd/signal.(*Interceptor).mainInterruptHandler()
      /Users/nsa/lnd/signal/signal.go:177 +0x311
  github.com/lightningnetwork/lnd/signal.Intercept·dwrap·1()
      /Users/nsa/lnd/signal/signal.go:139 +0x39

Previous write at 0x00c00000e660 by main goroutine:
  [failed to restore the stack]

Goroutine 21 (running) created at:
  github.com/lightningnetwork/lnd/signal.Intercept()
      /Users/nsa/lnd/signal/signal.go:139 +0x2d0
  main.main()
      /Users/nsa/lnd/cmd/lnd/main.go:14 +0x3a
==================

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to havebeginnerIssues suitable for new developersbugUnintended code behaviourdata-raceRelated to data-racesgolang/build systemRelated to the go language and compilerintermediateIssues suitable for developers moderately familiar with the codebase and LN

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions