Segmentation Violation when Creating User #11591

Closed
opened 2025-11-02 09:41:57 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @julmb on GitHub (Sep 4, 2023).

Description

I am trying to create a user via the command-line:

sudo docker exec --user git gitea_main_1 gitea admin user create --username test

I get the following result:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x50ff9a]

goroutine 1 [running]:
fmt.Fprintf({0x0, 0x0}, {0x32882e7, 0x12}, {0xc002726780, 0x1, 0x1})
	/usr/local/go/src/fmt/print.go:225 +0x7a
code.gitea.io/gitea/cmd.RunMainApp(0xc00280e8c0, {0xc0000521e0?, 0x4?, 0xc002726978?})
	/go/src/code.gitea.io/gitea/cmd/main.go:23 +0xc7
main.main()
	/go/src/code.gitea.io/gitea/main.go:153 +0xc2b

Gitea Version

1.20.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian 5.10.191-1

How are you running Gitea?

I am using Gitea 1.20.3 from Docker Hub: https://hub.docker.com/layers/gitea/gitea/1.20.3/images/sha256-eda9ebe211772fd2a47c02a7f828eb5c957f5812043a7ff03e4e2780a850554b

Database

SQLite

Originally created by @julmb on GitHub (Sep 4, 2023). ### Description I am trying to create a user via the command-line: ``` sudo docker exec --user git gitea_main_1 gitea admin user create --username test ``` I get the following result: ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x50ff9a] goroutine 1 [running]: fmt.Fprintf({0x0, 0x0}, {0x32882e7, 0x12}, {0xc002726780, 0x1, 0x1}) /usr/local/go/src/fmt/print.go:225 +0x7a code.gitea.io/gitea/cmd.RunMainApp(0xc00280e8c0, {0xc0000521e0?, 0x4?, 0xc002726978?}) /go/src/code.gitea.io/gitea/cmd/main.go:23 +0xc7 main.main() /go/src/code.gitea.io/gitea/main.go:153 +0xc2b ``` ### Gitea Version 1.20.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Debian 5.10.191-1 ### How are you running Gitea? I am using Gitea 1.20.3 from Docker Hub: https://hub.docker.com/layers/gitea/gitea/1.20.3/images/sha256-eda9ebe211772fd2a47c02a7f828eb5c957f5812043a7ff03e4e2780a850554b ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 09:41:57 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Sep 4, 2023):

Duplicate of #26615

It should have been fixed by "Set errwriter for urfave/cli v1 #26616"

You can use the nightly build.

@wxiaoguang commented on GitHub (Sep 4, 2023): Duplicate of #26615 It should have been fixed by "Set errwriter for urfave/cli v1 #26616" You can use the nightly build.
Author
Owner

@julmb commented on GitHub (Sep 4, 2023):

Ah, I looked around for a few minutes but did not see #26615, sorry for the duplicate.

@julmb commented on GitHub (Sep 4, 2023): Ah, I looked around for a few minutes but did not see #26615, sorry for the duplicate.
Author
Owner

@wxiaoguang commented on GitHub (Sep 5, 2023):

Never mind. Indeed it's a bug, sorry for the inconvenience.

@wxiaoguang commented on GitHub (Sep 5, 2023): Never mind. Indeed it's a bug, sorry for the inconvenience.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11591