{"action":"opened","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/4692","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/4692/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/4692/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/4692/events","html_url":"https://github.com/go-gitea/gitea/issues/4692","id":350039251,"node_id":"MDU6SXNzdWUzNTAwMzkyNTE=","number":4692,"title":"Gitea 1.5.0 fails to run (segfaults)","user":{"login":"tgurr","id":414984,"node_id":"MDQ6VXNlcjQxNDk4NA==","avatar_url":"https://avatars2.githubusercontent.com/u/414984?v=4","gravatar_id":"","url":"https://api.github.com/users/tgurr","html_url":"https://github.com/tgurr","followers_url":"https://api.github.com/users/tgurr/followers","following_url":"https://api.github.com/users/tgurr/following{/other_user}","gists_url":"https://api.github.com/users/tgurr/gists{/gist_id}","starred_url":"https://api.github.com/users/tgurr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgurr/subscriptions","organizations_url":"https://api.github.com/users/tgurr/orgs","repos_url":"https://api.github.com/users/tgurr/repos","events_url":"https://api.github.com/users/tgurr/events{/privacy}","received_events_url":"https://api.github.com/users/tgurr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-13T13:52:31Z","updated_at":"2018-08-13T13:52:31Z","closed_at":null,"author_association":"NONE","body":"- Gitea version (or commit ref): 1.5.0\r\n- Git version: 2.18.0\r\n- Operating system: Linux\r\n- Database (use `[x]`):\r\n  - [ ] PostgreSQL\r\n  - [x] MySQL\r\n  - [ ] MSSQL\r\n  - [x] SQLite\r\n- Can you reproduce the bug at https://try.gitea.io:\r\n  - [ ] Yes (provide example URL)\r\n  - [ ] No\r\n  - [x] Not relevant\r\n- Log gist:\r\n\r\n```\r\nAug 13 15:39:19 localhost systemd[1]: Started Gitea (Git with a cup of tea).\r\nAug 13 15:39:19 localhost gitea[23535]: panic: runtime error: invalid memory address or nil pointer dereference\r\nAug 13 15:39:19 localhost gitea[23535]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7be913]\r\nAug 13 15:39:19 localhost gitea[23535]: goroutine 1 [running]:\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/vendor/gopkg.in/ini%2ev1.(*Key).transformValue(0xc4202d2ea0, 0xc4202cc691, 0x28, 0xc4204cce48, 0x4ac519)\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/vendor/gopkg.in/ini.v1/key.go:123 +0xa3\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/vendor/gopkg.in/ini%2ev1.(*Key).String(0xc4202d2ea0, 0xc4202cb320, 0x15)\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/vendor/gopkg.in/ini.v1/key.go:130 +0x3d\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/vendor/gopkg.in/ini%2ev1.(*Key).MustString(0xc4202d2ea0, 0xc4202cb320, 0x15, 0x1, 0xc4202cb320)\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/vendor/gopkg.in/ini.v1/key.go:202 +0x2f\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/modules/setting.NewContext()\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/modules/setting/setting.go:1151 +0x4526\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/routers.GlobalInit()\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/routers/init.go:47 +0x4a\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/cmd.runWeb(0xc42036ea00, 0x0, 0x0)\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/cmd/web.go:83 +0xa8\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x10846a0, 0x1270720, 0xc42036ea00, 0xc420094e00, 0x0)\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xad\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x1217d01, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x123677a, 0x16, 0x0, ...)\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0xa0e\r\nAug 13 15:39:19 localhost gitea[23535]: code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc42001a340, 0xc4200b4040, 0x4, 0x4, 0x0, 0x0)\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x5b8\r\nAug 13 15:39:19 localhost gitea[23535]: main.main()\r\nAug 13 15:39:19 localhost gitea[23535]:         /var/tmp/paludis/build/net-gitea-1.5.0/work/build/src/code.gitea.io/gitea/main.go:52 +0x40e\r\nAug 13 15:39:19 localhost systemd[1]: gitea.service: Main process exited, code=exited, status=2/INVALIDARGUMENT\r\nAug 13 15:39:19 localhost systemd[1]: gitea.service: Failed with result 'exit-code'.\r\n```\r\n\r\n## Description\r\n\r\nTrying to run 1.5.0 after compiling using go 1.10.3 results in the following error message. Compiling and running previous Gitea 1.4.3 with the same options works fine. I ran into this when trying to upgrade an instance with 1.4.3 to 1.5.0, but it's also reproducible on another host with no previous Gitea installation/data present."}}
{"actor":{"display_login":"tgurr"}}