mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-17 21:52:42 -05:00
GITEA CRASHES ON PULL REQUEST #10921
Closed
opened 2025-11-02 09:22:10 -06:00 by GiteaMirror
·
6 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1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4.0-rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
type/bug
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#10921
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sabdix on GitHub (May 26, 2023).
Description
When creating a pull request, the service crashes and goes down.
Every time it does that.
I check the log and I found this:
2023/05/26 09:08:13 ...it/repo_attribute.go:306:func2() [E] [6470cb5c-2] Unable to open checker for a03997ba89f967c72e8f3981d9c8a9a529d0608a. Error: failed to run attr-check. Error: exit status 1
Stderr:
2023/05/26 09:08:41 ...les/cache/context.go:62:GetContextData() [W] [6470cb76-3] cannot get cache context when getting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:71:SetContextData() [W] [6470cb76-3] cannot get cache context when setting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:62:GetContextData() [W] [6470cb76-3] cannot get cache context when getting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:71:SetContextData() [W] [6470cb76-3] cannot get cache context when setting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:62:GetContextData() [W] [6470cb76-3] cannot get cache context when getting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:71:SetContextData() [W] [6470cb76-3] cannot get cache context when setting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:62:GetContextData() [W] [6470cb76-3] cannot get cache context when getting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:71:SetContextData() [W] [6470cb76-3] cannot get cache context when setting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:62:GetContextData() [W] [6470cb76-3] cannot get cache context when getting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:71:SetContextData() [W] [6470cb76-3] cannot get cache context when setting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:62:GetContextData() [W] [6470cb76-3] cannot get cache context when getting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:71:SetContextData() [W] [6470cb76-3] cannot get cache context when setting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:62:GetContextData() [W] [6470cb76-3] cannot get cache context when getting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
2023/05/26 09:08:41 ...les/cache/context.go:71:SetContextData() [W] [6470cb76-3] cannot get cache context when setting data: &{context.Background.WithCancel.WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer"}).WithCancel.WithValue(type pprof.labelContextKey, val {"graceful-lifecycle":"with-hammer", "pid":"6470cb76-3", "ppid":"", "process-description":"NewPullRequest: CMV_Becarios/NivelesServicioFront:2", "process-type":"normal"}) 6470cb76-3}
Gitea Version
Gitea 1.19.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://cmv365-my.sharepoint.com/:u:/g/personal/sabdi_pantoja_cajamorelia_mx/EW6Pts0eEFxNnl5oI2M3MuoBl95YkhvSDkyEVJ5k0TmCGw?e=eddert
Screenshots
No response
Git Version
git version 2.37.1.windows.1
Operating System
WINDOWS
How are you running Gitea?
Gitea is running on a Windows Server 2016 with the Windows Services Manager.
We have been working great with the tool, and every update I installed it following the next steps:
Database
Mysql
@wxiaoguang commented on GitHub (May 27, 2023):
Thank you for your report with logs.
Gitea's logger system doesn't record "panic" logs, so if you experienced other errors, the log file might not contain related information.
Could you try to stop the service, and run Gitea manually from CMD / PowerShell terminal? Then if any panic occurs, you can see detailed logs.
@Sabdix commented on GitHub (May 27, 2023):
Hi Again. I did what you said and this is what appears
panic: unaligned 64-bit atomic operation
goroutine 2745 [running]:
runtime/internal/atomic.panicUnaligned()
/usr/local/go/src/runtime/internal/atomic/unaligned.go:8 +0x2d
runtime/internal/atomic.Xadd64(0x17af64bc, 0x1)
/usr/local/go/src/runtime/internal/atomic/atomic_386.s:125 +0x11
github.com/blevesearch/zapx/v15.(*chunkedContentCoder).incrementBytesWritten(...)
/go/pkg/mod/github.com/blevesearch/zapx/v15@v15.3.8/contentcoder.go:114
github.com/blevesearch/zapx/v15.(*chunkedContentCoder).flushContents(0x17af6480)
/go/pkg/mod/github.com/blevesearch/zapx/v15@v15.3.8/contentcoder.go:143 +0x2fe
github.com/blevesearch/zapx/v15.(*chunkedContentCoder).Close(...)
/go/pkg/mod/github.com/blevesearch/zapx/v15@v15.3.8/contentcoder.go:110
github.com/blevesearch/zapx/v15.(*interim).writeDicts(0x180554a0)
/go/pkg/mod/github.com/blevesearch/zapx/v15@v15.3.8/new.go:803 +0x150f
github.com/blevesearch/zapx/v15.(*interim).convert(0x180554a0)
/go/pkg/mod/github.com/blevesearch/zapx/v15@v15.3.8/new.go:277 +0x2ff
github.com/blevesearch/zapx/v15.(*ZapPlugin).newWithChunkMode(0x5af9cd4, {0x17adef70, 0x1, 0x1}, 0x402)
/go/pkg/mod/github.com/blevesearch/zapx/v15@v15.3.8/new.go:72 +0x18b
github.com/blevesearch/zapx/v15.(*ZapPlugin).New(0x5af9cd4, {0x17adef70, 0x1, 0x1})
/go/pkg/mod/github.com/blevesearch/zapx/v15@v15.3.8/new.go:47 +0x43
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Batch(0x14e09000, 0x17c22450)
/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.3.6/index/scorch/scorch.go:412 +0x5fe
github.com/blevesearch/bleve/v2.(*indexImpl).Batch(0x15a68460, 0x17ab9ba0)
/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.3.6/index_impl.go:310 +0xa0
code.gitea.io/gitea/modules/indexer/bleve.(*FlushingBatch).Flush(0x17c67da4)
/source/modules/indexer/bleve/batch.go:52 +0x32
code.gitea.io/gitea/modules/indexer/issues.(*BleveIndexer).Index(0x14aaa3b0, {0x17adeeb8, 0x1, 0x1})
/source/modules/indexer/issues/bleve.go:226 +0x183
code.gitea.io/gitea/modules/indexer/issues.InitIssueIndexer.func1({0x17239040, 0x1, 0x14})
/source/modules/indexer/issues/indexer.go:146 +0x597
code.gitea.io/gitea/modules/queue.NewByteFIFOQueue.func1({0x17239040, 0x1, 0x14})
/source/modules/queue/queue_bytefifo.go:70 +0x3e
code.gitea.io/gitea/modules/queue.(*WorkerPool).doWork(0x13d4be60, {0x43e3f80, 0x1782cf00})
/source/modules/queue/workerpool.go:605 +0x725
code.gitea.io/gitea/modules/queue.(*WorkerPool).addWorkers.func1()
/source/modules/queue/workerpool.go:311 +0x5d
created by code.gitea.io/gitea/modules/queue.(*WorkerPool).addWorkers
/source/modules/queue/workerpool.go:309 +0x25
@wxiaoguang commented on GitHub (May 27, 2023):
That's a known bug. Could you try 1.20 nightly, or download a 64bit release if your Windows is 64bit?
@Sabdix commented on GitHub (May 27, 2023):
Yes, is 64 Bit
@Sabdix commented on GitHub (May 27, 2023):
Wich one is the 64 bit release version?
https://dl.gitea.com/gitea/1.19.3/
@Sabdix commented on GitHub (May 27, 2023):
Done Thanks!!! it got fixed!