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 while decompressing data #48

Open
liujiahao-plus opened this issue Sep 16, 2022 · 0 comments · May be fixed by #49
Open

panic while decompressing data #48

liujiahao-plus opened this issue Sep 16, 2022 · 0 comments · May be fixed by #49
Labels
bug Something isn't working

Comments

@liujiahao-plus
Copy link

runtime: pointer 0xc028c4c517 to unused region of span span.base()=0xc00b0c0000 span.limit=0xc00b0c1e00 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:

goroutine 64531572 [syscall]:
runtime.cgocall(0x22e74d0, 0xc02f3cb988)
/usr/local/go/src/runtime/cgocall.go:156 +0x5c fp=0xc02f3cb960 sp=0xc02f3cb928 pc=0x413a1c
github.com/valyala/gozstd._Cfunc_ZSTD_decompressStream_wrapper(0x7fdd94138050, 0x7fdd9416f760, 0x7fdd9414f730)
_cgo_gotypes.go:387 +0x4d fp=0xc02f3cb988 sp=0xc02f3cb960 pc=0xba10ed
github.com/valyala/gozstd.(*Reader).fillOutBuf(0xc02679a680)
/opt/tiger/compile_path/pkg/mod/github.com/valyala/[email protected]/reader.go:205 +0xa5 fp=0xc02f3cb9e0 sp=0xc02f3cb988 pc=0xba2945
github.com/valyala/gozstd.(*Reader).Read(0xc02679a680, {0xc04efd2000, 0x7fe00, 0x203005})
/opt/tiger/compile_path/pkg/mod/github.com/valyala/[email protected]/reader.go:179 +0x4b fp=0xc02f3cba10 sp=0xc02f3cb9e0 pc=0xba278b
bytes.(*Buffer).ReadFrom(0xc014e43cb0, {0x2c06000, 0xc02679a680})
/usr/local/go/src/bytes/buffer.go:204 +0x98 fp=0xc02f3cba68 sp=0xc02f3cba10 pc=0x504f38

@mhr3 mhr3 linked a pull request Jan 7, 2023 that will close this issue
@valyala valyala added the bug Something isn't working label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants