Repository navigation
build(deps): Bump github.com/sasha-s/go-deadlock from 0.3.6 to 0.3.7 - #1280
Conversation
Bumps [github.com/sasha-s/go-deadlock](https://github.com/sasha-s/go-deadlock) from 0.3.6 to 0.3.7. - [Release notes](https://github.com/sasha-s/go-deadlock/releases) - [Commits](sasha-s/go-deadlock@v0.3.6...v0.3.7) --- updated-dependencies: - dependency-name: github.com/sasha-s/go-deadlock dependency-version: 0.3.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Dependency Security Review:
|
| Field | Value |
|---|---|
| Package | github.com/sasha-s/go-deadlock |
| Old version | v0.3.6 |
| New version | v0.3.7 |
| Commits | 4 (3 fixes + 1 chore) |
| Nature | Bug fixes, compatibility improvements, GC leak fix |
| Files changed in PR | go.mod, go.sum (version bump only) |
Upstream Changes (4 commits)
5568509— Fixtesting/synctestcompatibility (Go 1.24/1.25 build tags, timer pool disable support)b762e81— Fix concurrent lock tracking (issue build(deps): Bump google.golang.org/grpc from 1.34.0 to 1.34.1 #47):curmap now stores[]stackGIDinstead of singlestackGID, correctly tracking multiple goroutines holding read locks onRWMutex7c2aeed— Use weak pointers in lock-order map to prevent GC leak (issue build(deps): Bump github.com/gogo/protobuf from 1.3.1 to 1.3.2 #46): On Go 1.24+,beforeAfterusesweak.Pointer[byte]viaunsafeto avoid retaining mutex-containing structs3e25939— Chore: switch default branch tomain
Known Vulnerabilities
| Source | Result |
|---|---|
| OSV.dev | No vulnerabilities found |
| GitHub Advisory Database | No advisories for this package |
Library Audit Findings
| Severity | Finding | Location | Notes |
|---|---|---|---|
| INFO | Uses unsafe.Pointer for interface data extraction |
beforeafter.go:ptrFromInterface() |
Go 1.24+ only; standard pattern for extracting eface data pointer. Used solely for weak pointer creation in lock-order bookkeeping. No user-controlled input reaches this path. |
| INFO | Non-blocking timer channel drain | deadlock.go:releaseTimer() |
Changed from blocking <-t.C to select{case <-t.C: default:} for synctest compatibility. Safe change — prevents hangs in test environments. |
| INFO | cur map type change from stackGID to []stackGID |
deadlock.go |
Fixes a real concurrency bug where multiple readers' lock info was being overwritten. This is a correctness improvement. |
No CRITICAL, HIGH, MEDIUM, or LOW findings.
Codebase Impact Assessment
The library is used extensively in tenderdash (108 files import it) as a drop-in replacement for sync.Mutex and sync.RWMutex. Usage in node/deadlock.go configures Opts.Disable, Opts.OnPotentialDeadlock, and Opts.DeadlockTimeout — all unchanged APIs. No deprecated or insecure APIs are used. The new TimerPool and StandardMutex/StandardRWMutex types are additive and do not affect existing code.
Risk Assessment
Safe — This is a well-scoped bug-fix release with no breaking API changes, no new dependencies, and no security advisories. The changes improve correctness (concurrent lock tracking), prevent memory leaks (weak pointers for GC), and add forward compatibility (Go 1.24/1.25 synctest). All 15/15 CI checks pass.
Recommendation
✅ Approve and merge. No action items for the tenderdash codebase.
🤖 Co-authored by Claudius the Magnificent AI Agent
Bumps github.com/sasha-s/go-deadlock from 0.3.6 to 0.3.7.
Release notes
Sourced from github.com/sasha-s/go-deadlock's releases.
Commits
3e25939chore: switch default branch to main7c2aeedfix: use weak pointers in lock order map to prevent GC leak (issue #46) (#49)b762e81fix concurrent lock tracking (issue 47) (#48)5568509Fix/synctest compatibility (#42)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)