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

invalid memory address #25

Closed
djroach opened this issue Nov 23, 2019 · 2 comments
Closed

invalid memory address #25

djroach opened this issue Nov 23, 2019 · 2 comments

Comments

@djroach
Copy link

djroach commented Nov 23, 2019

Getting invalid memory address or nil pointer dereference. Setup environment variables, database etc. Same error whether IDM or SCM.

pi@raspberrypi:~/go/src/github.com/bemasher/rtlamr-collect $ sudo systemctl status rtlamr-collect
● rtlamr-collect.service - RTLAMR Collector
   Loaded: loaded (/etc/systemd/system/rtlamr-collect.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2019-11-23 01:46:57 GMT; 4min 31s ago
 Main PID: 1185 (sh)
    Tasks: 13 (limit: 4915)
   CGroup: /system.slice/rtlamr-collect.service
           ├─1185 /bin/sh -c /home/pi/go/bin/rtlamr | /home/pi/go/bin/rtlamr-collect
           └─1186 /home/pi/go/bin/rtlamr

Nov 23 01:46:57 raspberrypi sh[1185]: 01:46:57.601003 main.go:119: GainCount: 29
Nov 23 01:46:57 raspberrypi sh[1185]: 01:46:57.644966 main.go:388: preloaded 0 meters
Nov 23 01:51:19 raspberrypi sh[1185]: 01:51:19.655281 main.go:457: rtlamr,endpoint_id=20876520,endpoint_type=7,msg_type=cumulative,protocol=SCM co
Nov 23 01:51:19 raspberrypi sh[1185]: panic: runtime error: invalid memory address or nil pointer dereference
Nov 23 01:51:19 raspberrypi sh[1185]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x24 pc=0x149e4]
Nov 23 01:51:19 raspberrypi sh[1185]: goroutine 1 [running]:
Nov 23 01:51:19 raspberrypi sh[1185]: panic(0x2472f0, 0x1060c010)
Nov 23 01:51:19 raspberrypi sh[1185]:         /usr/lib/go-1.7/src/runtime/panic.go:500 +0x33c
Nov 23 01:51:19 raspberrypi sh[1185]: main.main()
Nov 23 01:51:19 raspberrypi sh[1185]:         /home/pi/go/src/github.com/bemasher/rtlamr-collect/main.go:461 +0xb88
lines 1-19/19 (END)
@bemasher
Copy link
Owner

I would also recommend that you upgrade your go toolchain and re-build both rtlamr-collect and rtlamr. Around about go 1.10 or so, there were some significant improvements to compiler optimizations and performance on ARM systems.

@djroach
Copy link
Author

djroach commented Nov 23, 2019

This did fix it.Thank you

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

2 participants