这是indexloc提供的服务,不要输入任何密码
Skip to content

fiber sigsev #686

@badsgahhl

Description

@badsgahhl
2024-12-22T16:04:52.251 app[0801021a02e638] fra [info] panic: runtime error: invalid memory address or nil pointer dereference

2024-12-22T16:04:52.252 app[0801021a02e638] fra [info] [signal SIGSEGV: segmentation violation code=0x1 addr=0x200 pc=0x86058e]

2024-12-22T16:04:52.252 app[0801021a02e638] fra [info] goroutine 44 [running]:

2024-12-22T16:04:52.252 app[0801021a02e638] fra [info] github.com/valyala/fasthttp.(*RequestCtx).Done(...)

2024-12-22T16:04:52.252 app[0801021a02e638] fra [info] /go/pkg/mod/github.com/valyala/fasthttp@v1.58.0/server.go:2747

2024-12-22T16:04:52.252 app[0801021a02e638] fra [info] github.com/valyala/fasthttp.(*RequestCtx).Err(0x0?)

2024-12-22T16:04:52.253 app[0801021a02e638] fra [info] /go/pkg/mod/github.com/valyala/fasthttp@v1.58.0/server.go:2761 +0xe

2024-12-22T16:04:52.253 app[0801021a02e638] fra [info] github.com/danielgtaylor/huma/v2/adapters/humafiber.(*contextAdapter).Err(0xc0008bef48?)

2024-12-22T16:04:52.253 app[0801021a02e638] fra [info] /go/pkg/mod/github.com/danielgtaylor/huma/v2@v2.27.0/adapters/humafiber/humafiber.go:36 +0x1d

2024-12-22T16:04:52.254 app[0801021a02e638] fra [info] database/sql.(*Rows).awaitDone(0xc0000b54a0, {0x2ddd678, 0xc0008b16e0}, {0x0, 0x0}, {0x2ddce10, 0xc0005ed9f0})

2024-12-22T16:04:52.254 app[0801021a02e638] fra [info] /usr/local/go/src/database/sql/sql.go:3012 +0x1e8

2024-12-22T16:04:52.254 app[0801021a02e638] fra [info] created by database/sql.(*Rows).initContextClose in goroutine 35

2024-12-22T16:04:52.254 app[0801021a02e638] fra [info] /usr/local/go/src/database/sql/sql.go:2988 +0x150

We updated one of our apps to 2.27 from 2.26 and now get a SIGSEGV. We cant really reproduce this behavior locally but we use prefork true in the staging env this app is currently running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions