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: unaligned 64-bit atomic operation on 32 bit #26

Closed
Invincibl-e opened this issue Dec 10, 2021 · 5 comments
Closed

panic: unaligned 64-bit atomic operation on 32 bit #26

Invincibl-e opened this issue Dec 10, 2021 · 5 comments

Comments

@Invincibl-e
Copy link

goroutine 38 [running]:
runtime/internal/atomic.panicUnaligned()
	C:/Program Files/Go/src/runtime/internal/atomic/unaligned.go:8 +0x2d
runtime/internal/atomic.Xadd64(0x1212a09c, 0x1)
	C:/Program Files/Go/src/runtime/internal/atomic/atomic_386.s:125 +0x11
github.com/lesismal/arpc.(*Client).newRequestMessage(0x1212a060, 0x1, {0x7946f350, 0x10}, {0x79457880, 0x11c68000}, 0x0, 0x1, {0x0, 0x0, ...})
	F:/Go/pkg/mod/github.com/lesismal/arpc@v1.2.3/client.go:564 +0x10d
github.com/lesismal/arpc.(*Client).CallAsync(0x1212a060, {0x7946f350, 0x10}, {0x79457880, 0x11c68000}, 0x7947da14, 0x12a05f200, {0x0, 0x0, 0x0})

貌似原子操作 32 位要对齐?

@lesismal
Copy link
Owner

看样子算是go的一个bug,proposal 似乎有计划:golang/go#36606

我先更新了两个提交:
1af7123
5e01e30

试下可以不:

go get github.com/lesismal/arpc@5e01e30

@lesismal
Copy link
Owner

btw,您是什么硬件、系统?嵌入式设备arm?

@Invincibl-e
Copy link
Author

看样子算是go的一个bug,proposal 似乎有计划:golang/go#36606

我先更新了两个提交: 1af7123 5e01e30

试下可以不:

go get github.com/lesismal/arpc@5e01e30

现在 OK 了。

@Invincibl-e
Copy link
Author

btw,您是什么硬件、系统?嵌入式设备arm?

打包成库,目标进程是 32 位的,不得已委屈求全。

@lesismal
Copy link
Owner

进程是 32 位的,不得已委

好的,发布了 v1.2.4

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