Skip to content

build(deps): Bump github.com/sasha-s/go-deadlock from 0.3.6 to 0.3.7 - #1280

Merged
lklimek merged 1 commit into
v1.6-devfrom
dependabot/go_modules/github.com/sasha-s/go-deadlock-0.3.7
Mar 11, 2026
Merged

lklimek merged 1 commit into
v1.6-devfrom
dependabot/go_modules/github.com/sasha-s/go-deadlock-0.3.7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 10, 2026

Copy link
Copy Markdown
Contributor

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.

v0.3.7

Release v0.3.7

Changes

  • Fix testing/synctest compatibility, including Go 1.25 support and related build tags
  • Fix concurrent lock tracking under contention
  • Prevent lock-order tracking from retaining mutex-containing structs on Go 1.24+

What's New

This release improves synctest compatibility, fixes concurrent lock tracking, and resolves a GC-retention issue in lock-order bookkeeping.

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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]>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 10, 2026
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 10, 2026
@lklimek

lklimek commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator

Dependency Security Review: github.com/sasha-s/go-deadlock v0.3.6 → v0.3.7

Change Summary

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)

  1. 5568509 — Fix testing/synctest compatibility (Go 1.24/1.25 build tags, timer pool disable support)
  2. b762e81 — Fix concurrent lock tracking (issue build(deps): Bump google.golang.org/grpc from 1.34.0 to 1.34.1 #47): cur map now stores []stackGID instead of single stackGID, correctly tracking multiple goroutines holding read locks on RWMutex
  3. 7c2aeed — 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+, beforeAfter uses weak.Pointer[byte] via unsafe to avoid retaining mutex-containing structs
  4. 3e25939 — Chore: switch default branch to main

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

@lklimek
lklimek merged commit bdda13b into v1.6-dev Mar 11, 2026
15 checks passed
@lklimek
lklimek deleted the dependabot/go_modules/github.com/sasha-s/go-deadlock-0.3.7 branch March 11, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant