Skip to content

gitea crashing #403

Description

@stratacast

With the latest build in trunk, gitea is crashing:

[ Jun  6 04:48:21 Executing start method ("/opt/local/sbin/gitea web"). ]
2025/06/06 04:48:21 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 73479
2025/06/06 04:48:21 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.0 built with GNU Make 4.4.1, go1.24.3 : sqlite, sqlite_unlock_notify
2025/06/06 04:48:21 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2025/06/06 04:48:21 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /opt/local/sbin/gitea
2025/06/06 04:48:21 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /opt/local/share/gitea
2025/06/06 04:48:21 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /opt/local/etc/gitea
2025/06/06 04:48:21 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /opt/local/etc/gitea/conf/app.ini
2025/06/06 04:48:21 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
fatal error: concurrent map read and map write

goroutine 1 [running]:
internal/runtime/maps.fatal({0x3da3914?, 0xc001c0c0ec?})
	/opt/local/go124/src/runtime/panic.go:1058 +0x18
code.gitea.io/gitea/modules/log.(*LoggerImpl).Log(0xc000b75a90, 0x2, 0x3, {0x3d5dd65, 0x1a}, {0xc001b1f4a8, 0x2, 0x3587680?})
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/modules/log/logger_impl.go:205 +0x291
code.gitea.io/gitea/modules/log.Log(0xc001d9f968?, 0x3, {0x3d5dd65, 0x1a}, {0xc001b1f4a8, 0x2, 0x2})
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/modules/log/logger_global.go:21 +0x85
code.gitea.io/gitea/modules/log.Info(...)
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/modules/log/logger_global.go:41
code.gitea.io/gitea/routers.InitWebInstalled({0x443f710, 0xc001df6330})
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/routers/init.go:116 +0x10c
code.gitea.io/gitea/cmd.serveInstalled(0xc0006d1680)
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/cmd/web.go:194 +0x92c
code.gitea.io/gitea/cmd.runWeb(0xc0006d1680)
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/cmd/web.go:262 +0x1fd
code.gitea.io/gitea/cmd.prepareSubcommandWithConfig.prepareWorkPathAndCustomConf.func1(0xc0006d1680)
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/cmd/main.go:111 +0x1e3
github.com/urfave/cli/v2.(*Command).Run(0x6246a40, 0xc0006d1680, {0xc001bb92a0, 0x1, 0x1})
	/home/pbulk/build-disk/www/gitea/work/.gopath/pkg/mod/github.com/urfave/cli/[email protected]/command.go:279 +0x7be
github.com/urfave/cli/v2.(*Command).Run(0xc001bbdb80, 0xc0006d13c0, {0xc000050140, 0x2, 0x2})
	/home/pbulk/build-disk/www/gitea/work/.gopath/pkg/mod/github.com/urfave/cli/[email protected]/command.go:272 +0xa45
github.com/urfave/cli/v2.(*App).RunContext(0xc0006aca00, {0x443f4a8, 0x6650a60}, {0xc000050140, 0x2, 0x2})
	/home/pbulk/build-disk/www/gitea/work/.gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:337 +0x58b
github.com/urfave/cli/v2.(*App).Run(...)
	/home/pbulk/build-disk/www/gitea/work/.gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:311
code.gitea.io/gitea/cmd.RunMainApp(0xc0006aca00, {0xc000050140?, 0xc001a927d0?, 0xc000002380?})
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/cmd/main.go:172 +0x39
main.main()
	/home/pbulk/build-disk/www/gitea/work/gitea-1.22.0/main.go:46 +0x79

And it goes on

Activity

  1. jperkin commented on Jun 6, 2025

    @jperkin
    Collaborator

    Looks like a known issue that should be fixed with NetBSD@40dc549. That is currently building, I'll let you know when the repository has been updated.

  2. self-assigned this
    on Jun 6, 2025
  3. jperkin commented on Jun 9, 2025

    @jperkin
    Collaborator

    trunk repository update has been published and a newer fixed version is now available.

  4. added a commit that references this issue on Dec 4, 2025
  5. added a commit that references this issue on May 22, 2026
  6. added a commit that references this issue on Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions