Skip to content

Gitea on FreeBSD enters a CPU busy loop (sched_yield()) before ultimately crashing #14815

Closed
@rtyler

Description

@rtyler
  • Gitea version (or commit ref): 1.13.2
  • Git version: 2.30.1
  • Operating system: FreeBSD 12.2 with gitea from pkgs
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

I had migrated the sqlite database and repositories from a Linux machine to a FreeBSD machine (both amd64 of course) and have found that the Gitea daemon will be up and running for 10-20 minutes before it goes into consuming all CPU. I attached truss (like strace) and found that the daemon was just spinning and spinning on sched_yield().

I cannot find any reproduction case, but the web UI goes completely unresponsive. Eventually, usually after I go to bed 😄 , the daemon seems to crash entirely

I'm honestly not sure how to make this a better report, if there's any useful debugging or flags I can fiddle with I'm happy to try.

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions