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

CLI segmentation fault when using gitea admin user create #26656

Closed
emmanuel-benoit opened this issue Aug 22, 2023 · 1 comment · Fixed by Cray-HPE/metal-provision#530
Closed
Labels

Comments

@emmanuel-benoit
Copy link

Description

Running gitea --config /path/to/config.ini --work-path /path/to/workdir admin user create causes a segmentation violation. No error occurs if the create is removed, or replaced with e.g. list. The problem remains if the usual create arguments (--username / --email / --password) are present.

Here is the full error:

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

goroutine 1 [running]:
fmt.Fprintf({0x0, 0x0}, {0x331ab64, 0x12}, {0xc0026fe780, 0x1, 0x1})
        /usr/local/go/src/fmt/print.go:225 +0x7a
code.gitea.io/gitea/cmd.RunMainApp(0xc0027c48c0, {0xc000128000?, 0x4?, 0xc0026fe978?})
        /source/cmd/main.go:23 +0xc7
main.main()
        /source/main.go:153 +0xc2b

No other logs are produced, as far as I can tell.

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

2.30.2

Operating System

Debian 11

How are you running Gitea?

The Gitea binary is the one provided on Github, running on amd64. It is being run as the git user, which is what the actual server runs as.

Database

MySQL

@CaiCandong
Copy link
Member

CaiCandong commented Aug 22, 2023

Duplicate of #26615
Fixed by #26616

@CaiCandong CaiCandong marked this as a duplicate of #26615 Aug 22, 2023
@yardenshoham yardenshoham closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants