Skip to content

proc: fix range-over-func next test on linux/loong64 - #4441

Merged
derekparker merged 1 commit into
go-delve:masterfrom
loongson-zn:la-dev
Sep 4, 2026
Merged

derekparker merged 1 commit into
go-delve:masterfrom
loongson-zn:la-dev

Conversation

@loongson-zn

Copy link
Copy Markdown
Contributor

Adjust stepping expectations for linux/loong64 to match the arm64 special cases in the range-over-func tests.
Tested with Go 1.26 and Go 1.27 on LoongArch.

1.Test environment:

debian@debian:~/delve$ arch
loongarch64
debian@debian:~/delve$ uname -a
Linux debian 7.1.8+deb14-loong64 #1 SMP PREEMPT Debian 7.1.8-1 (2026-08-11) loongarch64 GNU/Linux
debian@debian:~/delve$ cat /etc/os-release  
PRETTY_NAME="Debian GNU/Linux forky/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=forky
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

2.Tests before modification:

debian@debian:~/delve$ GOROOT=/usr/lib/go-1.26 PATH=/usr/lib/go-1.26/bin:PATH go test -vet=off -tags exp.linuxloong64 ./pkg/proc -run TestRangeOverFuncNext -count=1 -v

  stepping_test.go:166: at 0xbcf18 (main.TestRecur-range1) /home/debian/delve/_fixtures/rangeoverfunc.go:237
--- FAIL: TestRangeOverFuncNext (2.28s)
   --- FAIL: TestRangeOverFuncNext/TestTrickyIterAll1 (0.02s)
   --- FAIL: TestRangeOverFuncNext/TestTrickyIterAll2 (0.00s)
   --- PASS: TestRangeOverFuncNext/TestBreak1 (0.22s)
   --- PASS: TestRangeOverFuncNext/TestBreak2 (0.17s)
   --- PASS: TestRangeOverFuncNext/TestMultiCont0 (0.30s)
   --- PASS: TestRangeOverFuncNext/TestPanickyIterator1 (0.15s)
   --- PASS: TestRangeOverFuncNext/TestPanickyIterator2 (0.18s)
   --- PASS: TestRangeOverFuncNext/TestPanickyIteratorWithNewDefer (0.14s)
   --- PASS: TestRangeOverFuncNext/TestLongReturn (0.07s)
   --- PASS: TestRangeOverFuncNext/TestGotoA1 (0.19s)
   --- PASS: TestRangeOverFuncNext/TestGotoB1 (0.13s)
   --- PASS: TestRangeOverFuncNext/TestRecur (0.15s)
=== RUN   TestRangeOverFuncNextInlined
   stepping_test.go:1142: broken due to inlined symbol names
--- SKIP: TestRangeOverFuncNextInlined (0.00s)
FAIL
FAIL    github.com/go-delve/delve/pkg/proc      2.300s
FAIL

debian@debian:~/delve$ GOROOT=/usr/lib/go-1.27 PATH=/usr/lib/go-1.27/bin:PATH go test -vet=off -tags exp.linuxloong64 ./pkg/proc -run TestRangeOverFuncNext -count=1 -v

   stepping_test.go:94: next
   stepping_test.go:166: at 0xb6ce0 (main.TestRecur) /home/debian/delve/_fixtures/rangeoverfunc.go:237
   stepping_test.go:166: at 0xb6ce0 (main.TestRecur) /home/debian/delve/_fixtures/rangeoverfunc.go:237
--- FAIL: TestRangeOverFuncNextInlined (2.71s)
   --- FAIL: TestRangeOverFuncNextInlined/TestTrickyIterAll1 (0.01s)
   --- FAIL: TestRangeOverFuncNextInlined/TestTrickyIterAll2 (0.02s)
   --- PASS: TestRangeOverFuncNextInlined/TestBreak1 (0.23s)
   --- PASS: TestRangeOverFuncNextInlined/TestBreak2 (0.38s)
   --- PASS: TestRangeOverFuncNextInlined/TestMultiCont0 (0.41s)
   --- PASS: TestRangeOverFuncNextInlined/TestPanickyIterator1 (0.15s)
   --- PASS: TestRangeOverFuncNextInlined/TestPanickyIterator2 (0.17s)
   --- PASS: TestRangeOverFuncNextInlined/TestPanickyIteratorWithNewDefer (0.18s)
   --- PASS: TestRangeOverFuncNextInlined/TestLongReturn (0.03s)
   --- FAIL: TestRangeOverFuncNextInlined/TestGotoA1 (0.01s)
   --- FAIL: TestRangeOverFuncNextInlined/TestGotoB1 (0.01s)
   --- PASS: TestRangeOverFuncNextInlined/TestRecur (0.28s)
FAIL
FAIL    github.com/go-delve/delve/pkg/proc      5.061s
FAIL

3.Tests after modification

debian@debian:~/delve$ GOROOT=/usr/lib/go-1.26 PATH=/usr/lib/go-1.26/bin:PATH go test -vet=off -tags exp.linuxloong64 ./pkg/proc -run TestRangeOverFuncNext -count=1 -v
--- PASS: TestRangeOverFuncNext (2.64s)
   --- PASS: TestRangeOverFuncNext/TestTrickyIterAll1 (0.08s)
   --- PASS: TestRangeOverFuncNext/TestTrickyIterAll2 (0.05s)
   --- PASS: TestRangeOverFuncNext/TestBreak1 (0.14s)
   --- PASS: TestRangeOverFuncNext/TestBreak2 (0.29s)
   --- PASS: TestRangeOverFuncNext/TestMultiCont0 (0.25s)
   --- PASS: TestRangeOverFuncNext/TestPanickyIterator1 (0.16s)
   --- PASS: TestRangeOverFuncNext/TestPanickyIterator2 (0.14s)
   --- PASS: TestRangeOverFuncNext/TestPanickyIteratorWithNewDefer (0.15s)
   --- PASS: TestRangeOverFuncNext/TestLongReturn (0.09s)
   --- PASS: TestRangeOverFuncNext/TestGotoA1 (0.13s)
   --- PASS: TestRangeOverFuncNext/TestGotoB1 (0.12s)
   --- PASS: TestRangeOverFuncNext/TestRecur (0.17s)
=== RUN   TestRangeOverFuncNextInlined
   stepping_test.go:1142: broken due to inlined symbol names
--- SKIP: TestRangeOverFuncNextInlined (0.00s)
PASS
ok      github.com/go-delve/delve/pkg/proc      2.652s

debian@debian:~/delve$ GOROOT=/usr/lib/go-1.27 PATH=/usr/lib/go-1.27/bin:PATH go test -vet=off -tags exp.linuxloong64 ./pkg/proc -run TestRangeOverFuncNext -count=1 -v
--- PASS: TestRangeOverFuncNextInlined (2.54s)
   --- PASS: TestRangeOverFuncNextInlined/TestTrickyIterAll1 (0.04s)
   --- PASS: TestRangeOverFuncNextInlined/TestTrickyIterAll2 (0.02s)
   --- PASS: TestRangeOverFuncNextInlined/TestBreak1 (0.23s)
   --- PASS: TestRangeOverFuncNextInlined/TestBreak2 (0.24s)
   --- PASS: TestRangeOverFuncNextInlined/TestMultiCont0 (0.24s)
   --- PASS: TestRangeOverFuncNextInlined/TestPanickyIterator1 (0.09s)
   --- PASS: TestRangeOverFuncNextInlined/TestPanickyIterator2 (0.15s)
   --- PASS: TestRangeOverFuncNextInlined/TestPanickyIteratorWithNewDefer (0.18s)
   --- PASS: TestRangeOverFuncNextInlined/TestLongReturn (0.06s)
   --- PASS: TestRangeOverFuncNextInlined/TestGotoA1 (0.17s)
   --- PASS: TestRangeOverFuncNextInlined/TestGotoB1 (0.16s)
   --- PASS: TestRangeOverFuncNextInlined/TestRecur (0.28s)
PASS
ok      github.com/go-delve/delve/pkg/proc      4.690s

 Adjust stepping expectations for linux/loong64 to match the arm64 special cases in the range-over-func tests.

@aarzilli aarzilli 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 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 d9542bc into go-delve:master Sep 4, 2026
6 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.

3 participants