Skip to content

proc: do not nest memCache objects - #4418

Merged
derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:memcacheflat
Aug 13, 2026
Merged

derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:memcacheflat

Conversation

@aarzilli

Copy link
Copy Markdown
Member

This addresses #4416. With the way we use memCache it is rare that we
are going to use anything but the topmost memCache object so we should
avoid nesting them completely.

If #4416 is actually caused by some infinite recursion in our code this
will not fix it but hopefully it will give us a better stacktrace to
analyze.

Fixes #4416

@derekparker

Copy link
Copy Markdown
Member

Could you add a sanity check test for the nesting please.

This addresses go-delve#4416. With the way we use memCache it is rare that we
are going to use anything but the topmost memCache object so we should
avoid nesting them completely.
If go-delve#4416 is actually caused by some infinite recursion in our code this
will not fix it but hopefully it will give us a better stacktrace to
analyze.

Fixes go-delve#4416
@aarzilli

Copy link
Copy Markdown
Member Author

Could you add a sanity check test for the nesting please.

Done.

@derekparker derekparker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekparker
derekparker merged commit bea7188 into go-delve:master Aug 13, 2026
3 of 4 checks passed
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
delve 1.27.2

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* proc/native: update Windows syscall generator by @typesanitizer in go-delve/delve#4404
* *: add scripts to setup / run eval fuzzer and run in CI by @derekparker in go-delve/delve#4412
* proc: export LoadFullValue as return-by-value helper by @derekparker in go-delve/delve#4411
* build: pin github actions to commit shas and declare workflow permissions by @Totara-thib in go-delve/delve#4405
* build: add plumber workflow security check by @Totara-thib in go-delve/delve#4406
* pkg/proc: Defer pointer cast to syscall invoking function by @typesanitizer in go-delve/delve#4414
* service/dap: print "ps aux" before exiting tests by @aarzilli in go-delve/delve#4417
* proc: do not nest memCache objects by @aarzilli in go-delve/delve#4418
* ci: fail early when a release is already published by @FranciscoPombal in go-delve/delve#4408
* release: make interrupted draft uploads rerunnable by @FranciscoPombal in go-delve/delve#4409
* build(deps): bump github.com/cilium/ebpf from 0.11.0 to 0.22.0 by @dependabot[bot] in go-delve/delve#4422
* ci: upgrade GitHub Actions and pin GoReleaser by @derekparker in go-delve/delve#4427
* proc: advance through FreeBSD process snapshots by @typesanitizer in go-delve/delve#4421
* service/dap: honor the frame and goroutine of the SetVariable scope by @larrasket in go-delve/delve#4419
* tests: report error with t.Fatal if we can't compile a fixture by @aarzilli in go-delve/delve#4424
* debugger: close resumeNotify early with the halt command by @aarzilli in go-delve/delve#4425
* ci: upload fuzz crashers as GitHub Actions artifacts by @derekparker in go-delve/delve#4428
* tests: regenerate capslock by @aarzilli in go-delve/delve#4426
* ci: run the FreeBSD tests on GitHub Actions by @neilpang in go-delve/delve#4432
* terminal,service,proc: add set next statement (jump) command by @larrasket in go-delve/delve#4434
* proc/native: poll wait4 on FreeBSD to avoid a lost wakeup by @neilpang in go-delve/delve#4435
* proc: fix infinite loop in mapIteratorSwiss.next by @aarzilli in go-delve/delve#4433
* proc: do not call debuginfod-find right after attach by @aarzilli in go-delve/delve#4431
* dap: add types command to list program types by @larrasket in go-delve/delve#4439
* gobuild: keep -C first for test builds by @cuishuang in go-delve/delve#4444
* proc: fix range-over-func next test on linux/loong64 by @loongson-zn in go-delve/delve#4441
* proc,service: emit events while calling DownloadLibraryDebugInfo by @aarzilli in go-delve/delve#4438
* goversion: format versioned development builds correctly by @cuishuang in go-delve/delve#4445
* *: v1.27.2 by @derekparker in go-delve/delve#4446

## New Contributors
* @Totara-thib made their first contribution in go-delve/delve#4405
* @dependabot[bot] made their first contribution in go-delve/delve#4422
* @neilpang made their first contribution in go-delve/delve#4432
* @loongson-zn made their first contribution in go-delve/delve#4441

**Curated Changelog**: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1272-2026-09-08
**Full Changelog**: https://github.com/go-delve/delve/compare/v1.27.1...v1.27.2</pre>
  <p>View the full release notes at <a href="https://github.com/go-delve/delve/releases/tag/v1.27.2">https://github.com/go-delve/delve/releases/tag/v1.27.2</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!18816
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

telemetry report: stack overflow due to too many (infinite?) nested memCaches

2 participants