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

crash #7

Open
cangyuegui opened this issue Apr 19, 2022 · 1 comment
Open

crash #7

cangyuegui opened this issue Apr 19, 2022 · 1 comment

Comments

@cangyuegui
Copy link

reflect.Value.Pointer(0x53afa0, 0xc00000c4a0, 0x99, 0x0)
D:/Soft/Go/src/reflect/value.go:1457 +0x234
github.com/fananchong/cstruct-go.toStructPointer(0x53afa0, 0xc00000c4a0, 0x99, 0x0)
C:/Users/cangy/go/pkg/mod/github.com/fananchong/cstruct-go@v0.0.0-20190401090722-b07fd3d15e2d/pointer_unsafe.go:58 +0x4f
github.com/fananchong/cstruct-go.getbase(0x53afa0, 0xc00000c4a0, 0x56c500, 0x53afa0, 0x0, 0x0, 0x0)
C:/Users/cangy/go/pkg/mod/github.com/fananchong/cstruct-go@v0.0.0-20190401090722-b07fd3d15e2d/buffer.go:47 +0xc3
github.com/fananchong/cstruct-go.(*Buffer).Marshal(0xc0000044c0, 0x53afa0, 0xc00000c4a0, 0x0, 0x0)
C:/Users/cangy/go/pkg/mod/github.com/fananchong/cstruct-go@v0.0.0-20190401090722-b07fd3d15e2d/buffer.go:27 +0x7e
github.com/fananchong/cstruct-go.Marshal(0x53afa0, 0xc00000c4a0, 0x0, 0x0, 0x0, 0x0, 0x0)
C:/Users/cangy/go/pkg/mod/github.com/fananchong/cstruct-go@v0.0.0-20190401090722-b07fd3d15e2d/encode.go:5 +0x89
main.main()
d:/WORK/open-game/server/main.go:22 +0xc8

@fananchong
Copy link
Owner

我看堆栈是 main.go 下,就调用 cstruct-go 序列化了,是测试例子吗?
代码发下,我调试下看

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