Duration Store support int32
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 116
- Avg merge
- 7d 10h
- Merged PRs (30d)
- 4
Description
panic using the uatomic.Duration Store on a 32-bit system
panic: unaligned 64-bit atomic operation
goroutine 132 [running]:
runtime/internal/atomic.panicUnaligned()
/home/ubuntu/BMI-HI3521A/go/src/runtime/internal/atomic/unaligned.go:8 +0x24
runtime/internal/atomic.Store64(0x45720ac, 0x3b9aca00)
/home/ubuntu/BMI-HI3521A/go/src/runtime/internal/atomic/atomic_arm.s:301 +0x14
go.uber.org/atomic.(*Int64).Store(...)
/StreamPlugins/gopath/pkg/mod/go.uber.org/atomic@v1.9.0/int64.go:75
go.uber.org/atomic.(*Duration).Store(...)
/StreamPlugins/gopath/pkg/mod/go.uber.org/atomic@v1.9.0/duration.go:55
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the panic on a 32-bit system, then inspect the uatomic.Duration Store path and the go.uber.org/atomic Int64.Store implementation shown in the stack trace. Done means Duration.Store works without an unaligned 64-bit atomic panic on 32-bit systems, with relevant tests passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100