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: runtime error: index out of range [5] with length 5 #120

Closed
ace2021 opened this issue Feb 27, 2021 · 1 comment
Closed

panic: runtime error: index out of range [5] with length 5 #120

ace2021 opened this issue Feb 27, 2021 · 1 comment

Comments

@ace2021
Copy link

ace2021 commented Feb 27, 2021

panic: runtime error: index out of range [5] with length 5

goroutine 1384870 [running]:
github.com/aliyun/aliyun-log-go-sdk.(*LogContent).MarshalTo(0xc0345deb40, 0xc0362d7efa, 0x5, 0x5, 0xa, 0x1b, 0x0)
/go/pkg/mod/github.com/aliyun/[email protected]/log.pb.go:265 +0x306
github.com/aliyun/aliyun-log-go-sdk.(*Log).MarshalTo(0xc0337b7600, 0xc0362d7edf, 0x20, 0x20, 0xa1, 0x5bedf, 0x0)
/go/pkg/mod/github.com/aliyun/[email protected]/log.pb.go:303 +0x1d7
github.com/aliyun/aliyun-log-go-sdk.(*LogGroup).MarshalTo(0xc02a2131f0, 0xc03627c000, 0x5beff, 0x5beff, 0x40d28a, 0xb08500, 0xb7b700)
/go/pkg/mod/github.com/aliyun/[email protected]/log.pb.go:373 +0x17a
github.com/aliyun/aliyun-log-go-sdk.(*LogGroup).Marshal(0xc02a2131f0, 0xc8abe0, 0xc02a2131f0, 0x7f92d05f99a8, 0xc02a2131f0, 0x522901)
/go/pkg/mod/github.com/aliyun/[email protected]/log.pb.go:356 +0x7a
github.com/gogo/protobuf/proto.Marshal(0xc8abe0, 0xc02a2131f0, 0x0, 0xc032e66e00, 0x0, 0x200, 0x0)
/go/pkg/mod/github.com/gogo/[email protected]/proto/table_marshal.go:2945 +0x213
github.com/aliyun/aliyun-log-go-sdk.(*LogStore).PutLogs(0xc01b9b82a0, 0xc02a2131f0, 0x0, 0x0)
/go/pkg/mod/github.com/aliyun/[email protected]/log_store.go:187 +0x8b
github.com/aliyun/aliyun-log-go-sdk.(*Client).PutLogs(0xc00010e800, 0xbc12ad, 0xf, 0xbc24a9, 0x10, 0xc02a2131f0, 0xc0341dec90, 0x40be7f)
/go/pkg/mod/github.com/aliyun/[email protected]/client_store.go:82 +0x6b
github.com/aliyun/aliyun-log-go-sdk/producer.(*IoWorker).sendToServer(0xc0000b6aa0, 0xc0112dc540, 0xc00003ce70)
/go/pkg/mod/github.com/aliyun/[email protected]/producer/io_worker.go:50 +0xdc2
created by github.com/aliyun/aliyun-log-go-sdk/producer.(*IoThreadPool).start
/go/pkg/mod/github.com/aliyun/[email protected]/producer/io_thread_pool.go:57 +0x119

@shabicheng
Copy link
Collaborator

更新到 v0.1.19 版本,这个版本修复了producer在多个并发情况下可能出现crash的问题

crimson-gao added a commit that referenced this issue Jan 24, 2024
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