New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: allocated pages below zero on openbsd/riscv64 #63385
Comments
Hm, unfortunately this doesn't seem like it would be a kernel/mmap problem. This is a check that's failing when one or more pages are freed back to the page heap. What's happening is that some of the bookkeeping maintained per 4 MiB aligned address range indicates that the region is totally free, so it doesn't make sense to try and free memory back to it. I think it implies some kind of corruption of the data structure, or a data race. It could also mean that when the check isn't firing, some pages are getting allocated twice (which could lead to other memory corruption symptoms). It may just be reproducing in If this is straightforward to reproduce, my first thought would be to pepper debuglog calls around the various allocs and frees to the page heap and make sure nothing is being allocated (and thus later possibly freed) twice. If you haven't used debuglog before, it's a very handy low-overhead tool for identifying what actually happened in the runtime. Because it's low overhead, it maintains a low chance of perturbing bugs involving race conditions and tends to reproduce real thread orderings. You can enable it by passing |
Found new dashboard test flakes for:
2023-09-28 17:55 openbsd-riscv64-jsing sys@2964e1e4 go@3a69dcdc go/types [build] (log)
2023-09-28 17:55 openbsd-riscv64-jsing sys@2964e1e4 go@68a12a80 runtime [build] (log)
2023-10-04 10:08 openbsd-riscv64-jsing go@0074125c encoding/gob.TestLargeSlice (log)
2023-10-04 15:11 openbsd-riscv64-jsing go@a9036396 runtime.TestFakeTime (log)
2023-10-04 16:05 openbsd-riscv64-jsing go@0c64ebce cmd/link.TestMachOBuildVersion (log)
2023-10-04 16:50 openbsd-riscv64-jsing go@3a69dcdc cmd/go.TestGoListExport (log)
2023-10-04 22:08 openbsd-riscv64-jsing net@5d5a036a go@bc150700 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-04 22:08 openbsd-riscv64-jsing net@5d5a036a go@008dabcd cmd/link/internal/ld [build] (log)
|
Found new dashboard test flakes for:
2023-10-05 19:45 openbsd-riscv64-jsing go@10da3b64 cmd/link/internal/ld [build] (log)
2023-10-06 15:42 openbsd-riscv64-jsing go@28f4ea16 cmd/compile/internal/ssagen [build] (log)
|
Found new dashboard test flakes for:
2023-10-05 16:33 openbsd-riscv64-jsing net@88194ad8 go@10da3b64 cmd/compile/internal/ssa [build] (log)
2023-10-05 16:33 openbsd-riscv64-jsing net@88194ad8 go@008dabcd runtime [build] (log)
|
Found new dashboard test flakes for:
2023-09-28 17:55 openbsd-riscv64-jsing sys@2964e1e4 go@10da3b64 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-06 21:01 openbsd-riscv64-jsing go@be3d5fb6 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-06 20:57 openbsd-riscv64-jsing go@b72bbaeb cmd/go.TestScript (log)
|
Found new dashboard test flakes for:
2023-10-05 16:33 openbsd-riscv64-jsing net@88194ad8 go@8b6e0e6e runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-06 20:48 openbsd-riscv64-jsing go@ad76a98d cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-10-05 16:33 openbsd-riscv64-jsing net@88194ad8 go@b01cb72e net/http [build] (log)
|
Found new dashboard test flakes for:
2023-10-06 17:02 openbsd-riscv64-jsing go@b455e239 runtime.TestArenaCollision (log)
2023-10-06 17:02 openbsd-riscv64-jsing go@b455e239 runtime.TestArenaCollision (log)
|
Found new dashboard test flakes for:
2023-10-06 20:50 openbsd-riscv64-jsing sys@8ccaaf02 go@561bf045 runtime [build] (log)
2023-10-06 20:50 openbsd-riscv64-jsing sys@8ccaaf02 go@f711892a runtime [build] (log)
2023-10-06 20:50 openbsd-riscv64-jsing sys@8ccaaf02 go@6e8caefc runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-07 12:31 openbsd-riscv64-jsing go@f711892a runtime [build] (log)
2023-10-08 23:15 openbsd-riscv64-jsing go@2744155d runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-05 16:33 openbsd-riscv64-jsing net@88194ad8 go@262b8050 go/types [build] (log)
|
Found new dashboard test flakes for:
2023-10-06 20:50 openbsd-riscv64-jsing sys@8ccaaf02 go@b201cf4a (log)
|
Found new dashboard test flakes for:
2023-10-05 16:33 openbsd-riscv64-jsing net@88194ad8 go@5955a03e runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-10 17:14 openbsd-riscv64-jsing go@7e1713e9 encoding/gob.TestLargeSlice (log)
|
Found new dashboard test flakes for:
2023-10-10 15:45 openbsd-riscv64-jsing net@b225e7ca go@e7015c93 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-06 20:50 openbsd-riscv64-jsing sys@8ccaaf02 go@e0948d82 cmd/compile/internal/ssa [build] (log)
2023-10-06 20:50 openbsd-riscv64-jsing sys@8ccaaf02 go@778880b0 runtime [build] (log)
2023-10-09 16:00 openbsd-riscv64-jsing go@7fcc626b cmd/compile/internal/ssa [build] (log)
2023-10-09 17:48 openbsd-riscv64-jsing go@e6990b76 encoding/gob.TestLargeSlice (log)
2023-10-10 00:36 openbsd-riscv64-jsing sys@1d9f0b6d go@a5943e9d runtime [build] (log)
2023-10-10 00:36 openbsd-riscv64-jsing sys@1d9f0b6d go@e12bdc80 cmd/compile/internal/ssa [build] (log)
2023-10-10 15:45 openbsd-riscv64-jsing net@b225e7ca go@f34964a5 go/types [build] (log)
2023-10-10 16:32 openbsd-riscv64-jsing go@f34964a5 cmd/compile/internal/ssa [build] (log)
2023-10-10 20:47 openbsd-riscv64-jsing go@7c446bab runtime [build] (log)
2023-10-10 22:48 openbsd-riscv64-jsing go@dacf1f1e cmd/compile/internal/ssa [build] (log)
2023-10-11 12:48 openbsd-riscv64-jsing go@e12bdc80 cmd/compile/internal/ssa [build] (log)
2023-10-11 16:52 openbsd-riscv64-jsing net@92728b3b go@655155d0 runtime [build] (log)
2023-10-11 16:55 openbsd-riscv64-jsing go@47a71d1e runtime.TestArenaCollision (log)
2023-10-11 20:20 openbsd-riscv64-jsing go@09aada24 encoding/gob.TestLargeSlice (log)
2023-10-11 21:54 openbsd-riscv64-jsing sys@1bfbee0e go@3de6033d runtime [build] (log)
2023-10-11 21:58 openbsd-riscv64-jsing net@d23d9bc5 go@c729dc18 cmd/compile/internal/ssa [build] (log)
2023-10-12 14:39 openbsd-riscv64-jsing go@ade730a9 regexp/syntax (log)
2023-10-12 18:09 openbsd-riscv64-jsing go@657c885f runtime/pprof.TestGoroutineCounts (log)
2023-10-14 21:46 openbsd-riscv64-jsing go@cc47df01 runtime.TestArenaCollision (log)
2023-10-14 22:30 openbsd-riscv64-jsing go@bc9dc8d4 net/http [build] (log)
2023-10-17 15:06 openbsd-riscv64-jsing go@aa05674b runtime [build] (log)
2023-10-17 18:43 openbsd-riscv64-jsing go@860c2557 runtime [build] (log)
2023-10-17 20:32 openbsd-riscv64-jsing go@a30967f4 runtime.TestArenaCollision (log)
2023-10-17 20:36 openbsd-riscv64-jsing go@ab2e3ce7 cmd/compile/internal/types2 [build] (log)
2023-10-18 00:24 openbsd-riscv64-jsing go@416bc85f cmd/compile/internal/ssa [build] (log)
2023-10-18 14:06 openbsd-riscv64-jsing go@045ce51b net/http [build] (log)
2023-10-18 14:46 openbsd-riscv64-jsing go@ce25ad60 encoding/gob.TestLargeSlice (log)
2023-10-18 14:46 openbsd-riscv64-jsing go@66287d55 net/http.TestOmitHTTP2Vet (log)
2023-10-18 15:03 openbsd-riscv64-jsing go@144252d2 regexp.TestMatch (log)
2023-10-18 17:56 openbsd-riscv64-jsing go@91bb19a5 runtime [build] (log)
2023-10-18 18:04 openbsd-riscv64-jsing go@3550a848 runtime.TestArenaCollision (log)
2023-10-18 18:04 openbsd-riscv64-jsing go@061d77cb runtime.TestArenaCollision (log)
2023-10-18 19:30 openbsd-riscv64-jsing go@b78aa6c2 go/types [build] (log)
2023-10-18 19:36 openbsd-riscv64-jsing go@5d0a277f net/http [build] (log)
2023-10-18 19:37 openbsd-riscv64-jsing go@16606351 runtime [build] (log)
2023-10-18 20:00 openbsd-riscv64-jsing go@1d400cdf encoding/gob.TestLargeSlice (log)
2023-10-19 12:02 openbsd-riscv64-jsing go@28f1bf61 cmd/go.TestGoListExport (log)
2023-10-19 12:23 openbsd-riscv64-jsing go@ab5bd159 runtime.TestFakeTime (log)
|
Found new dashboard test flakes for:
2023-10-24 20:28 openbsd-riscv64-jsing go@b5f87b54 runtime.TestArenaCollision (log)
|
Found new dashboard test flakes for:
2023-10-23 09:04 openbsd-riscv64-jsing go@6ba6e72e encoding/json.TestUnmarshalMaxDepth (log)
2023-10-23 09:05 openbsd-riscv64-jsing sys@1e638101 go@2d9e8ded runtime [build] (log)
2023-10-23 09:06 openbsd-riscv64-jsing go@bc2124da bootstrap/cmd/compile/internal/ssagen [build] (log)
2023-10-23 19:41 openbsd-riscv64-jsing go@e46e8610 runtime [build] (log)
2023-10-23 20:47 openbsd-riscv64-jsing go@f9c54f9c encoding/gob.TestLargeSlice (log)
2023-10-23 22:24 openbsd-riscv64-jsing net@48a59773 go@25ad137c runtime [build] (log)
2023-10-23 22:24 openbsd-riscv64-jsing net@48a59773 go@983d90e1 cmd/compile/internal/types2 [build] (log)
2023-10-24 13:47 openbsd-riscv64-jsing go@6f87db50 cmd/compile/internal/ssa [build] (log)
2023-10-24 17:49 openbsd-riscv64-jsing go@25ad137c runtime [build] (log)
2023-10-24 18:12 openbsd-riscv64-jsing go@9162c4be runtime [build] (log)
2023-10-24 20:24 openbsd-riscv64-jsing go@2d9e8ded runtime.TestArenaCollision (log)
|
Found new dashboard test flakes for:
2023-10-25 19:25 openbsd-riscv64-jsing go@57322b3c runtime [build] (log)
|
Found new dashboard test flakes for:
2023-10-25 18:07 openbsd-riscv64-jsing net@4c7a5b64 go@e7908ab9 cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-10-23 09:05 openbsd-riscv64-jsing sys@1e638101 go@55b8e16b cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-10-23 09:05 openbsd-riscv64-jsing sys@1e638101 go@9cdcb013 cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-10-23 22:24 openbsd-riscv64-jsing net@48a59773 go@884c93a6 x/net/http2 [build] (log)
|
Found new dashboard test flakes for:
2023-11-18 01:08 openbsd-riscv64-jsing sys@13b15b78 go@aae77346 (log)
|
Found new dashboard test flakes for:
2023-11-27 17:26 openbsd-riscv64-jsing net@a8e01091 go@7ccddf04 bootstrap/cmd/compile/internal/types2 [build] (log)
|
Found new dashboard test flakes for:
2023-11-18 01:08 openbsd-riscv64-jsing sys@13b15b78 go@7ccddf04 net/http [build] (log)
|
Found new dashboard test flakes for:
2023-11-29 19:13 openbsd-riscv64-jsing go@636c6e35 cmd/compile/internal/ssa [build] (log)
2023-11-29 20:34 openbsd-riscv64-jsing go@27316739 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-11-29 17:49 openbsd-riscv64-jsing go@c418da34 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-11-27 17:26 openbsd-riscv64-jsing net@a8e01091 go@c418da34 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-11-29 21:54 openbsd-riscv64-jsing net@f812076c go@a27a525d bootstrap/cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-11-21 17:59 openbsd-riscv64-jsing go@945c2bc7 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-11-21 17:42 openbsd-riscv64-jsing go@f4358113 runtime (log)
|
Found new dashboard test flakes for:
2023-11-21 17:28 openbsd-riscv64-jsing go@5239c913 cmd/link/internal/ld.TestRISCVTrampolines (log)
|
Found new dashboard test flakes for:
2023-11-21 17:27 openbsd-riscv64-jsing go@3255fca9 runtime/trace (log)
|
Found new dashboard test flakes for:
2023-11-21 16:29 openbsd-riscv64-jsing go@8eecf26e runtime [build] (log)
|
Found new dashboard test flakes for:
2023-12-01 17:20 openbsd-riscv64-jsing go@fbfe62bc runtime.TestArenaCollision (log)
2023-12-01 17:20 openbsd-riscv64-jsing go@fbfe62bc runtime.TestArenaCollision (log)
|
Found new dashboard test flakes for:
2023-12-01 17:42 openbsd-riscv64-jsing sys@5ff87d7b go@58bfef82 cmd/link/internal/ld [build] (log)
2023-12-01 17:42 openbsd-riscv64-jsing sys@5ff87d7b go@3220bbe1 cmd/compile/internal/ssa [build] (log)
2023-12-01 17:42 openbsd-riscv64-jsing sys@5ff87d7b go@fbfe62bc runtime [build] (log)
|
Found new dashboard test flakes for:
2023-12-01 17:42 openbsd-riscv64-jsing sys@5ff87d7b go@67c86037 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-11-29 21:54 openbsd-riscv64-jsing net@f812076c go@40f6fbf1 cmd/link/internal/ld [build] (log)
|
Found new dashboard test flakes for:
2023-11-29 21:54 openbsd-riscv64-jsing net@f812076c go@70c7fb75 net/http [build] (log)
|
Found new dashboard test flakes for:
2023-12-01 19:30 openbsd-riscv64-jsing go@70c7fb75 cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-12-01 19:20 openbsd-riscv64-jsing go@5a2161ce runtime.TestFakeTime (log)
|
Found new dashboard test flakes for:
2023-11-29 21:54 openbsd-riscv64-jsing net@f812076c go@2e6387cb runtime [build] (log)
|
Found new dashboard test flakes for:
2023-12-04 19:27 openbsd-riscv64-jsing go@818de275 runtime (log)
|
Found new dashboard test flakes for:
2023-12-01 17:42 openbsd-riscv64-jsing sys@5ff87d7b go@e1c0349a runtime [build] (log)
2023-12-05 23:17 openbsd-riscv64-jsing net@08a78b1e go@0ff2b33e runtime [build] (log)
2023-12-06 21:50 openbsd-riscv64-jsing go@6ee27198 runtime.TestArenaCollision (log)
2023-12-06 21:50 openbsd-riscv64-jsing go@e914671f runtime.TestArenaCollision (log)
2023-12-07 19:13 openbsd-riscv64-jsing go@c71eedf9 runtime [build] (log)
2023-12-07 19:52 openbsd-riscv64-jsing go@e1c0349a cmd/compile/internal/ssa [build] (log)
2023-12-07 23:44 openbsd-riscv64-jsing go@dca2ef23 encoding/gob (log)
2023-12-08 00:50 openbsd-riscv64-jsing go@4bf1ca4b net [build] (log)
|
Found new dashboard test flakes for:
2023-12-08 18:34 openbsd-riscv64-jsing go@6cdf2cca cmd/link/internal/ld [build] (log)
|
Found new dashboard test flakes for:
2023-12-08 16:07 openbsd-riscv64-jsing net@577e44a5 go@f360ffd9 cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-12-08 20:07 openbsd-riscv64-jsing go@e1cba47e (log)
2023-12-08 20:35 openbsd-riscv64-jsing go@aa4a9501 cmd/compile/internal/ssa [build] (log)
|
Found new dashboard test flakes for:
2023-12-01 17:42 openbsd-riscv64-jsing sys@5ff87d7b go@4601857c cmd/link/internal/ld [build] (log)
|
Found new dashboard test flakes for:
2023-12-06 21:50 openbsd-riscv64-jsing go@ff9269ee runtime.TestArenaCollision (log)
|
Found new dashboard test flakes for:
2023-12-01 17:42 openbsd-riscv64-jsing sys@5ff87d7b go@fe1b2f95 bootstrap/cmd/compile/internal/ssagen [build] (log)
|
Found new dashboard test flakes for:
2023-12-06 21:33 openbsd-riscv64-jsing go@a9c9cc07 runtime [build] (log)
|
Found new dashboard test flakes for:
2023-12-05 23:17 openbsd-riscv64-jsing net@08a78b1e go@5214949d bootstrap/cmd/compile/internal/ssa [build] (log)
|
The openbsd/riscv64 port is regularly failing with errors like:
https://build.golang.org/log/bb95405e34149982611770caf632d58e9bc50ff4
https://build.golang.org/log/e5fb11bcae4d4dab31c13f7e271852e39ae5a6df
This seems particularly reproducible (although still intermittent) via the
TestArenaCollision
test:inUse
always appears to be zero, whilenpages
is some small positive value.It would seem that this is specific to openbsd/riscv64 and possibly even a kernel/mmap related problem.
/cc @mknyszek any pointers in tracking this down would be greatly appreciated.
The text was updated successfully, but these errors were encountered: