-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Appears to be a crash in the security spy library while shutting down the event watcher.
Also this app crashes on startup if security spy is not running.
Fix both problems.
[INFO] 2021/12/21 12:04:29 Shutting down! Caught Signal: terminated
[INFO] 2021/12/21 12:04:31 [meej] Event 'Garage' triggered subscription messages. Subscribers: 1
[INFO] 2021/12/21 12:04:31 Exiting!
panic: send on closed channel
goroutine 34 [running]:
golift.io/securityspy.(*Event).eventChans(0x1400005cec8, 0x140001b6210)
/Users/dnewhall/go/pkg/mod/golift.io/securityspy@v0.0.101/events.go:364 +0xec
golift.io/securityspy.(*Events).eventStreamSelector(0x1400017dab0, 0x0, 0x12a05f200)
/Users/dnewhall/go/pkg/mod/golift.io/securityspy@v0.0.101/events.go:230 +0x2c8
created by golift.io/securityspy.(*Events).Watch
/Users/dnewhall/go/pkg/mod/golift.io/securityspy@v0.0.101/events.go:133 +0x98
panic: send on closed channel
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x100aad9d8]
goroutine 35 [running]:
golift.io/securityspy.(*Events).eventStreamScanner.func1(0x1400017dab0)
/Users/dnewhall/go/pkg/mod/golift.io/securityspy@v0.0.101/events.go:170 +0x28
panic({0x100dd26c0, 0x100e3d5a8})
/opt/homebrew/Cellar/go/1.17.3/libexec/src/runtime/panic.go:1038 +0x21c
golift.io/securityspy.(*Events).eventStreamScanner(0x1400017dab0)
/Users/dnewhall/go/pkg/mod/golift.io/securityspy@v0.0.101/events.go:180 +0x238
created by golift.io/securityspy.(*Events).Watch
/Users/dnewhall/go/pkg/mod/golift.io/securityspy@v0.0.101/events.go:134 +0xb8
[INFO] 2021/12/21 12:05:47 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:05:47 Motifini - Starting! (PID: 469)
[INFO] 2021/12/21 12:05:47 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:05:47 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:05:47 Exiting!
2021/12/21 12:05:47 [ERROR] connecting to securityspy: getting systemInfo: http request: Get "http://127.0.0.1:8000/++systemInfo?auth=bW90aWZpbmk6c3VwZXJzZWNyZXRwYXNzd29yZA%3D%3D&format=xml": dial tcp 127.0.0.1:8000: connect: connection refused
[INFO] 2021/12/21 12:05:57 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:05:57 Motifini - Starting! (PID: 536)
[INFO] 2021/12/21 12:05:57 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:05:57 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:05:57 Exiting!
2021/12/21 12:05:57 [ERROR] connecting to securityspy: getting systemInfo: http request: Get "http://127.0.0.1:8000/++systemInfo?auth=bW90aWZpbmk6c3VwZXJzZWNyZXRwYXNzd29yZA%3D%3D&format=xml": dial tcp 127.0.0.1:8000: connect: connection refused
[INFO] 2021/12/21 12:06:07 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:06:07 Motifini - Starting! (PID: 543)
[INFO] 2021/12/21 12:06:07 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:06:07 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:06:07 Exiting!
2021/12/21 12:06:07 [ERROR] connecting to securityspy: getting systemInfo: http request: Get "http://127.0.0.1:8000/++systemInfo?auth=bW90aWZpbmk6c3VwZXJzZWNyZXRwYXNzd29yZA%3D%3D&format=xml": dial tcp 127.0.0.1:8000: connect: connection refused
[INFO] 2021/12/21 12:06:17 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:06:17 Motifini - Starting! (PID: 553)
[INFO] 2021/12/21 12:06:17 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:06:17 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:06:17 Event Stream Watcher Started
[INFO] 2021/12/21 12:06:17 SecuritySpy Event Stream Connected!
[MSGS] 2021/12/21 12:06:18 Authorized on account CraftSpyBot
[MSGS] 2021/12/21 12:06:18 Connecting to Telegram!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels