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

1.1.0 does not start due to a SIGSEGV #1168

Closed
2 of 6 tasks
freswa opened this issue Mar 9, 2017 · 20 comments · Fixed by #1690
Closed
2 of 6 tasks

1.1.0 does not start due to a SIGSEGV #1168

freswa opened this issue Mar 9, 2017 · 20 comments · Fixed by #1690
Labels
issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile type/bug
Milestone

Comments

@freswa
Copy link

freswa commented Mar 9, 2017

  • Gitea version (or commit ref): 1.1.0
  • Git version:
  • Operating system: Arch Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
Mar 09 21:51:59 git systemd[1]: Started Gitea (Git with a cup of tea).
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [T] Custom path: /usr/bin/custom
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [T] Log path: /var/log/gitea
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [I] Gitea v1.1.0 built with: bindata, sqlite
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table user column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table user Column max_repo_creation db default is '-1'::integer, struct default is -1
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table user Column allow_create_organization db default is , struct default is true
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table user Column diff_view_style db default is '''::character varying', struct default is ''
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table public_key column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table access_token column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table deploy_key column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table collaboration column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table access column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table upload column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table watch column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table star column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table follow column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table action column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table pull_request column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table comment column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table attachment column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table label column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue_label column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table milestone column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table mirror column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table release column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table login_source column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table webhook column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table hook_task column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table team column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table org_user column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table team_user column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table team_repo column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table notice column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table email_address column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue_user column id db type is SERIAL, struct type is BIGSERIAL
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repo_unit column config db type is JSON, struct type is TEXT
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table access_token has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table access_token has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table action has column act_email but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table action has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table attachment has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table collaboration has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table deploy_key has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table deploy_key has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue has column deadline but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue_user has column repo_id but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue_user has column milestone_id but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue_user has column is_poster but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table issue_user has column is_closed but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table login_source has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table login_source has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table comment has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table milestone has column deadline but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table milestone has column closed_date but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table mirror has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table mirror has column next_update but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table release has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table notice has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table public_key has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table public_key has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table pull_request has column merged but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column enable_wiki but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column enable_external_wiki but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column external_wiki_url but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column enable_issues but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column enable_external_tracker but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column external_tracker_format but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column enable_pulls but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column external_tracker_style but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table repository has column external_tracker_url but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table webhook has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table webhook has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table user has column created but struct has not related field
Mar 09 21:51:59 git gitea[1148]: 2017/03/09 21:51:59 [W] Table user has column updated but struct has not related field
Mar 09 21:51:59 git gitea[1148]: fatal error: unexpected signal during runtime execution
Mar 09 21:51:59 git gitea[1148]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x47 pc=0x3c2a4dab179]
Mar 09 21:51:59 git gitea[1148]: runtime stack:
Mar 09 21:51:59 git gitea[1148]: runtime.throw(0x1363e43, 0x2a)
Mar 09 21:51:59 git gitea[1148]:         /usr/local/go/src/runtime/panic.go:596 +0x95
Mar 09 21:51:59 git gitea[1148]: runtime.sigpanic()
Mar 09 21:51:59 git gitea[1148]:         /usr/local/go/src/runtime/signal_unix.go:274 +0x2db
Mar 09 21:51:59 git gitea[1148]: goroutine 112 [syscall, locked to thread]:
Mar 09 21:51:59 git gitea[1148]: runtime.cgocall(0xfc1840, 0xc4202a4ab0, 0x1362194)
Mar 09 21:51:59 git gitea[1148]:         /usr/local/go/src/runtime/cgocall.go:131 +0xe2 fp=0xc4202a4a70 sp=0xc4202a4a30
Mar 09 21:51:59 git gitea[1148]: net._C2func_getaddrinfo(0x3c28c0008c0, 0x0, 0xc420645320, 0xc42000e148, 0x0, 0x0, 0x0)
Mar 09 21:51:59 git gitea[1148]:         net/_obj/_cgo_gotypes.go:86 +0x68 fp=0xc4202a4ab0 sp=0xc4202a4a70
Mar 09 21:51:59 git gitea[1148]: net.cgoLookupIPCNAME.func2(0x3c28c0008c0, 0x0, 0xc420645320, 0xc42000e148, 0x0, 0x0, 0x0)
Mar 09 21:51:59 git gitea[1148]:         /usr/local/go/src/net/cgo_unix.go:151 +0x171 fp=0xc4202a4b10 sp=0xc4202a4ab0
Mar 09 21:51:59 git gitea[1148]: net.cgoLookupIPCNAME(0xc42063de60, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
Mar 09 21:51:59 git gitea[1148]:         /usr/local/go/src/net/cgo_unix.go:151 +0x1bd fp=0xc4202a4c10 sp=0xc4202a4b10
Mar 09 21:51:59 git systemd[1]: gitea.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 09 21:51:59 git systemd[1]: gitea.service: Unit entered failed state.
Mar 09 21:51:59 git systemd[1]: gitea.service: Failed with result 'exit-code'.
Mar 09 21:52:00 git systemd[1]: gitea.service: Service hold-off time over, scheduling restart.
Mar 09 21:52:00 git systemd[1]: Stopped Gitea (Git with a cup of tea).

Description

Gitea does not start since updating to 1.1.0 (prebuild version from release page)

@tboerger
Copy link
Member

tboerger commented Mar 9, 2017

I can't confirm the segmentation violation, https://try.gitea.io running on Alpine works fine, locally testing on macOS works fine and the same for a local Docker container based on ubuntu:16.04.

@tboerger tboerger added this to the 1.1.1 milestone Mar 9, 2017
@freswa
Copy link
Author

freswa commented Mar 9, 2017

And this happens with an empty DB and empty data dirs:

2017/03/09 22:58:35 [I] Gitea v1.1.0 built with: bindata, sqlite
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x47 pc=0x3e20a5ee179]

runtime stack:
runtime.throw(0x1363e43, 0x2a)
	/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
	/usr/local/go/src/runtime/signal_unix.go:274 +0x2db

goroutine 12 [syscall, locked to thread]:
runtime.cgocall(0xfc1840, 0xc42003bab0, 0x1362194)
	/usr/local/go/src/runtime/cgocall.go:131 +0xe2 fp=0xc42003ba70 sp=0xc42003ba30
net._C2func_getaddrinfo(0x3e1fc0008c0, 0x0, 0xc420161bc0, 0xc42000e070, 0x0, 0x0, 0x0)
	net/_obj/_cgo_gotypes.go:86 +0x68 fp=0xc42003bab0 sp=0xc42003ba70
net.cgoLookupIPCNAME.func2(0x3e1fc0008c0, 0x0, 0xc420161bc0, 0xc42000e070, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/cgo_unix.go:151 +0x171 fp=0xc42003bb10 sp=0xc42003bab0
net.cgoLookupIPCNAME(0xc42025de80, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/cgo_unix.go:151 +0x1bd fp=0xc42003bc10 sp=0xc42003bb10
net.cgoLookupIP(0x1c74340, 0xc420016400, 0xc42025de80, 0x9, 0xc420180048, 0x40446e, 0xc4205cc608, 0xc4205cc618, 0xc4205cc6a0, 0x418daf)
	/usr/local/go/src/net/cgo_unix.go:209 +0x3a1 fp=0xc42003bd78 sp=0xc42003bc10
net.(*Resolver).lookupIP(0x238c1a8, 0x1c74340, 0xc420016400, 0xc42025de80, 0x9, 0xc4205a2340, 0xc4205cc648, 0x4364de, 0xc4205a2340, 0x200000003)
	/usr/local/go/src/net/lookup_unix.go:69 +0x125 fp=0xc42003bde8 sp=0xc42003bd78
net.(*Resolver).(net.lookupIP)-fm(0x1c74340, 0xc420016400, 0xc42025de80, 0x9, 0x413dcc, 0xc420226850, 0xc4205cc7b0, 0x10, 0x0)
	/usr/local/go/src/net/lookup.go:156 +0x56 fp=0xc42003be48 sp=0xc42003bde8
net.glob..func11(0x1c74340, 0xc420016400, 0xc42025deb0, 0xc42025de80, 0x9, 0x0, 0x465518, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/hook.go:19 +0x52 fp=0xc42003bea0 sp=0xc42003be48
net.(*Resolver).LookupIPAddr.func1(0xc4205cc788, 0x58157f, 0xc420180048, 0x0)
	/usr/local/go/src/net/lookup.go:162 +0x5c fp=0xc42003bf28 sp=0xc42003bea0
internal/singleflight.(*Group).doCall(0x2366a30, 0xc420062050, 0xc42025de80, 0x9, 0xc420161b00)
	/usr/local/go/src/internal/singleflight/singleflight.go:93 +0x3c fp=0xc42003bfb8 sp=0xc42003bf28
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42003bfc0 sp=0xc42003bfb8
created by internal/singleflight.(*Group).DoChan
	/usr/local/go/src/internal/singleflight/singleflight.go:86 +0x323

goroutine 1 [syscall]:
syscall.Syscall(0x4b, 0x5, 0x0, 0x0, 0xa06422, 0xc4200c80d0, 0xc420502000)
	/usr/local/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.Fdatasync(0x5, 0x0, 0x0)
	/usr/local/go/src/syscall/zsyscall_linux_amd64.go:472 +0x4a
code.gitea.io/gitea/vendor/github.com/boltdb/bolt.fdatasync(0xc4204fe000, 0x4000, 0x4000)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/boltdb/bolt/bolt_linux.go:9 +0x3a
code.gitea.io/gitea/vendor/github.com/boltdb/bolt.(*DB).init(0xc4204fe000, 0x0, 0xc4204da8f0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/boltdb/bolt/db.go:360 +0x197
code.gitea.io/gitea/vendor/github.com/boltdb/bolt.Open(0xc42024c840, 0x29, 0x180, 0xc420106da8, 0x238d6a0, 0x12d7c60, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/boltdb/bolt/db.go:194 +0x24a
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/store/boltdb.New(0x1c71840, 0x238c080, 0xc42024c5d0, 0x6, 0xc42026c230, 0x9dd2d2, 0x12e05a0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/store/boltdb/store.go:77 +0x270
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/upsidedown.(*UpsideDownCouch).Open(0xc420264980, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/upsidedown/upsidedown.go:308 +0x10c
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve.newIndexUsing(0xc420134961, 0x23, 0x1c77520, 0xc420264700, 0x13305c8, 0xb, 0x1325467, 0x6, 0x0, 0x0, ...)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index_impl.go:103 +0x5a3
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve.New(0xc420134961, 0x23, 0x1c77520, 0xc420264700, 0x1, 0x1, 0x30, 0x1271d00)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.go:205 +0x87
code.gitea.io/gitea/models.createIssueIndexer(0x1c69b40, 0xc420134000)
	/srv/app/src/code.gitea.io/gitea/models/issue_indexer.go:112 +0x350
code.gitea.io/gitea/models.InitIssueIndexer()
	/srv/app/src/code.gitea.io/gitea/models/issue_indexer.go:76 +0x166
code.gitea.io/gitea/modules/indexer.NewContext()
	/srv/app/src/code.gitea.io/gitea/modules/indexer/indexer.go:13 +0x20
code.gitea.io/gitea/routers.GlobalInit()
	/srv/app/src/code.gitea.io/gitea/routers/init.go:64 +0x3a1
code.gitea.io/gitea/cmd.runWeb(0xc420185900, 0x0, 0xc420185900)
	/srv/app/src/code.gitea.io/gitea/cmd/web.go:170 +0x9d
code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x11d46e0, 0x137beb8, 0xc420185900, 0xc42017c900, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xb9
code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x1321a4f, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1345e9a, 0x16, 0x0, ...)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0xb4b
code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc420147040, 0xc420010180, 0x4, 0x4, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x65f
main.main()
	/srv/app/src/code.gitea.io/gitea/main.go:44 +0x3cd

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1

goroutine 18 [select]:
code.gitea.io/gitea/modules/log.(*Logger).StartLogger(0xc4201765c0)
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:265 +0x2a7
created by code.gitea.io/gitea/modules/log.newLogger
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:191 +0x11f

goroutine 19 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42017d0e0, 0xc42017d140)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 20 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42017d0e0, 0xc42017d140)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 21 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42017d0e0, 0xc42017d140)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 22 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42017d0e0, 0xc42017d140)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 33 [chan receive]:
code.gitea.io/gitea/modules/notification.(*notificationService).Run(0x23644a0)
	/srv/app/src/code.gitea.io/gitea/modules/notification/notification.go:37 +0x63
created by code.gitea.io/gitea/modules/notification.init.1
	/srv/app/src/code.gitea.io/gitea/modules/notification/notification.go:31 +0x41

goroutine 50 [syscall]:
os/signal.signal_recv(0x0)
	/usr/local/go/src/runtime/sigqueue.go:116 +0x104
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.1
	/usr/local/go/src/os/signal/signal_unix.go:28 +0x41

goroutine 51 [runnable]:
code.gitea.io/gitea/modules/log.(*Logger).StartLogger(0xc42024bb80)
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:265 +0x2a7
created by code.gitea.io/gitea/modules/log.newLogger
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:191 +0x11f

goroutine 52 [select]:
code.gitea.io/gitea/modules/log.(*Logger).StartLogger(0xc42024bbc0)
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:265 +0x2a7
created by code.gitea.io/gitea/modules/log.newLogger
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:191 +0x11f

goroutine 53 [chan receive]:
code.gitea.io/gitea/modules/mailer.processMailQueue()
	/srv/app/src/code.gitea.io/gitea/modules/mailer/mailer.go:241 +0x71
created by code.gitea.io/gitea/modules/mailer.NewContext
	/srv/app/src/code.gitea.io/gitea/modules/mailer/mailer.go:273 +0xd3

goroutine 54 [chan receive]:
database/sql.(*DB).connectionOpener(0xc42048cbe0)
	/usr/local/go/src/database/sql/sql.go:837 +0x4a
created by database/sql.Open
	/usr/local/go/src/database/sql/sql.go:582 +0x212

goroutine 86 [select]:
net.(*Resolver).LookupIPAddr(0x238c1a8, 0x1c74340, 0xc420016400, 0xc42025de80, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/lookup.go:165 +0x9b1
net.(*Resolver).internetAddrList(0x238c1a8, 0x1c74340, 0xc420016400, 0x1321a1c, 0x3, 0xc42025de80, 0xe, 0x0, 0x0, 0x0, ...)
	/usr/local/go/src/net/ipsock.go:245 +0x4cc
net.(*Resolver).resolveAddrList(0x238c1a8, 0x1c74340, 0xc420016400, 0x13225ac, 0x4, 0x1321a1c, 0x3, 0xc42025de80, 0xe, 0x0, ...)
	/usr/local/go/src/net/dial.go:188 +0x6b3
net.(*Dialer).DialContext(0xc42010b590, 0x1c74340, 0xc420016400, 0x1321a1c, 0x3, 0xc42025de80, 0xe, 0x0, 0x0, 0x0, ...)
	/usr/local/go/src/net/dial.go:349 +0x247
net.(*Dialer).Dial(0xc42010b590, 0x1321a1c, 0x3, 0xc42025de80, 0xe, 0x447fe7, 0x0, 0xc42010b5c0, 0x3)
	/usr/local/go/src/net/dial.go:294 +0x75
net.Dial(0x1321a1c, 0x3, 0xc42025de80, 0xe, 0xabbbd9, 0xc42025dcb0, 0x9, 0x40f374)
	/usr/local/go/src/net/dial.go:273 +0x99
code.gitea.io/gitea/vendor/github.com/lib/pq.defaultDialer.Dial(0x1321a1c, 0x3, 0xc42025de80, 0xe, 0x8, 0x1239580, 0xc42019e240, 0xc42019e350)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/lib/pq/conn.go:92 +0x49
code.gitea.io/gitea/vendor/github.com/lib/pq.(*defaultDialer).Dial(0x238c6b8, 0x1321a1c, 0x3, 0xc42025de80, 0xe, 0x238d6a0, 0x248, 0x260, 0xc420273b80)
	<autogenerated>:14 +0x6d
code.gitea.io/gitea/vendor/github.com/lib/pq.dial(0x1c6fd80, 0x238c6b8, 0xc420161980, 0x0, 0xc42019e408, 0x0, 0x1c37710)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/lib/pq/conn.go:361 +0x3e3
code.gitea.io/gitea/vendor/github.com/lib/pq.DialOpen(0x1c6fd80, 0x238c6b8, 0xc4204762a0, 0x5e, 0x0, 0x0, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/lib/pq/conn.go:320 +0x60e
code.gitea.io/gitea/vendor/github.com/lib/pq.Open(0xc4204762a0, 0x5e, 0x0, 0x0, 0xc42025d400, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/lib/pq/conn.go:236 +0x67
code.gitea.io/gitea/vendor/github.com/lib/pq.(*drv).Open(0x238c6b8, 0xc4204762a0, 0x5e, 0x0, 0x0, 0x0, 0xc4204dc000)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/lib/pq/conn.go:44 +0x35
database/sql.(*DB).conn(0xc42048cbe0, 0x1c74340, 0xc420016400, 0x101, 0xc42003bcd0, 0x412a42, 0xc42025d6f0)
	/usr/local/go/src/database/sql/sql.go:965 +0x146
database/sql.(*DB).query(0xc42048cbe0, 0x1c74340, 0xc420016400, 0xc4204ee000, 0x16c, 0x238c6b8, 0x0, 0x0, 0x412a01, 0xc420161920, ...)
	/usr/local/go/src/database/sql/sql.go:1245 +0x5b
database/sql.(*DB).QueryContext(0xc42048cbe0, 0x1c74340, 0xc420016400, 0xc4204ee000, 0x16c, 0x238c6b8, 0x0, 0x0, 0x1, 0xc42003bda0, ...)
	/usr/local/go/src/database/sql/sql.go:1227 +0xb8
database/sql.(*DB).Query(0xc42048cbe0, 0xc4204ee000, 0x16c, 0x238c6b8, 0x0, 0x0, 0x7e584e, 0xc42048cc80, 0xc4204ee000)
	/usr/local/go/src/database/sql/sql.go:1241 +0x82
code.gitea.io/gitea/vendor/github.com/go-xorm/core.(*DB).Query(0xc4201f79c0, 0xc4204ee000, 0x16c, 0x238c6b8, 0x0, 0x0, 0xc4204ee000, 0x16c, 0x1261d01)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/go-xorm/core/db.go:79 +0x73
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.newRows(0xc420272f00, 0x131a220, 0xc4201631e0, 0x0, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/rows.go:71 +0x7b3
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Session).Rows(0xc420272f00, 0x131a220, 0xc4201631e0, 0xc42003bf60, 0x7aba82, 0xc420272f00)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_iterate.go:15 +0x3f
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Session).Iterate(0xc420272f00, 0x131a220, 0xc4201631e0, 0x137bfc0, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_iterate.go:22 +0x5e
code.gitea.io/gitea/models.DeleteOldRepositoryArchives()
	/srv/app/src/code.gitea.io/gitea/models/repo.go:1797 +0x1a5
created by code.gitea.io/gitea/modules/cron.NewContext
	/srv/app/src/code.gitea.io/gitea/modules/cron/cron.go:66 +0x1ac

goroutine 85 [running]:
	goroutine running on other thread; stack unavailable
created by code.gitea.io/gitea/modules/cron.NewContext
	/srv/app/src/code.gitea.io/gitea/modules/cron/cron.go:55 +0x2eb

goroutine 87 [select]:
code.gitea.io/gitea/vendor/github.com/gogits/cron.(*Cron).run(0xc42022a780)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/gogits/cron/cron.go:178 +0x92e
created by code.gitea.io/gitea/vendor/github.com/gogits/cron.(*Cron).Start
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/gogits/cron/cron.go:140 +0x55

@lunny lunny modified the milestones: 1.2.0, 1.1.1 Mar 10, 2017
@philfry
Copy link
Contributor

philfry commented Mar 10, 2017

+1 for me..

2017/03/10 10:41:51 Serving 127.0.0.1:3000 with pid 18539
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f5bc434960d]
runtime stack:
runtime.throw(0x1363e43, 0x2a)
/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:274 +0x2db
goroutine 557 [syscall, locked to thread]:
runtime.cgocall(0xfc1840, 0xc4201e5dd8, 0x1362194)
/usr/local/go/src/runtime/cgocall.go:131 +0xe2 fp=0xc4201e5d98 sp=0xc4201e5d58
net._C2func_getaddrinfo(0x7f5bb80008c0, 0x0, 0xc4216ef410, 0xc420937940, 0x0, 0x0, 0x0)
net/_obj/_cgo_gotypes.go:86 +0x68 fp=0xc4201e5dd8 sp=0xc4201e5d98
net.cgoLookupIPCNAME.func2(0x7f5bb80008c0, 0x0, 0xc4216ef410, 0xc420937940, 0xc42028a190, 0xc420488680, 0xc420488730)
/usr/local/go/src/net/cgo_unix.go:151 +0x171 fp=0xc4201e5e38 sp=0xc4201e5dd8
net.cgoLookupIPCNAME(0xc4216dcf70, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/cgo_unix.go:151 +0x1bd fp=0xc4201e5f38 sp=0xc4201e5e38
net.cgoIPLookup(0xc4216f87e0, 0xc4216dcf70, 0x9)
/usr/local/go/src/net/cgo_unix.go:203 +0x4d fp=0xc4201e5fc8 sp=0xc4201e5f38
runtime.goexit()

edit: gitea compiled from source works fine, though.

@lunny lunny added the issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP label Mar 10, 2017
@lunny
Copy link
Member

lunny commented Mar 10, 2017

It seems this is the prebuilt version problem? @tboerger

@mklenk
Copy link

mklenk commented Mar 16, 2017

Happens to me too on 1.1.0 with the prebuilt binary (linux-amd64):

$ ./gitea web
2017/03/16 13:27:19 [T] Custom path: /application/gitea/custom
2017/03/16 13:27:19 [T] Log path: /application/gitea/log
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f2fb464a28c]

runtime stack:
runtime.throw(0x1363e43, 0x2a)
	/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
	/usr/local/go/src/runtime/signal_unix.go:274 +0x2db

goroutine 230 [syscall, locked to thread]:
runtime.cgocall(0xfc1840, 0xc420026dd8, 0x1362194)
	/usr/local/go/src/runtime/cgocall.go:131 +0xe2 fp=0xc420026d98 sp=0xc420026d58
net._C2func_getaddrinfo(0x7f2fb0000a00, 0x0, 0xc420663560, 0xc4207e0718, 0x0, 0x0, 0x0)
	net/_obj/_cgo_gotypes.go:86 +0x68 fp=0xc420026dd8 sp=0xc420026d98
net.cgoLookupIPCNAME.func2(0x7f2fb0000a00, 0x0, 0xc420663560, 0xc4207e0718, 0xc4205da960, 0xc4203cc680, 0xc4203cc730)
	/usr/local/go/src/net/cgo_unix.go:151 +0x171 fp=0xc420026e38 sp=0xc420026dd8
net.cgoLookupIPCNAME(0xc42049e760, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/cgo_unix.go:151 +0x1bd fp=0xc420026f38 sp=0xc420026e38
net.cgoIPLookup(0xc4203e0780, 0xc42049e760, 0x19)
	/usr/local/go/src/net/cgo_unix.go:203 +0x4d fp=0xc420026fc8 sp=0xc420026f38
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420026fd0 sp=0xc420026fc8
created by net.cgoLookupIP
	/usr/local/go/src/net/cgo_unix.go:213 +0xb4

goroutine 1 [chan receive]:
text/template/parse.(*Tree).pipeline(0xc4207a4100, 0x13242e9, 0x5, 0x3)
	/usr/local/go/src/text/template/parse/parse.go:398 +0xe0c
text/template/parse.(*Tree).parseControl(0xc4207a4100, 0xc42002cc00, 0x13242e9, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/text/template/parse/parse.go:455 +0xd2
text/template/parse.(*Tree).rangeControl(0xc4207a4100, 0x1c, 0x213)
	/usr/local/go/src/text/template/parse/parse.go:499 +0x4f
text/template/parse.(*Tree).action(0xc4207a4100, 0x9, 0x211)
	/usr/local/go/src/text/template/parse/parse.go:372 +0x545
text/template/parse.(*Tree).textOrAction(0xc4207a4100, 0x1c, 0x213)
	/usr/local/go/src/text/template/parse/parse.go:349 +0x22c
text/template/parse.(*Tree).parse(0xc4207a4100)
	/usr/local/go/src/text/template/parse/parse.go:295 +0x478
text/template/parse.(*Tree).Parse(0xc4207a4100, 0xc4201c7200, 0x81d, 0x0, 0x0, 0x0, 0x0, 0xc420347bf0, 0xc4203fec60, 0x2, ...)
	/usr/local/go/src/text/template/parse/parse.go:234 +0x276
text/template/parse.Parse(0x134950a, 0x12, 0xc4201c7200, 0x81d, 0x0, 0x0, 0x0, 0x0, 0xc4203fec60, 0x2, ...)
	/usr/local/go/src/text/template/parse/parse.go:55 +0x149
text/template.(*Template).Parse(0xc42054fbc0, 0xc4201c7200, 0x81d, 0x81d, 0xc4201c7200, 0x81d)
	/usr/local/go/src/text/template/template.go:197 +0x11e
html/template.(*Template).Parse(0xc420347bc0, 0xc4201c7200, 0x81d, 0x0, 0x0, 0x0)
	/usr/local/go/src/html/template/template.go:186 +0xa6
code.gitea.io/gitea/vendor/gopkg.in/macaron%2ev1.compile(0x132c744, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc4203cf940, 0x2, 0x2, ...)
	/srv/app/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/render.go:292 +0x4aa
code.gitea.io/gitea/vendor/gopkg.in/macaron%2ev1.(*TemplateSet).Set(0xc42054a8a0, 0x1326aaa, 0x7, 0xc4204000f0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/render.go:318 +0x63
code.gitea.io/gitea/vendor/gopkg.in/macaron%2ev1.renderHandler(0x132c744, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc4203cf940, 0x2, 0x2, ...)
	/srv/app/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/render.go:385 +0x18d
code.gitea.io/gitea/vendor/gopkg.in/macaron%2ev1.Renderer(0xc420888bf8, 0x1, 0x1, 0xc4203cf920, 0x23)
	/srv/app/src/code.gitea.io/gitea/vendor/gopkg.in/macaron.v1/render.go:422 +0x172
code.gitea.io/gitea/modules/templates.Renderer(0xc420066a80, 0x11d49e0)
	/srv/app/src/code.gitea.io/gitea/modules/templates/static.go:116 +0x849
code.gitea.io/gitea/cmd.newMacaron(0xc420417040)
	/srv/app/src/code.gitea.io/gitea/cmd/web.go:106 +0x36a
code.gitea.io/gitea/cmd.runWeb(0xc420417040, 0x0, 0xc420417000)
	/srv/app/src/code.gitea.io/gitea/cmd/web.go:172 +0xa2
code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x11d46e0, 0x137beb8, 0xc420417040, 0xc42040e700, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xb9
code.gitea.io/gitea/vendor/github.com/urfave/cli.Command.Run(0x1321a4f, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1345e9a, 0x16, 0x0, ...)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/command.go:191 +0xb4b
code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc4204291e0, 0xc42000c220, 0x2, 0x2, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:241 +0x65f
main.main()
	/srv/app/src/code.gitea.io/gitea/main.go:44 +0x3cd

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1

goroutine 10 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42001b980, 0xc42001b9e0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 9 [runnable]:
code.gitea.io/gitea/modules/log.(*Logger).StartLogger(0xc420142100)
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:265 +0x2a7
created by code.gitea.io/gitea/modules/log.newLogger
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:191 +0x11f

goroutine 11 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42001b980, 0xc42001b9e0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 12 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42001b980, 0xc42001b9e0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 13 [select]:
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.AnalysisWorker(0xc42001b980, 0xc42001b9e0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:75 +0x13a
created by code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index.NewAnalysisQueue
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/analysis.go:67 +0xdf

goroutine 15 [runnable]:
code.gitea.io/gitea/modules/log.(*Logger).StartLogger(0xc4201e8580)
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:265 +0x2a7
created by code.gitea.io/gitea/modules/log.newLogger
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:191 +0x11f

goroutine 20 [chan receive]:
code.gitea.io/gitea/modules/notification.(*notificationService).Run(0x23644a0)
	/srv/app/src/code.gitea.io/gitea/modules/notification/notification.go:37 +0x63
created by code.gitea.io/gitea/modules/notification.init.1
	/srv/app/src/code.gitea.io/gitea/modules/notification/notification.go:31 +0x41

goroutine 21 [syscall]:
os/signal.signal_recv(0x0)
	/usr/local/go/src/runtime/sigqueue.go:116 +0x104
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.1
	/usr/local/go/src/os/signal/signal_unix.go:28 +0x41

goroutine 16 [runnable]:
code.gitea.io/gitea/modules/log.(*Logger).StartLogger(0xc4201e85c0)
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:265 +0x2a7
created by code.gitea.io/gitea/modules/log.newLogger
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:191 +0x11f

goroutine 22 [chan receive]:
code.gitea.io/gitea/modules/mailer.processMailQueue()
	/srv/app/src/code.gitea.io/gitea/modules/mailer/mailer.go:241 +0x71
created by code.gitea.io/gitea/modules/mailer.NewContext
	/srv/app/src/code.gitea.io/gitea/modules/mailer/mailer.go:273 +0xd3

goroutine 23 [chan receive]:
database/sql.(*DB).connectionOpener(0xc420113680)
	/usr/local/go/src/database/sql/sql.go:837 +0x4a
created by database/sql.Open
	/usr/local/go/src/database/sql/sql.go:582 +0x212

goroutine 129 [select]:
code.gitea.io/gitea/vendor/github.com/gogits/cron.(*Cron).run(0xc42040c680)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/gogits/cron/cron.go:178 +0x92e
created by code.gitea.io/gitea/vendor/github.com/gogits/cron.(*Cron).Start
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/gogits/cron/cron.go:140 +0x55

goroutine 130 [chan receive]:
code.gitea.io/gitea/models.processIssueIndexerUpdateQueue()
	/srv/app/src/code.gitea.io/gitea/models/issue_indexer.go:156 +0x60
created by code.gitea.io/gitea/models.InitIssueIndexer
	/srv/app/src/code.gitea.io/gitea/models/issue_indexer.go:92 +0x13a

goroutine 131 [chan receive]:
code.gitea.io/gitea/models.SyncMirrors()
	/srv/app/src/code.gitea.io/gitea/models/repo_mirror.go:228 +0x73
created by code.gitea.io/gitea/models.InitSyncMirrors
	/srv/app/src/code.gitea.io/gitea/models/repo_mirror.go:252 +0x35

goroutine 132 [select]:
net/http.(*Transport).getConn(0xc42004c4b0, 0xc42049e720, 0x0, 0xc4209fb7c0, 0x4, 0xc42049e760, 0x1c, 0x0, 0x0, 0x1)
	/usr/local/go/src/net/http/transport.go:913 +0xb92
net/http.(*Transport).RoundTrip(0xc42004c4b0, 0xc420203400, 0xc42004c4b0, 0x0, 0x0)
	/usr/local/go/src/net/http/transport.go:378 +0x58c
net/http.send(0xc420203400, 0x1c693c0, 0xc42004c4b0, 0x0, 0x0, 0x0, 0x0, 0x8, 0xc4207e0708, 0x413298)
	/usr/local/go/src/net/http/client.go:249 +0x162
net/http.(*Client).send(0xc420663350, 0xc420203400, 0x0, 0x0, 0x0, 0xc4207e0708, 0x0, 0x1, 0x40c53e)
	/usr/local/go/src/net/http/client.go:173 +0x108
net/http.(*Client).Do(0xc420663350, 0xc420203400, 0xa, 0x132d072, 0xa)
	/usr/local/go/src/net/http/client.go:595 +0x254
code.gitea.io/gitea/modules/httplib.(*Request).getResponse(0xc4204a2a00, 0xc4209c1a88, 0xc4209c1a80, 0xc42001c080)
	/srv/app/src/code.gitea.io/gitea/modules/httplib/httplib.go:357 +0x470
code.gitea.io/gitea/modules/httplib.(*Request).Response(0xc4204a2a00, 0x137bec0, 0xc4205b92b0, 0x0)
	/srv/app/src/code.gitea.io/gitea/modules/httplib/httplib.go:443 +0x2b
code.gitea.io/gitea/models.(*HookTask).deliver(0xc4205b92b0)
	/srv/app/src/code.gitea.io/gitea/models/webhook.go:589 +0x6f1
code.gitea.io/gitea/models.DeliverHooks.func1(0x1, 0x1263180, 0xc4205b92b0, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/models/webhook.go:620 +0x4d
code.gitea.io/gitea/vendor/github.com/go-xorm/xorm.(*Session).Iterate(0xc42046f180, 0x1263180, 0xc420063ad0, 0xc4209c1ef0, 0x0, 0x0)
	/srv/app/src/code.gitea.io/gitea/vendor/github.com/go-xorm/xorm/session_iterate.go:35 +0x182
code.gitea.io/gitea/models.DeliverHooks()
	/srv/app/src/code.gitea.io/gitea/models/webhook.go:623 +0x1ff
created by code.gitea.io/gitea/models.InitDeliverHooks
	/srv/app/src/code.gitea.io/gitea/models/webhook.go:654 +0x35

goroutine 133 [chan receive]:
code.gitea.io/gitea/models.TestPullRequests()
	/srv/app/src/code.gitea.io/gitea/models/pull.go:1084 +0x1c8
created by code.gitea.io/gitea/models.InitTestPullRequests
	/srv/app/src/code.gitea.io/gitea/models/pull.go:1105 +0x35

goroutine 134 [select]:
code.gitea.io/gitea/modules/log.(*Logger).StartLogger(0xc420143a40)
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:265 +0x2a7
created by code.gitea.io/gitea/modules/log.newLogger
	/srv/app/src/code.gitea.io/gitea/modules/log/log.go:191 +0x11f

goroutine 135 [chan receive]:
database/sql.(*Rows).awaitDone(0xc420066080, 0x1c74300, 0xc420198040)
	/usr/local/go/src/database/sql/sql.go:2121 +0x58
created by database/sql.(*Rows).initContextClose
	/usr/local/go/src/database/sql/sql.go:2116 +0x92

goroutine 228 [select]:
net.(*Resolver).LookupIPAddr(0x238c1a8, 0x1c74380, 0xc4203e03c0, 0xc42049e760, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/lookup.go:165 +0x9b1
net.(*Resolver).internetAddrList(0x238c1a8, 0x1c74380, 0xc4203e03c0, 0x1321a1c, 0x3, 0xc42049e760, 0x1c, 0x0, 0x0, 0xc4206c56c8, ...)
	/usr/local/go/src/net/ipsock.go:245 +0x4cc
net.(*Resolver).resolveAddrList(0x238c1a8, 0x1c74380, 0xc4203e03c0, 0x13225ac, 0x4, 0x1321a1c, 0x3, 0xc42049e760, 0x1c, 0x0, ...)
	/usr/local/go/src/net/dial.go:188 +0x6b3
net.(*Dialer).DialContext(0xc4204f9918, 0x1c74340, 0xc4200121e8, 0x1321a1c, 0x3, 0xc42049e760, 0x1c, 0x0, 0x0, 0x0, ...)
	/usr/local/go/src/net/dial.go:349 +0x247
net.(*Dialer).Dial(0xc4206c5918, 0x1321a1c, 0x3, 0xc42049e760, 0x1c, 0x1, 0x46000000000000, 0x55, 0x7)
	/usr/local/go/src/net/dial.go:294 +0x75
net.DialTimeout(0x1321a1c, 0x3, 0xc42049e760, 0x1c, 0x12a05f200, 0x120, 0x110, 0x130bf20, 0x413dcc)
	/usr/local/go/src/net/dial.go:280 +0xa6
code.gitea.io/gitea/modules/httplib.TimeoutDialer.func1(0x1321a1c, 0x3, 0xc42049e760, 0x1c, 0xc4206c5a58, 0x238c6b8, 0xc4206c5a60, 0x6afc3d)
	/srv/app/src/code.gitea.io/gitea/modules/httplib/httplib.go:449 +0x65
net/http.(*Transport).dial(0xc42004c4b0, 0x1c74340, 0xc4200121e8, 0x1321a1c, 0x3, 0xc42049e760, 0x1c, 0x0, 0x0, 0x0, ...)
	/usr/local/go/src/net/http/transport.go:852 +0x7b
net/http.(*Transport).dialConn(0xc42004c4b0, 0x1c74340, 0xc4200121e8, 0x0, 0xc4209fb7c0, 0x4, 0xc42049e760, 0x1c, 0x6, 0x1321244, ...)
	/usr/local/go/src/net/http/transport.go:1008 +0x1c4c
net/http.(*Transport).getConn.func4(0xc42004c4b0, 0x1c74340, 0xc4200121e8, 0xc4206633e0, 0xc42085fda0)
	/usr/local/go/src/net/http/transport.go:908 +0x78
created by net/http.(*Transport).getConn
	/usr/local/go/src/net/http/transport.go:910 +0x3a3

goroutine 212 [IO wait]:
net.runtime_pollWait(0x7f2fb6a2f5c0, 0x72, 0xc)
	/usr/local/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4201720d8, 0x72, 0x1c6c880, 0x1c64628)
	/usr/local/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4201720d8, 0xc4207ea000, 0x1000)
	/usr/local/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc420172070, 0xc4207ea000, 0x1000, 0x1000, 0x0, 0x1c6c880, 0x1c64628)
	/usr/local/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc420406338, 0xc4207ea000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/net.go:181 +0x70
net/http.(*persistConn).Read(0xc420506120, 0xc4207ea000, 0x1000, 0x1000, 0x4, 0x4573a0, 0xc42001b080)
	/usr/local/go/src/net/http/transport.go:1316 +0x14b
bufio.(*Reader).fill(0xc42001ae40)
	/usr/local/go/src/bufio/bufio.go:97 +0x117
bufio.(*Reader).Peek(0xc42001ae40, 0x1, 0xc420257be5, 0xc42014ed01, 0x4, 0xc42001aea0, 0x0)
	/usr/local/go/src/bufio/bufio.go:129 +0x67
net/http.(*persistConn).readLoop(0xc420506120)
	/usr/local/go/src/net/http/transport.go:1474 +0x196
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1117 +0xa35

goroutine 248 [runnable]:
unicode.IsPrint(0xc40000002c, 0x0)
	/usr/local/go/src/unicode/graphic.go:50 +0x8d
text/template/parse.lexInsideAction(0xc4201aed00, 0x1382998)
	/usr/local/go/src/text/template/parse/lex.go:412 +0x3a5
text/template/parse.(*lexer).run(0xc4201aed00)
	/usr/local/go/src/text/template/parse/lex.go:231 +0x58
created by text/template/parse.lex
	/usr/local/go/src/text/template/parse/lex.go:224 +0x16d

goroutine 246 [runnable]:
text/template/parse.(*lexer).emit(0xc4201ae380, 0x6)
	/usr/local/go/src/text/template/parse/lex.go:156 +0xd3
text/template/parse.lexText(0xc4201ae380, 0x13829d0)
	/usr/local/go/src/text/template/parse/lex.go:269 +0x1f2
text/template/parse.(*lexer).run(0xc4201ae380)
	/usr/local/go/src/text/template/parse/lex.go:231 +0x58
created by text/template/parse.lex
	/usr/local/go/src/text/template/parse/lex.go:224 +0x16d

goroutine 243 [runnable]:
text/template/parse.(*lexer).emit(0xc420067680, 0x6)
	/usr/local/go/src/text/template/parse/lex.go:156 +0xd3
text/template/parse.lexText(0xc420067680, 0x13829d0)
	/usr/local/go/src/text/template/parse/lex.go:269 +0x1f2
text/template/parse.(*lexer).run(0xc420067680)
	/usr/local/go/src/text/template/parse/lex.go:231 +0x58
created by text/template/parse.lex
	/usr/local/go/src/text/template/parse/lex.go:224 +0x16d

goroutine 227 [runnable]:
database/sql.(*Rows).awaitDone(0xc4204cf900, 0x1c74300, 0xc4201b5400)
	/usr/local/go/src/database/sql/sql.go:2120
created by database/sql.(*Rows).initContextClose
	/usr/local/go/src/database/sql/sql.go:2116 +0x92

goroutine 213 [select]:
net/http.(*persistConn).writeLoop(0xc420506120)
	/usr/local/go/src/net/http/transport.go:1704 +0x43a
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1118 +0xa5a

goroutine 229 [select]:
net.cgoLookupIP(0x1c74380, 0xc4203e03c0, 0xc42049e760, 0x19, 0x42fe1a, 0x42fe1a, 0x13826c8, 0x2, 0xc42002cc00, 0xc420536680)
	/usr/local/go/src/net/cgo_unix.go:214 +0x2f5
net.(*Resolver).lookupIP(0x238c1a8, 0x1c74380, 0xc4203e03c0, 0xc42049e760, 0x19, 0x40715d, 0xc4204c3ef0, 0x132ba39, 0x9, 0xc42076fe16)
	/usr/local/go/src/net/lookup_unix.go:69 +0x125
net.(*Resolver).(net.lookupIP)-fm(0x1c74380, 0xc4203e03c0, 0xc42049e760, 0x19, 0xc420536730, 0xc4205367e0, 0xc4204c3f38, 0xc42001b318, 0xc42001b2c0)
	/usr/local/go/src/net/lookup.go:156 +0x56
net.glob..func11(0x1c74380, 0xc4203e03c0, 0xc420465960, 0xc42049e760, 0x19, 0x11b1e60, 0xc42001b2c0, 0xc42076ff38, 0xffffffffffffff01, 0x4f7d03)
	/usr/local/go/src/net/hook.go:19 +0x52
net.(*Resolver).LookupIPAddr.func1(0xc42001b318, 0x0, 0x6, 0x69e)
	/usr/local/go/src/net/lookup.go:162 +0x5c
internal/singleflight.(*Group).doCall(0x2366a30, 0xc4209fb810, 0xc42049e760, 0x19, 0xc4206634d0)
	/usr/local/go/src/internal/singleflight/singleflight.go:93 +0x3c
created by internal/singleflight.(*Group).DoChan
	/usr/local/go/src/internal/singleflight/singleflight.go:86 +0x323

@Weyzu
Copy link
Contributor

Weyzu commented Mar 16, 2017

Had the same problem with prebuilt (linux-amd64). And can confirm that compiling gitea from source solves the problem.

@andreynering
Copy link
Contributor

I think this may be a cross compiling bug on Go 1.7 that was fixed on 1.8

I also faced this SIGSEGV error on a private project with 1.7. With 1.8 it doesn't happen.

@lunny lunny added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Mar 17, 2017
@lunny
Copy link
Member

lunny commented Mar 17, 2017

But v1.1 is still compiled by Go 1.7 and there is no this question?

@OlivierMary
Copy link

Hi, same problem for me, any workaround ?

@lunny
Copy link
Member

lunny commented Mar 27, 2017

@tboerger maybe we need comiple via go1.8

@camlafit
Copy link
Contributor

camlafit commented May 6, 2017

Hi

I get this error also from 1.1.1 version get from dl.gitea.io

@camlafit
Copy link
Contributor

camlafit commented May 6, 2017

Ok with 1.8.1 golang is ok

Process followed :

pkill gitea
wget https://gist.githubusercontent.com/jniltinho/8758e15a9ef80a189fce/raw/d29529feb08b4c85151868160f880d8bd308bdfc/install_golang.sh
bash ./install_golang.sh
source /etc/profile
go version
> go version go1.8.1 linux/amd64
go get -d -u code.gitea.io/gitea
cd $GOPATH/src/code.gitea.io/gitea
git checkout v1.1.1
TAGS="bindata" make generate build
mv gitea $WEB_DIR/
chmod +x $WEB_DIR/gitea
su -l git -s /bin/bash -c "$WEB_DIR/gitea web --config $WEB_DIR_CUSTOM/conf/app.ini"

I've got to do also update app.ini as #1378

@tboerger
Copy link
Member

tboerger commented May 6, 2017

Compiling from source is a totally different story as cross compiling it. Setting my mentioned build flag should already solve the issue on 1.7

@freswa
Copy link
Author

freswa commented May 6, 2017

@tboerger Where did you mention it?

@tboerger
Copy link
Member

tboerger commented May 6, 2017

@freswa on some other similar issues like #1408 (comment)

@freswa
Copy link
Author

freswa commented May 6, 2017

Thx @tboerger
GODEBUG=netdns=go works for me. @philfry Can you confirm?

@tboerger
Copy link
Member

tboerger commented May 6, 2017

@lunny so add netgo to our build tags and it should solve multiple open issues.

@tboerger
Copy link
Member

tboerger commented May 6, 2017

I have created the pull request #1690 which should solve this issue as it enforces the Go name resolution instead of CGO for cross-compiled binaries.

@philfry
Copy link
Contributor

philfry commented May 6, 2017

@freswa yep, works for me.

@freswa
Copy link
Author

freswa commented May 6, 2017

Thx @philfry
I think we can close this ticket since the fix seems to work.

@freswa freswa closed this as completed May 6, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants