thomiceli / opengist

Self-hosted pastebin powered by Git, open-source alternative to Github Gist.
https://opengist.io
GNU Affero General Public License v3.0
1.89k stars 100 forks source link

opengist crash on armv7 #344

Open novaws opened 1 month ago

novaws commented 1 month ago

Good afternoon, when I try to create a note the application crashes.

panic: unaligned 64-bit atomic operation

goroutine 27 [running]:
runtime/internal/atomic.panicUnaligned()
        /opt/hostedtoolcache/go/1.22.7/x64/src/runtime/internal/atomic/unaligned.go:8 +0x24
runtime/internal/atomic.Xadd64(0x4b861e4, 0x0)
        /opt/hostedtoolcache/go/1.22.7/x64/src/runtime/internal/atomic/atomic_arm.s:265 +0x14
github.com/blevesearch/zapx/v16.(*invertedIndexOpaque).incrementBytesWritten(...)
        /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.1.0/section_inverted_text_index.go:401
github.com/blevesearch/zapx/v16.(*invertedIndexOpaque).writeDicts(0x4b86108, 0x4d820c0)
        /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.1.0/section_inverted_text_index.go:529 +0xd20
github.com/blevesearch/zapx/v16.(*invertedTextIndexSection).Persist(0x263c2a8, 0x489fd80, 0x4d820c0)
        /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.1.0/section_inverted_text_index.go:54 +0x38
github.com/blevesearch/zapx/v16.(*interim).convert(0x4b8a9a0)
        /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.1.0/new.go:220 +0x6b0
github.com/blevesearch/zapx/v16.(*ZapPlugin).newWithChunkMode(0x263c2a8, {0x4dd6898, 0x1, 0x1}, 0x402)
        /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.1.0/new.go:69 +0x1b4
github.com/blevesearch/zapx/v16.(*ZapPlugin).New(0x263c2a8, {0x4dd6898, 0x1, 0x1})
        /home/runner/go/pkg/mod/github.com/blevesearch/zapx/v16@v16.1.0/new.go:45 +0x40
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Batch(0x495fc08, 0x4c8f4e0)
        /home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.4.0/index/scorch/scorch.go:434 +0x62c
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Update(0x495fc08, {0x1d71cf4, 0x4c929f0})
        /home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.4.0/index/scorch/scorch.go:355 +0x108
github.com/blevesearch/bleve/v2.(*indexImpl).Index(0x4b6a050, {0x104982b, 0x1}, {0xeb7a30, 0x498a500})
        /home/runner/go/pkg/mod/github.com/blevesearch/bleve/v2@v2.4.0/index_impl.go:260 +0x180
github.com/thomiceli/opengist/internal/index.AddInIndex(0x498a500)
        /home/runner/work/opengist/opengist/internal/index/bleve.go:115 +0xb4
github.com/thomiceli/opengist/internal/db.(*Gist).AddInIndex.func1()
        /home/runner/work/opengist/opengist/internal/db/gist.go:626 +0x38
created by github.com/thomiceli/opengist/internal/db.(*Gist).AddInIndex in goroutine 60
        /home/runner/work/opengist/opengist/internal/db/gist.go:620 +0x6c

Some OS information

Linux orangepione 6.6.44-current-sunxi #1 SMP Sat Aug  3 06:54:42 UTC 2024 armv7l GNU/Linux

root@orangepione:~# cat /etc/debian_version 
12.7
root@orangepione:~#