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

panic at runtime on android #41

Closed
Milerius opened this issue Jul 15, 2021 · 1 comment · Fixed by #42
Closed

panic at runtime on android #41

Milerius opened this issue Jul 15, 2021 · 1 comment · Fixed by #42

Comments

@Milerius
Copy link
Contributor

Milerius commented Jul 15, 2021

E/Go: panic: unaligned 64-bit atomic operation
E/Go: 
E/Go: goroutine 8 [running]:
E/Go: runtime/internal/atomic.panicUnaligned()
E/Go: 	/Users/milerius/sdk/go1.16.2/src/runtime/internal/atomic/unaligned.go:8 +0x38
E/Go: runtime/internal/atomic.Store64(0x8684e2f4, 0x4c4b40, 0x0)
E/Go: 	/Users/milerius/sdk/go1.16.2/src/runtime/internal/atomic/asm_386.s:213 +0x10
E/Go: github.com/kpango/fastime.(*Fastime).StartTimerD.func1(0x8684e2c0, 0x4c4b40, 0x0, 0xb7422b9c, 0x86812820)
E/Go: 	/var/folders/9w/h3xyrgx538g23bw10m59tbgc0000gn/T/gomobile-work-681244108/pkg/mod/github.com/kpango/[email protected]/fastime.go:188 +0x88
E/Go: created by github.com/kpango/fastime.(*Fastime).StartTimerD
E/Go: 	/var/folders/9w/h3xyrgx538g23bw10m59tbgc0000gn/T/gomobile-work-681244108/pkg/mod/github.com/kpango/[email protected]/fastime.go:185 +0xc9
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 8080 (Thread-2), pid 8045 (e.myapplication)

golang/go#11891

Would be nice if we can solve it, i try to make fasthttp work on my android device, and i'm block at this point

cc @kpango i dont know if you ever see this problem

Reference: golang/go#599 and https://golang.org/pkg/sync/atomic/#pkg-note-BUG
Solution: golang/go#11891 (comment)

@Milerius
Copy link
Contributor Author

it's works @kpango with the last version i'm able to start my program and log on both ios and android device thanks alot

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

Successfully merging a pull request may close this issue.

2 participants