-
Notifications
You must be signed in to change notification settings - Fork 15
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 or nil pointer dereference #31
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
@erebusdark Hi. I'm so sorry I didn't notice for a long time which Go version are u using? 1.10? |
@erebusdark can u test on Go 1.13? |
I will check with Go 1.13 during next week when I am back so I can test it. Will update this once I have tested it. |
I was using 1.10 but get the same error with 1.13.1 |
can you show me the error log with Go 1.13.1? |
The file is very simple and it looks like this:
|
could you please give me raw. stdout result?
|
I am not sure how to get the raw stdout. |
please paste raw result below echo "$(go version)\n$(go run main.go)" >> result.txt the code of fastime.go:181, I just use atomic.StoreUint64() there is no problem about that we can find stdlibs problem by assembly error like you paste
|
Ah, that is a problem sense I don't have go on the raspberry pi. I did just find this however:
from https://golang.org/pkg/sync/atomic/ |
Oh that's make sense. |
This is very odd, I tried it with the update, it ran fine, then I tried running it again and now it crashed again. With that fix it seems to not happen sometimes but a lot of times it seems to still have the issue.. |
hmm 🤔 |
Not exactly, I got this error this time:
|
@erebusdark Hi, I apologize that this issue has been lying unsolved for a very long time. You might not have already used them, but I'd like to give you a reminder. |
I am using the github.com/kpango/glg package that in turn is using this package. When I run my code on a x86_64 machine it works, no problems what so ever, but when I compile it and try to run it on a arm processor (Raspberry Pi 3) it panics and crashes with the following error
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x114fc]
goroutine 17 [running]:
sync/atomic.storeUint64(0x1101e034, 0x4c4b40, 0x0)
/usr/lib/go-1.10/src/sync/atomic/64bit_arm.go:20 +0x3c
github.com/kpango/fastime.(*Fastime).StartTimerD.func1(0x1101e000, 0x4c4b40, 0x0, 0x386220, 0x110001e0)
/home/user/go/src/github.com/kpango/fastime/fastime.go:181 +0x64
created by github.com/kpango/fastime.(*Fastime).StartTimerD
/home/user/go/src/github.com/kpango/fastime/fastime.go:179 +0xb8
The text was updated successfully, but these errors were encountered: