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

Fatal error: unknown pc caller #17

Closed
comboed opened this issue Jun 5, 2023 · 2 comments
Closed

Fatal error: unknown pc caller #17

comboed opened this issue Jun 5, 2023 · 2 comments

Comments

@comboed
Copy link

comboed commented Jun 5, 2023

Panic occurs after about 10 minutes of running tool

runtime: g 1978: unexpected return pc for github.com/valyala/fasthttp.(*HostClient).Do called from 0x2c5d7
stack: frame={sp:0xc004605d18, fp:0xc004605d78} stack=[0xc004604000,0xc004606000)
0x000000c004605c18:  0x000000c00270fc80  0x000000000041023f <runtime.mallocgc+0x000000000000063f>
0x000000c004605c28:  0x0000000000000000  0x0000000000000000
0x000000c004605c38:  0x000000c0049ff500  0x000000c0018e8a00
0x000000c004605c48:  0x000000c001d23340  0x000000c001f47980
0x000000c004605c58:  0x00007fccdafb8d28  0x0000000000000040
0x000000c004605c68:  0x000000c000880400  0x000000c00a79cf80
0x000000c004605c78:  0x000000c00118fa00  0x000000c00270fca8
0x000000c004605c88:  0xc116af33d41fb7c8  0x0000005c362483be
0x000000c004605c98:  0x000000000095b120  0x000000c004605d08
0x000000c004605ca8:  0x00000000006465ba <github.com/valyala/fasthttp.(*HostClient).do+0x00000000000000ba>  0x000000c0015111e0
0x000000c004605cb8:  0x000000c001513880  0x000000c00151e380
0x000000c004605cc8:  0x000000000070d8d0  0x0000000000000006
0x000000c004605cd8:  0x000000000000003f  0x0000000000000000
0x000000c004605ce8:  0x0000000000000000  0x0000000000000001
0x000000c004605cf8:  0x000000c00a79cf80  0x0000000000000000
0x000000c004605d08:  0x000000c004605d68  0x0000000000646311 <github.com/valyala/fasthttp.(*HostClient).Do+0x0000000000000091>
0x000000c004605d18: <0x000000c00270fd68  0x0000000000451ed0 <runtime.concatstring2+0x0000000000000050>
0x000000c004605d28:  0x000000c00118fb48  0x0000000000000005
0x000000c004605d38:  0x0000000000000002  0x0000000000000000
0x000000c004605d48:  0x0000000000000000  0x000000000070d948
0x000000c004605d58:  0x000000000000003f  0x000000c00151e380
0x000000c004605d68:  0x000000c004605fb8 !0x000000000002c5d7
0x000000c004605d78: >0x0000000000004aba  0x000000c001513880
0x000000c004605d88:  0x00000000006df950  0x000000c0002ebdd0
0x000000c004605d98:  0x0000000000000000  0x0000000000000000
0x000000c004605da8:  0x0000000000000000  0x0000000000000002
0x000000c004605db8:  0x0000000000000000  0x0000000000000000
0x000000c004605dc8:  0x0000000000000000  0x0000000000000006
0x000000c004605dd8:  0x0000000000000000  0x0000000000000041
0x000000c004605de8:  0x0000000000000000  0x000000000000003f
0x000000c004605df8:  0x0000000000000050  0x0000000000000000
0x000000c004605e08:  0x0000000000000000  0x0000000000000000
0x000000c004605e18:  0x0000000000000000  0x0000000000000000
0x000000c004605e28:  0x0000000000000000  0x000000c00151e380
0x000000c004605e38:  0x000000c0015111e0  0x000000c0002ebdd0
0x000000c004605e48:  0x0000000000000000  0x000000c0013c00a0
0x000000c004605e58:  0x000000c001513880  0x0000000000000000
0x000000c004605e68:  0x0000000000000000  0x000000c0013c00f0
fatal error: unknown caller pc

Stack:

untime stack:
runtime.throw({0x6e16d4?, 0x8d0220?})
        /usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0x7fcc91ffa770 sp=0x7fcc91ffa740 pc=0x436d7d
runtime.gentraceback(0x10?, 0x751070?, 0x0?, 0xc00118fa00, 0x0, 0x0, 0x7fffffff, 0x7fcc91ffaca8, 0x7fcc9062ce18?, 0x0)
        /usr/local/go/src/runtime/traceback.go:270 +0x1bb0 fp=0x7fcc91ffaac8 sp=0x7fcc91ffa770 pc=0x45b4f0
runtime.scanstack(0xc00118fa00, 0xc000029238)
        /usr/local/go/src/runtime/mgcmark.go:804 +0x1f2 fp=0x7fcc91ffacd0 sp=0x7fcc91ffaac8 pc=0x4204f2
runtime.markroot.func1()
        /usr/local/go/src/runtime/mgcmark.go:239 +0xb5 fp=0x7fcc91ffad20 sp=0x7fcc91ffacd0 pc=0x41f2f5
runtime.markroot(0xc000029238, 0x794, 0x1)
        /usr/local/go/src/runtime/mgcmark.go:213 +0x1a5 fp=0x7fcc91ffadc0 sp=0x7fcc91ffad20 pc=0x41efa5
runtime.gcDrain(0xc000029238, 0x3)
        /usr/local/go/src/runtime/mgcmark.go:1069 +0x39f fp=0x7fcc91ffae20 sp=0x7fcc91ffadc0 pc=0x42109f
runtime.gcBgMarkWorker.func2()
        /usr/local/go/src/runtime/mgc.go:1348 +0xad fp=0x7fcc91ffae70 sp=0x7fcc91ffae20 pc=0x41d5ad
runtime.systemstack()
        /usr/local/go/src/runtime/asm_amd64.s:496 +0x49 fp=0x7fcc91ffae78 sp=0x7fcc91ffae70 pc=0x465969
@4kills
Copy link
Owner

4kills commented Jan 18, 2024

Sorry for the late reply, can you check again with the latest version of this (and libdeflate)? Mind that the installation instructions have changed. You now need to install libdeflate separately on your system (however, this ensures the latest-version).

@4kills
Copy link
Owner

4kills commented Jan 19, 2024

This bug seems to stem from an older version of the underlying libdeflate library. If you update this library (use V2!) and libdeflate, the bug is likely resolved. Please feel free to re-open this issue if the bug persists

@4kills 4kills closed this as completed Jan 19, 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