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

CheckAttributeReader.CheckPath hangs forever, and make the background process never end #17094

Closed
wxiaoguang opened this issue Sep 19, 2021 · 1 comment · Fixed by #17096
Closed

Comments

@wxiaoguang
Copy link
Contributor

Gitea Version

dev(main)

Git Version

2.30.2

Operating System

Linux

How are you running Gitea?

Docker & self-build

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

https://github.com/go-gitea/gitea/blob/main/modules/git/repo_attribute.go#L180

CheckAttributeReader.CheckPath hangs forever, and make the background process never end.

Related PR:
debug helper: #17082
introduced by: #16773

1 @ 0x4382d6 0x4309de 0x4634a9 0x4ceef2 0x4d11c5 0x4d11b2 0x4da225 0x4da21b 0x929585 0x93cf6d 0x1b3332d 0x1b33caf 0x146fa62 0x1478263 0x1477437 0x468c81
#	0x4634a8	internal/poll.runtime_pollWait+0x88					/usr/local/go/src/runtime/netpoll.go:229
#	0x4ceef1	internal/poll.(*pollDesc).wait+0x31					/usr/local/go/src/internal/poll/fd_poll_runtime.go:84
#	0x4d11c4	internal/poll.(*pollDesc).waitWrite+0x2c4				/usr/local/go/src/internal/poll/fd_poll_runtime.go:93
#	0x4d11b1	internal/poll.(*FD).Write+0x2b1						/usr/local/go/src/internal/poll/fd_unix.go:283
#	0x4da224	os.(*File).write+0x64							/usr/local/go/src/os/file_posix.go:49
#	0x4da21a	os.(*File).Write+0x5a							/usr/local/go/src/os/file.go:176
#	0x929584	code.gitea.io/gitea/modules/git.(*CheckAttributeReader).CheckPath+0x1a4	/Users/user/work/gitea/modules/git/repo_attribute.go:180
#	0x93cf6c	code.gitea.io/gitea/modules/git.(*Repository).GetLanguageStats+0xdcc	/Users/user/work/gitea/modules/git/repo_language_stats_nogogit.go:109
#	0x1b3332c	code.gitea.io/gitea/modules/indexer/stats.(*DBIndexer).Index+0x4cc	/Users/user/work/gitea/modules/indexer/stats/db.go:55
#	0x1b33cae	code.gitea.io/gitea/modules/indexer/stats.handle+0x8e			/Users/user/work/gitea/modules/indexer/stats/queue.go:23
#	0x146fa61	code.gitea.io/gitea/modules/queue.NewChannelUniqueQueue.func1+0x141	/Users/user/work/gitea/modules/queue/unique_queue_channel.go:71
#	0x1478262	code.gitea.io/gitea/modules/queue.(*WorkerPool).doWork+0x502		/Users/user/work/gitea/modules/queue/workerpool.go:408
#	0x1477436	code.gitea.io/gitea/modules/queue.(*WorkerPool).addWorkers.func1+0x36	/Users/user/work/gitea/modules/queue/workerpool.go:261

Screenshots

No response

@zeripath
Copy link
Contributor

I think it would be helpful to know which version of Go you've built with? and which kernel?

@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants