perlin-network / noise

A decentralized P2P networking stack written in Go.
https://godoc.org/github.com/perlin-network/noise
MIT License
1.79k stars 211 forks source link

Runtime error with default chat example #264

Closed target111 closed 4 years ago

target111 commented 4 years ago

HOST: Raspbian GNU/Linux 10 GOLANG VERSION: go1.11.6 linux/arm

Steps to reproduce:

  1. First terminal: go run examples/chat/main.go -p 3000 output: 7:42PM INF examples/chat/main.go:96 > Listening for peers on port 3000.
  2. Second terminal: go run examples/chat/main.go -p 3001 127.0.0.1:3000 output from both terminals:
    
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1227c]

goroutine 19 [running]: runtime/internal/atomic.goLoad64(0x107532c, 0x574f98, 0x0) /usr/lib/go-1.11/src/runtime/internal/atomic/atomic_arm.go:124 +0x1c github.com/perlin-network/noise/callbacks.(SequentialCallbackManager).RunCallbacks(0x1075320, 0x1072a28, 0x1, 0x1, 0x0, 0x0, 0x0) /home/pi/projects/noise/callbacks/sequential.go:115 +0x130 github.com/perlin-network/noise.(Node).Listen(0x10c6280) /home/pi/projects/noise/node.go:135 +0x144 created by main.main /home/pi/projects/noise/examples/chat/main.go:94 +0x2b8 exit status 2



Lemme know if I can provide more details. Any idea what's going on?