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

ServeBlob: Close: io: read/write on closed pipe #28215

Closed
somera opened this issue Nov 25, 2023 · 2 comments
Closed

ServeBlob: Close: io: read/write on closed pipe #28215

somera opened this issue Nov 25, 2023 · 2 comments
Labels

Comments

@somera
Copy link

somera commented Nov 25, 2023

Description

Just found this in my gitea.log

==> gitea.log <==
2023/11/25 18:13:26 ...ters/common/serve.go:29:func1() [E] ServeBlob: Close: io: read/write on closed pipe
        /source/routers/common/serve.go:29 (0x2412bd4)
        /source/routers/common/serve.go:34 (0x2412ac4)
        /source/routers/web/repo/download.go:82 (0x250818f)
        /source/routers/web/repo/download.go:135 (0x250876c)
        /usr/local/go/src/reflect/value.go:596 (0x4ef806)
                Value.call: typedmemclr(frametype, stackArgs)
        /usr/local/go/src/reflect/value.go:380 (0x4ee8d8)
                Value.Call: func (v Value) CallSlice(in []Value) []Value {
        /source/modules/web/handler.go:166 (0x1aa349b)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/chain.go:31 (0x1a9a445)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9d399)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/middleware/get_head.go:37 (0x24c21db)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:176 (0x1aa3537)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/context/context.go:222 (0x1bb6f8e)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/gitea.com/go-chi/session@v0.0.0-20230613035928-39541325faa3/session.go:257 (0x1b100d5)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:73 (0x1a9b035)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:316 (0x1a9c91a)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9d399)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:73 (0x1a9b035)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:316 (0x1a9c91a)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9d399)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/routing/logger_manager.go:122 (0x1a99c78)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/chi-middleware/proxy@v1.1.1/middleware.go:37 (0x2412153)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/routers/common/middleware.go:45 (0x2413372)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/routers/common/middleware.go:37 (0x2412ef8)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/routers/common/middleware.go:99 (0x24124b5)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /source/modules/web/handler.go:145 (0x1aa3743)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: }
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:90 (0x1a9aff4)
        /source/modules/web/route.go:171 (0x1aa4ca7)
        /usr/local/go/src/net/http/server.go:2938 (0x99962d)
                serverHandler.ServeHTTP:
        /usr/local/go/src/net/http/server.go:2009 (0x995513)
                (*conn).serve: c.setState(c.rwc, StateIdle, runHooks)
        /usr/local/go/src/runtime/asm_amd64.s:1650 (0x473ca0)
                goexit: // reading from obviously bad pointers, which would

I see this stacktrace when I open projects in Gitea. Can not be reproduces for same project.

Gitea Version

1.21.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.43.0

Operating System

Ubuntu 22.04.3 LTS x86_64

How are you running Gitea?

gitea-1.21.0-linux-amd64

Database

PostgreSQL

@somera
Copy link
Author

somera commented Dec 6, 2023

Is this issue same to #28264 ?

@wxiaoguang
Copy link
Contributor

Not related. This error happens when the client close the connection before the transfer is done. It can be safely ignored.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants