Skip to content
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: found bad pointer in Go heap on wasm ports testing x/tools/go/ssa.TestTypeparamTest/chans.go #64726

Closed
bcmills opened this issue Dec 14, 2023 · 56 comments
Assignees
Labels
arch-wasm WebAssembly issues compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Dec 14, 2023

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`

Go version

N/A

What operating system and processor architecture are you using (go env)?

N/A

What did you do?

Check x/tools LUCI builder status:
https://ci.chromium.org/p/golang/g/x-tools-gotip/console

What did you expect to see?

All tests passing.

What did you see instead?

A pattern of failures on the js/wasm builders involving a pointer … to unused region of span when running a particular x/tools test that doesn't fail anywhere else.

=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2340000 span.limit=0x2342000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc0861, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x5150a8 sp=0x515080 pc=0x12750003
runtime.badPointer(0x26d0170, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5150e8 sp=0x5150a8 pc=0x1100000e
runtime.findObject(0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:329 +0x1d fp=0x515118 sp=0x5150e8 pc=0x1101001d
runtime.wbBufFlush1(0x183a008)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mwbbuf.go:240 +0x10 fp=0x515188 sp=0x515118 pc=0x124a0010
runtime.wbBufFlush.func1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mwbbuf.go:181 +0x6 fp=0x515198 sp=0x515188 pc=0x14550006
runtime.systemstack(0x5151a8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:172 +0x3 fp=0x5151a0 sp=0x515198 pc=0x14fb0003
runtime.mstart()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:29 fp=0x5151a8 sp=0x5151a0 pc=0x14f70000

goroutine 644 gp=0x1af4000 m=0 mp=0x4bc980 [running]:
runtime.systemstack_switch()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:183 fp=0x1833770 sp=0x1833768 pc=0x14fc0000
runtime.wbBufFlush()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mwbbuf.go:180 +0xf fp=0x1833780 sp=0x1833770 pc=0x1249000f
gcWriteBarrier()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:482 +0x1 fp=0x1833788 sp=0x1833780 pc=0x14f50001
runtime: g 644: unexpected return pc for gcWriteBarrier called from 0xe8301c0
stack: frame={sp:0x1833780, fp:0x1833788} stack=[0x1830000,0x1834000)
0x0000000001833680:  0x0000000000000080  0x00000000004bc980 
0x0000000001833690:  0x000000000187b480  0x0000000000000000 
0x00000000018336a0:  0x0000000001af4000  0x0000000000000010 
0x00000000018336b0:  0x0000000013660092 <runtime.growslice+0x0000000000000092>  0x000000000187b480 
0x00000000018336c0:  0x0000000000000000  0x0000000000000000 
0x00000000018336d0:  0x000000000187b480  0x0000000000000080 
0x00000000018336e0:  0x0000000019430002 <bytes.growSlice.func1+0x0000000000000002>  0x0000000001833708 
0x00000000018336f0:  0x0000000000000000  0x0000000000000000 
0x0000000001833700:  0x000000001925000c <bytes.growSlice+0x000000000000000c>  0x000000000187b480 
0x0000000001833710:  0x000000000e8301c0  0x0000000000000024 
0x0000000001833720:  0x0000000000000080  0x000000000003ab40 
0x0000000001833730:  0x000000000187b480  0x0000000000000080 
0x0000000001833740:  0x0000000000000080  0x000000000b1cc450 
0x0000000001833750:  0x0000000000000080  0x0000000000000080 
0x0000000001833760:  0x0000000000000080  0x000000001249000f <runtime.wbBufFlush+0x000000000000000f> 
0x0000000001833770:  0x00000000000cad80  0x0000000014f50001 <gcWriteBarrier+0x0000000000000001> 
0x0000000001833780: <0x000000000e8301c0 >0x0000000000000024 
0x0000000001833790:  0x0000000000000040  0x0000000000000052 
0x00000000018337a0:  0x000000000187b480  0x0000000000000024 
0x00000000018337b0:  0x0000000000000080  0x0000000000000024 
0x00000000018337c0:  0x0000000001ad8c30  0x000000000187b480 
0x00000000018337d0:  0x000000001922000b <bytes.(*Buffer).Write+0x000000000000000b>  0x000000000b1cc420 
0x00000000018337e0:  0x0000000000000052  0x0000000001ad8c30 
0x00000000018337f0:  0x000000000203f880  0x0000000018740008 <fmt.Fprintf+0x0000000000000008> 
0x0000000001833800:  0x000000000b1cc420  0x000000000203f880 
0x0000000001833810:  0x0000000000000052  0x0000000000000080 
0x0000000001833820:  0x0000000000000001  0x0000000000000001 
0x0000000001833830:  0x00000000000820e0  0x000000000b1cc450 
0x0000000001833840:  0x0000000001833958  0x0000000001ad8c30 
0x0000000001833850:  0x000000000b1cc450  0x0000000024250022 <golang.org/x/tools/go/ssa.WriteFunction+0x0000000000000022> 
0x0000000001833860:  0x000000000012ed28  0x000000000b1cc420 
0x0000000001833870:  0x00000000000ad389  0x000000000000000f 
0x0000000001833880:  0x0000000001833a10 
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 626
	/home/swarming/.swarming/w/ir/x/w/targetrepo177684174/go/ssa/builder.go:2621 +0x1b

goroutine 1 gp=0x18001c0 m=nil [chan receive]:
runtime.gopark(0xcaa28, 0xf8b66e8, 0xe, 0x7, 0x2)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x18a79a8 sp=0x18a7980 pc=0x129d0025
runtime.chanrecv(0xf8b6690, 0x18a7a97, 0x1)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/chan.go:583 +0x66 fp=0x18a7a28 sp=0x18a79a8 pc=0x107c0066
runtime.chanrecv1(0xf8b6690, 0x18a7a97)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/chan.go:442 +0x2 fp=0x18a7a50 sp=0x18a7a28 pc=0x107b0002
testing.(*T).Run(0x188c4e0, {0xae140, 0x11}, 0xca848)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1750 +0x44 fp=0x18a7b20 sp=0x18a7a50 pc=0x1a0f0044
testing.runTests.func1(0x188c4e0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:2161 +0x3 fp=0x18a7b60 sp=0x18a7b20 pc=0x1a1b0003
testing.tRunner(0x188c4e0, 0x18a7c80)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x18a7bc8 sp=0x18a7b60 pc=0x1a0a000d
testing.runTests(0x180a180, {0x4afe60, 0x22, 0x22}, {0xc156aa802e9c5f80, 0x8bb30d4801, 0x4bb9e0})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:2159 +0x49 fp=0x18a7ca8 sp=0x18a7bc8 pc=0x1a1a0049
testing.(*M).Run(0x1866f00)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:2027 +0x6e fp=0x18a7ee8 sp=0x18a7ca8 pc=0x1a13006e
main.main()
	_testmain.go:115 +0x9 fp=0x18a7f68 sp=0x18a7ee8 pc=0x295a0009
runtime.main()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:271 +0x41 fp=0x18a7fe0 sp=0x18a7f68 pc=0x12970041
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18a7fe8 sp=0x18a7fe0 pc=0x15260001

goroutine 2 gp=0x1800380 m=nil [force gc (idle)]:
runtime.gopark(0xcacf0, 0x4bb2e0, 0x11, 0xa, 0x1)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x184cfb0 sp=0x184cf88 pc=0x129d0025
runtime.goparkunlock(...)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:408
runtime.forcegchelper()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:326 +0x1b fp=0x184cfe0 sp=0x184cfb0 pc=0x129a001b
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184cfe8 sp=0x184cfe0 pc=0x15260001
created by runtime.init.5 in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:314 +0x2

goroutine 3 gp=0x1800540 m=nil [GC sweep wait]:
runtime.gopark(0xcacf0, 0x4bb620, 0xc, 0x9, 0x1)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x184d790 sp=0x184d768 pc=0x129d0025
runtime.goparkunlock(...)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:408
runtime.bgsweep(0x1852000)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgcsweep.go:317 +0x1d fp=0x184d7d0 sp=0x184d790 pc=0x11b2001d
runtime.gcenable.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:203 +0x2 fp=0x184d7e0 sp=0x184d7d0 pc=0x11370002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184d7e8 sp=0x184d7e0 pc=0x15260001
created by runtime.gcenable in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:203 +0x6

goroutine 4 gp=0x1800700 m=nil [runnable]:
runtime.gopark(0xcacf0, 0x4bbb00, 0xd, 0xa, 0x2)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x184df80 sp=0x184df58 pc=0x129d0025
runtime.goparkunlock(...)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:408
runtime.(*scavengerState).park(0x4bbb00)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgcscavenge.go:425 +0xc fp=0x184dfa8 sp=0x184df80 pc=0x1190000c
runtime.bgscavenge(0x1852000)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgcscavenge.go:658 +0x8 fp=0x184dfd0 sp=0x184dfa8 pc=0x11950008
runtime.gcenable.gowrap2()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:204 +0x2 fp=0x184dfe0 sp=0x184dfd0 pc=0x11360002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184dfe8 sp=0x184dfe0 pc=0x15260001
created by runtime.gcenable in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:204 +0xa

goroutine 5 gp=0x18008c0 m=nil [finalizer wait]:
runtime.gopark(0xcaa58, 0x50cb20, 0x10, 0xa, 0x1)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x184c710 sp=0x184c6e8 pc=0x129d0025
runtime.runfinq()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mfinal.go:194 +0x1c fp=0x184c7e0 sp=0x184c710 pc=0x112d001c
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184c7e8 sp=0x184c7e0 pc=0x15260001
created by runtime.createfing in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mfinal.go:164 +0xc

goroutine 6 gp=0x1800a80 m=nil [waiting]:
runtime.gopark(0x0, 0x0, 0x0, 0x0, 0x1)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x5875760 sp=0x5875738 pc=0x129d0025
runtime.handleEvent()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/lock_js.go:296 +0x25 fp=0x58757e0 sp=0x5875760 pc=0x10c10025
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x58757e8 sp=0x58757e0 pc=0x15260001
created by runtime.beforeIdle
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/lock_js.go:238 +0x1e

goroutine 571 gp=0x1800c40 m=nil [chan receive]:
runtime.gopark(0xcaa28, 0xf8b7e88, 0xe, 0x7, 0x2)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x1b9cce0 sp=0x1b9ccb8 pc=0x129d0025
runtime.chanrecv(0xf8b7e30, 0x1b9cdcf, 0x1)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/chan.go:583 +0x66 fp=0x1b9cd60 sp=0x1b9cce0 pc=0x107c0066
runtime.chanrecv1(0xf8b7e30, 0x1b9cdcf)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/chan.go:442 +0x2 fp=0x1b9cd88 sp=0x1b9cd60 pc=0x107b0002
testing.(*T).Run(0x1ab2340, {0x19cab08, 0x8}, 0xab28df8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1750 +0x44 fp=0x1b9ce58 sp=0x1b9cd88 pc=0x1a0f0044
golang.org/x/tools/go/ssa_test.TestTypeparamTest(0x1ab2340)
	/home/swarming/.swarming/w/ir/x/w/targetrepo177684174/go/ssa/builder_test.go:845 +0x30 fp=0x1b9cf60 sp=0x1b9ce58 pc=0x29340030
testing.tRunner(0x1ab2340, 0xca848)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x1b9cfc8 sp=0x1b9cf60 pc=0x1a0a000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x1b9cfe0 sp=0x1b9cfc8 pc=0x1a100002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x1b9cfe8 sp=0x1b9cfe0 pc=0x15260001
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 44 gp=0x1800fc0 m=nil [GC worker (idle)]:
runtime.gopark(0xcaa80, 0x1823f40, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0x184ef48 sp=0x184ef20 pc=0x129d0025
runtime.gcBgMarkWorker()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1310 +0x1f fp=0x184efe0 sp=0x184ef48 pc=0x114a001f
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184efe8 sp=0x184efe0 pc=0x15260001
created by runtime.gcBgMarkStartWorkers in goroutine 43
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1234 +0x3

goroutine 645 gp=0x1b1d340 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo177684174/go/ssa/builder.go:2621 fp=0x58747e0 sp=0x58747d8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x58747e8 sp=0x58747e0 pc=0x15260001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 626
	/home/swarming/.swarming/w/ir/x/w/targetrepo177684174/go/ssa/builder.go:2621 +0x1b

goroutine 626 gp=0x1af2fc0 m=nil [semacquire]:
runtime.gopark(0xcacf0, 0x4c5260, 0x12, 0x5, 0x4)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x25 fp=0xbb3fca0 sp=0xbb3fc78 pc=0x129d0025
runtime.goparkunlock(...)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:408
runtime.semacquire1(0xb101438, 0x0, 0x1, 0x0, 0x12)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/sema.go:160 +0x3a fp=0xbb3fce8 sp=0xbb3fca0 pc=0x135c003a
sync.runtime_Semacquire(0xb101438)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/sema.go:62 +0x2 fp=0xbb3fd18 sp=0xbb3fce8 pc=0x14de0002
sync.(*WaitGroup).Wait(0xb101430)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/waitgroup.go:116 +0xf fp=0xbb3fd40 sp=0xbb3fd18 pc=0x15d6000f
golang.org/x/tools/go/ssa.(*Program).Build(0xb15e0d0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo177684174/go/ssa/builder.go:2627 +0x1d fp=0xbb3fdf0 sp=0xbb3fd40 pc=0x23db001d
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xab4d380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo177684174/go/ssa/builder_test.go:882 +0x4d fp=0xbb3ff60 sp=0xbb3fdf0 pc=0x2935004d
testing.tRunner(0xab4d380, 0xab28df8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xbb3ffc8 sp=0xbb3ff60 pc=0x1a0a000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xbb3ffe0 sp=0xbb3ffc8 pc=0x1a100002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xbb3ffe8 sp=0xbb3ffe0 pc=0x15260001
created by testing.(*T).Run in goroutine 571
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

Examples:

(attn @golang/wasm)

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Dec 14, 2023
@bcmills bcmills added the arch-wasm WebAssembly issues label Dec 14, 2023
@bcmills bcmills changed the title runtime: found bad pointer in Go heap on x_tools-gotip-js-wasm testing x/tools/go/ssa.TestTypeparamTest/chans.go runtime: found bad pointer in Go heap on js/wasm testing x/tools/go/ssa.TestTypeparamTest/chans.go Dec 14, 2023
@thanm thanm added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 18, 2023
@mknyszek mknyszek self-assigned this Jan 3, 2024
@mknyszek mknyszek added this to the Backlog milestone Jan 3, 2024
@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2023-12-13 21:10 x_tools-gotip-js-wasm tools@5f21477d go@d95e25e8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x22d8000 span.limit=0x22d9ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc0861, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x5150a8 sp=0x515080 pc=0x12750003
runtime.badPointer(0x26e8a58, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5150e8 sp=0x5150a8 pc=0x1100000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 624
	/home/swarming/.swarming/w/ir/x/w/targetrepo3984132299/go/ssa/builder.go:2618 +0x1b

goroutine 643 gp=0x19af180 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3984132299/go/ssa/builder.go:2618 fp=0x5304fe0 sp=0x5304fd8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x5304fe8 sp=0x5304fe0 pc=0x15260001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 624
	/home/swarming/.swarming/w/ir/x/w/targetrepo3984132299/go/ssa/builder.go:2618 +0x1b
2023-12-15 19:05 x_tools-go1.21-wasip1-wasm_wasmtime tools@c9f33826 release-branch.go1.21@bbab863a x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x9b62000 span.limit=0x9b63f80 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xb9e89, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b7be8 sp=0x4b7bc0 pc=0x12760003
runtime.badPointer(0x25ebef0, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b7c28 sp=0x4b7be8 pc=0x10ef000e
...
created by testing.(*T).Run in goroutine 518
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x47

goroutine 592 [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.func2()
	/home/swarming/.swarming/w/ir/x/w/targetrepo166703608/go/ssa/builder.go:2621 fp=0x183cfe0 sp=0x183cfd8 pc=0x23410000
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x183cfe8 sp=0x183cfe0 pc=0x14e60001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo166703608/go/ssa/builder.go:2621 +0x1b
2023-12-15 21:59 x_tools-gotip-wasip1-wasm_wasmtime tools@4d2b6e1d go@9b4b3e5a x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2872000 span.limit=0x2885fd0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4df, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a508 sp=0x50a4e0 pc=0x12880003
runtime.badPointer(0x1cb3f38, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a548 sp=0x50a508 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa1024e0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3274469575/go/ssa/builder_test.go:882 +0x4d fp=0xa069f60 sp=0xa069df0 pc=0x292f004d
testing.tRunner(0xa1024e0, 0xa0d9b30)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xa069fc8 sp=0xa069f60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xa069fe0 sp=0xa069fc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xa069fe8 sp=0xa069fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@bcmills bcmills changed the title runtime: found bad pointer in Go heap on js/wasm testing x/tools/go/ssa.TestTypeparamTest/chans.go runtime: found bad pointer in Go heap on wasm ports testing x/tools/go/ssa.TestTypeparamTest/chans.go Jan 29, 2024
@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-01-29 21:56 x_tools-gotip-wasip1-wasm_wasmtime tools@341c0434 go@47d240cc x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2146000 span.limit=0x2148000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe597, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1011 +0x3 fp=0x50a5a8 sp=0x50a580 pc=0x12880003
runtime.badPointer(0x1caf818, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5e8 sp=0x50a5a8 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x977c9c0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2921845243/go/ssa/builder_test.go:882 +0x4d fp=0x96e7f60 sp=0x96e7df0 pc=0x2932004d
testing.tRunner(0x977c9c0, 0x97611e8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x96e7fc8 sp=0x96e7f60 pc=0x1a04000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x96e7fe0 sp=0x96e7fc8 pc=0x1a0a0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x96e7fe8 sp=0x96e7fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-01-31 16:59 x_tools-go1.21-wasip1-wasm_wazero tools@da7ed649 release-branch.go1.21@00f974eb x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x1b08000 span.limit=0x1b0a000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xb9ec8, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x24b9a70, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo1082564753/go/ssa/builder.go:2621 +0x1b

goroutine 592 [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.func2()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1082564753/go/ssa/builder.go:2621 fp=0x3178fe0 sp=0x3178fd8 pc=0x23420000
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x3178fe8 sp=0x3178fe0 pc=0x14e70001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo1082564753/go/ssa/builder.go:2621 +0x1b
2024-01-31 19:19 x_tools-go1.21-wasip1-wasm_wasmtime tools@0c80ba37 release-branch.go1.21@916e6cdd x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unallocated span span.base()=0x10a50000 span.limit=0x10a52000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xb9ec8, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x25058d8, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo3409265975/go/ssa/builder.go:2621 +0x1b

goroutine 590 [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.func2()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3409265975/go/ssa/builder.go:2621 fp=0x183a7e0 sp=0x183a7d8 pc=0x23420000
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x183a7e8 sp=0x183a7e0 pc=0x14e70001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo3409265975/go/ssa/builder.go:2621 +0x1b
2024-02-01 23:36 x_tools-go1.21-wasip1-wasm_wasmtime tools@d0778885 release-branch.go1.21@01c93ad0 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unallocated span span.base()=0x10a00000 span.limit=0x10a6ff90 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xb9ea7, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x2503ad8, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo723657880/go/ssa/builder.go:2621 +0x1b

goroutine 590 [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.func2()
	/home/swarming/.swarming/w/ir/x/w/targetrepo723657880/go/ssa/builder.go:2621 fp=0x183afe0 sp=0x183afd8 pc=0x23420000
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x183afe8 sp=0x183afe0 pc=0x14e70001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo723657880/go/ssa/builder.go:2621 +0x1b
2024-02-01 23:36 x_tools-gotip-wasip1-wasm_wasmtime tools@d0778885 go@149db960 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x39ee000 span.limit=0x39f0000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: runtime: morestack on g0, stack [fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: fatal error: Error: failed to run main module `/home/swarming/.swarming/w/ir/x/t/go-build783272346/b700/ssa.test`

Caused by:
    0: failed to invoke command default
...
         25121: 0x633c91 - <unknown>!<wasm function 5179>
         25122: 0x65aef2 - <unknown>!<wasm function 5295>
         25123: 0x6535d5 - <unknown>!<wasm function 5289>
         25124: 0x632d51 - <unknown>!<wasm function 5177>
         25125: 0x632974 - <unknown>!<wasm function 5176>
         25126: 0x6148bd - <unknown>!<wasm function 5105>
         25127: 0x6143f4 - <unknown>!<wasm function 5104>
         25128: 0x125033 - <unknown>!<wasm function 1375>
         25129: 0x1250cb - <unknown>!<wasm function 1379>
    2: wasm trap: call stack exhausted
2024-02-02 15:44 x_tools-go1.22-wasip1-wasm_wasmtime tools@e211e0f0 release-branch.go1.22@b0957cfc x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2020000 span.limit=0x2021ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe441, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1caed68, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa18f6c0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo214459957/go/ssa/builder_test.go:882 +0x4d fp=0xa10ff60 sp=0xa10fdf0 pc=0x2934004d
testing.tRunner(0xa18f6c0, 0xa1b23d8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xa10ffc8 sp=0xa10ff60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xa10ffe0 sp=0xa10ffc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xa10ffe8 sp=0xa10ffe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-02 22:29 x_tools-go1.22-wasip1-wasm_wasmtime tools@aecdb2d3 release-branch.go1.22@b0957cfc x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x20b2000 span.limit=0x20b3ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe441, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1cb21d8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 642 gp=0x1918380 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo384177248/go/ssa/builder.go:2621 fp=0x22e77e0 sp=0x22e77d8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x22e77e8 sp=0x22e77e0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo384177248/go/ssa/builder.go:2621 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-02 23:11 x_tools-gotip-wasip1-wasm_wasmtime tools@3403ce10 go@b8ac61e6 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x20b0000 span.limit=0x20b2000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe482, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1011 +0x3 fp=0x50a5a8 sp=0x50a580 pc=0x12880003
runtime.badPointer(0x1cb8320, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5e8 sp=0x50a5a8 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 637 gp=0x18e7dc0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2533348368/go/ssa/builder.go:2621 fp=0x2b07fe0 sp=0x2b07fd8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x2b07fe8 sp=0x2b07fe0 pc=0x153a0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo2533348368/go/ssa/builder.go:2621 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-05 18:07 x_tools-gotip-wasip1-wasm_wasmtime tools@df03d7d4 go@6076edc5 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x298e000 span.limit=0x2990000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe542, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1011 +0x3 fp=0x50a5a8 sp=0x50a580 pc=0x12880003
runtime.badPointer(0x1d1c210, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5e8 sp=0x50a5a8 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 641 gp=0x1b71340 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2970500071/go/ssa/builder.go:2621 fp=0x18437e0 sp=0x18437d8 pc=0x23e10000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18437e8 sp=0x18437e0 pc=0x153a0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo2970500071/go/ssa/builder.go:2621 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-06 18:49 x_tools-gotip-wasip1-wasm_wasmtime tools@8b6359d8 go@4b0e0863 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x10acc000 span.limit=0x10ae7fb0 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe542, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1011 +0x3 fp=0x50a5a8 sp=0x50a580 pc=0x12880003
runtime.badPointer(0x1c9f170, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5e8 sp=0x50a5a8 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 638 gp=0x1b70000 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo4191870320/go/ssa/builder.go:2621 fp=0x1842fe0 sp=0x1842fd8 pc=0x23e10000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x1842fe8 sp=0x1842fe0 pc=0x153a0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo4191870320/go/ssa/builder.go:2621 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-06 23:06 x_tools-go1.21-wasip1-wasm_wazero tools@ab679612 release-branch.go1.21@f2920803 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x10a7a000 span.limit=0x10a7be00 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xba027, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x2530a30, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo3338023592/go/ssa/builder.go:2621 +0x1b

goroutine 590 [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.func2()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3338023592/go/ssa/builder.go:2621 fp=0x18497e0 sp=0x18497d8 pc=0x23420000
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x18497e8 sp=0x18497e0 pc=0x14e70001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo3338023592/go/ssa/builder.go:2621 +0x1b
2024-02-07 01:30 x_tools-gotip-wasip1-wasm_wasmtime tools@76795ef9 go@39ec246e x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x215e000 span.limit=0x215fee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe542, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1011 +0x3 fp=0x50a5a8 sp=0x50a580 pc=0x12880003
runtime.badPointer(0x1ca4650, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5e8 sp=0x50a5a8 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa1fa4e0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1910673663/go/ssa/builder_test.go:882 +0x4d fp=0xa175f60 sp=0xa175df0 pc=0x293a004d
testing.tRunner(0xa1fa4e0, 0xa1d5b30)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xa175fc8 sp=0xa175f60 pc=0x1a06000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xa175fe0 sp=0xa175fc8 pc=0x1a0c0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xa175fe8 sp=0xa175fe0 pc=0x153a0001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-02-07 19:42 x_tools-go1.22-wasip1-wasm_wazero tools@76ef6b6a release-branch.go1.22@a10e42f2 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x201e000 span.limit=0x2020000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4a1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1cb9638, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x96fba00)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1402401969/go/ssa/builder_test.go:882 +0x4d fp=0x967df60 sp=0x967ddf0 pc=0x2934004d
testing.tRunner(0x96fba00, 0x972c3f0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x967dfc8 sp=0x967df60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x967dfe0 sp=0x967dfc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x967dfe8 sp=0x967dfe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-09 17:50 x_tools-go1.22-wasip1-wasm_wasmtime tools@95f04f4a release-branch.go1.22@20107e05 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x10ad8000 span.limit=0x10ae1fc0 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4a1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1cb1240, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 639 gp=0x19081c0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1059236235/go/ssa/builder.go:2621 fp=0x1843fe0 sp=0x1843fd8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x1843fe8 sp=0x1843fe0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo1059236235/go/ssa/builder.go:2621 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-13 04:23 x_tools-go1.22-wasip1-wasm_wasmtime tools@afd84280 release-branch.go1.22@20107e05 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2a68000 span.limit=0x2a69ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4a1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1c9c530, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xc103380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1983589457/go/ssa/builder_test.go:882 +0x4d fp=0xc187f60 sp=0xc187df0 pc=0x2934004d
testing.tRunner(0xc103380, 0xc0f1398)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xc187fc8 sp=0xc187f60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xc187fe0 sp=0xc187fc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xc187fe8 sp=0xc187fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-02-13 14:38 x_tools-go1.21-wasip1-wasm_wasmtime tools@1b39a8b6 release-branch.go1.21@b214108e x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x2142000 span.limit=0x2143f80 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xba027, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x2493b48, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo510139036/go/ssa/builder.go:2621 +0x1b

goroutine 591 [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.func2()
	/home/swarming/.swarming/w/ir/x/w/targetrepo510139036/go/ssa/builder.go:2621 fp=0x1841fe0 sp=0x1841fd8 pc=0x23420000
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x1841fe8 sp=0x1841fe0 pc=0x14e70001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo510139036/go/ssa/builder.go:2621 +0x1b
2024-02-14 18:27 x_tools-go1.22-wasip1-wasm_wasmtime tools@f1914ccb release-branch.go1.22@20107e05 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x531a000 span.limit=0x531bfa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4a1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1caa1f0, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 642 gp=0x18cec40 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1995017819/go/ssa/builder.go:2621 fp=0x22f37e0 sp=0x22f37d8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x22f37e8 sp=0x22f37e0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo1995017819/go/ssa/builder.go:2621 +0x1b
2024-02-14 18:27 x_tools-gotip-wasip1-wasm_wasmtime tools@f1914ccb go@b19164d5 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unallocated span span.base()=0x10aac000 span.limit=0x10b1bf90 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe5b8, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x50b5c8 sp=0x50b5a0 pc=0x12890003
runtime.badPointer(0x1c943d0, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50b608 sp=0x50b5c8 pc=0x10f9000e
...
created by testing.(*T).Run in goroutine 570
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 643 gp=0x18cf340 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo262478606/go/ssa/builder.go:2621 +0x1 fp=0x18427e0 sp=0x18427d8 pc=0x23e40001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18427e8 sp=0x18427e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo262478606/go/ssa/builder.go:2621 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-16 17:05 x_tools-go1.22-wasip1-wasm_wasmtime tools@4bc74c34 release-branch.go1.22@6cbe522f x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2120000 span.limit=0x2121ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4a5, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1ca9530, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa12bd40)
	/home/swarming/.swarming/w/ir/x/w/targetrepo4229939811/go/ssa/builder_test.go:882 +0x4d fp=0xa0bbf60 sp=0xa0bbdf0 pc=0x2934004d
testing.tRunner(0xa12bd40, 0xa111e78)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xa0bbfc8 sp=0xa0bbf60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xa0bbfe0 sp=0xa0bbfc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xa0bbfe8 sp=0xa0bbfe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-02-16 17:49 x_tools-go1.22-wasip1-wasm_wazero tools@c61f99f1 release-branch.go1.22@6cbe522f x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x1b64000 span.limit=0x1b65ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4bf, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1ccd4e8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 642 gp=0x193ddc0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2850375605/go/ssa/builder.go:2621 fp=0x22bb7e0 sp=0x22bb7d8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x22bb7e8 sp=0x22bb7e0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo2850375605/go/ssa/builder.go:2621 +0x1b
2024-02-16 21:45 x_tools-go1.22-wasip1-wasm_wasmtime tools@3ac77cb1 release-branch.go1.22@6cbe522f x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x10ae0000 span.limit=0x10ae2000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4bf, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1cd0ae8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xb27d860)
	/home/swarming/.swarming/w/ir/x/w/targetrepo781699401/go/ssa/builder_test.go:882 +0x4d fp=0xbb21f60 sp=0xbb21df0 pc=0x2934004d
testing.tRunner(0xb27d860, 0xb2d63d8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xbb21fc8 sp=0xbb21f60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xbb21fe0 sp=0xbb21fc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xbb21fe8 sp=0xbb21fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-16 22:46 x_tools-gotip-wasip1-wasm_wasmtime tools@51dec259 go@5a412045 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x2232000 span.limit=0x2233fa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe5b6, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x50b5c8 sp=0x50b5a0 pc=0x12890003
runtime.badPointer(0x1caf520, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50b608 sp=0x50b5c8 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo3377257609/go/ssa/builder.go:2621 +0x1b

goroutine 639 gp=0x18e3180 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3377257609/go/ssa/builder.go:2621 +0x1 fp=0x2287fe0 sp=0x2287fd8 pc=0x23e40001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x2287fe8 sp=0x2287fe0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo3377257609/go/ssa/builder.go:2621 +0x1b
2024-02-20 20:33 x_tools-go1.22-wasip1-wasm_wasmtime tools@3f67f80b release-branch.go1.22@6cbe522f x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x32aa000 span.limit=0x32e7f70 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe4bf, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1cbcfd8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo3720152774/go/ssa/builder.go:2621 +0x1b

goroutine 639 gp=0x18fb880 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3720152774/go/ssa/builder.go:2621 fp=0x18427e0 sp=0x18427d8 pc=0x23dc0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18427e8 sp=0x18427e0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo3720152774/go/ssa/builder.go:2621 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-22 17:20 x_tools-go1.21-wasip1-wasm_wasmtime tools@a4d92152 release-branch.go1.21@f38fca30 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x3336000 span.limit=0x3338000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xba045, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x25cf180, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9948b60)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3611556246/go/ssa/builder_test.go:882 +0x52 fp=0x9699f60 sp=0x9699dd8 pc=0x28a10052
testing.tRunner(0x9948b60, 0x9956498)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1595 +0xc fp=0x9699fc8 sp=0x9699f60 pc=0x199b000c
testing.(*T).Run.func1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x2 fp=0x9699fe0 sp=0x9699fc8 pc=0x19a10002
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x9699fe8 sp=0x9699fe0 pc=0x14e70001
created by testing.(*T).Run in goroutine 518
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x47

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-26 21:13 x_tools-gotip-wasip1-wasm_wasmtime tools@9b589093 go@ccbc725f x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x1a00000 span.limit=0x1a01e00 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe922, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5055e8 sp=0x5055c0 pc=0x12890003
runtime.badPointer(0x1ca8bd0, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x505628 sp=0x5055e8 pc=0x10f9000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x98244e0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo169575965/go/ssa/builder_test.go:882 +0x4d fp=0x2ae3f60 sp=0x2ae3df0 pc=0x2940004d
testing.tRunner(0x98244e0, 0x97f7b78)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x2ae3fc8 sp=0x2ae3f60 pc=0x1a09000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x2ae3fe0 sp=0x2ae3fc8 pc=0x1a0f0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x2ae3fe8 sp=0x2ae3fe0 pc=0x153b0001
created by testing.(*T).Run in goroutine 570
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-27 17:43 x_tools-go1.21-wasip1-wasm_wasmtime tools@fc703543 release-branch.go1.21@6d31b271 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x30ba000 span.limit=0x30c4000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xba040, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x24fafb8, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x23f0340)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2170800704/go/ssa/builder_test.go:882 +0x52 fp=0x3099f60 sp=0x3099dd8 pc=0x28a10052
testing.tRunner(0x23f0340, 0xa238be8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1595 +0xc fp=0x3099fc8 sp=0x3099f60 pc=0x199b000c
testing.(*T).Run.func1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x2 fp=0x3099fe0 sp=0x3099fc8 pc=0x19a10002
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x3099fe8 sp=0x3099fe0 pc=0x14e70001
created by testing.(*T).Run in goroutine 518
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x47
2024-02-28 19:27 x_tools-gotip-wasip1-wasm_wazero tools@4d4e8028 go@2278ffcb x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x21c6000 span.limit=0x21c8000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbeb81, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x504608 sp=0x5045e0 pc=0x12890003
runtime.badPointer(0x1cbe880, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x504648 sp=0x504608 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1029671163/go/ssa/builder.go:2621 +0x1b

goroutine 645 gp=0x20ee700 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1029671163/go/ssa/builder.go:2621 +0x1 fp=0x219b7e0 sp=0x219b7d8 pc=0x23ef0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x219b7e8 sp=0x219b7e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1029671163/go/ssa/builder.go:2621 +0x1b
2024-02-28 19:29 x_tools-gotip-wasip1-wasm_wazero tools@1f7dbdf0 go@b426e979 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:855: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x2240000 span.limit=0x2241fa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbeb81, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x504608 sp=0x5045e0 pc=0x12890003
runtime.badPointer(0x1cc22f8, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x504648 sp=0x504608 pc=0x10f9000e
...
created by testing.(*T).Run in goroutine 570
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 645 gp=0x1afe380 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3646958098/go/ssa/builder.go:2621 +0x1 fp=0x222d7e0 sp=0x222d7d8 pc=0x23ef0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x222d7e8 sp=0x222d7e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo3646958098/go/ssa/builder.go:2621 +0x1b
2024-02-28 21:26 x_tools-go1.21-wasip1-wasm_wasmtime tools@38b0e9bf release-branch.go1.21@3643147a x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:856: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x2258000 span.limit=0x225a000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xba020, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4b8cc8 sp=0x4b8ca0 pc=0x12760003
runtime.badPointer(0x24a7c50, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4b8d08 sp=0x4b8cc8 pc=0x10ef000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo1841518354/go/ssa/builder.go:2620 +0x1b

goroutine 589 [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.func2()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1841518354/go/ssa/builder.go:2620 fp=0x183d7e0 sp=0x183d7d8 pc=0x234b0000
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x183d7e8 sp=0x183d7e0 pc=0x14e70001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 573
	/home/swarming/.swarming/w/ir/x/w/targetrepo1841518354/go/ssa/builder.go:2620 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-02-29 21:45 x_tools-gotip-wasip1-wasm_wazero tools@5bf7d005 go@5dcc04ae x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x221a000 span.limit=0x221bfa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbec94, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5066c8 sp=0x5066a0 pc=0x12890003
runtime.badPointer(0x1cc4c40, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x506708 sp=0x5066c8 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1830389045/go/ssa/builder.go:2619 +0x1b

goroutine 645 gp=0x20f08c0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1830389045/go/ssa/builder.go:2619 +0x1 fp=0x22357e0 sp=0x22357d8 pc=0x23fd0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x22357e8 sp=0x22357e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1830389045/go/ssa/builder.go:2619 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-03-04 22:41 x_tools-go1.22-wasip1-wasm_wasmtime tools@7656c4c6 release-branch.go1.22@16830ab4 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x215e000 span.limit=0x215ffa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe530, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a5c8 sp=0x50a5a0 pc=0x12880003
runtime.badPointer(0x1ccf670, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a608 sp=0x50a5c8 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9897ba0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3238230103/go/ssa/builder_test.go:881 +0x4d fp=0x981ff60 sp=0x981fdf0 pc=0x293e004d
testing.tRunner(0x9897ba0, 0x98c4078)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x981ffc8 sp=0x981ff60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x981ffe0 sp=0x981ffc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x981ffe8 sp=0x981ffe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-03-05 15:40 x_tools-gotip-wasip1-wasm_wazero tools@4c85bedd go@5e387b2f x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x22ea000 span.limit=0x22ebfa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbec94, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5066c8 sp=0x5066a0 pc=0x12890003
runtime.badPointer(0x1ccf678, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x506708 sp=0x5066c8 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo903423212/go/ssa/builder.go:2619 +0x1b

goroutine 645 gp=0x18d8e00 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo903423212/go/ssa/builder.go:2619 +0x1 fp=0x21757e0 sp=0x21757d8 pc=0x23fd0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x21757e8 sp=0x21757e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo903423212/go/ssa/builder.go:2619 +0x1b
2024-03-05 19:26 x_tools-go1.22-wasip1-wasm_wasmtime tools@029c4eaf release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x10aac000 span.limit=0x10b1bf90 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe5c1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50b5c8 sp=0x50b5a0 pc=0x12880003
runtime.badPointer(0x1c90308, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50b608 sp=0x50b5c8 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9878000)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2250823061/go/ssa/builder_test.go:881 +0x4d fp=0x97cdf60 sp=0x97cddf0 pc=0x293e004d
testing.tRunner(0x9878000, 0x9874078)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x97cdfc8 sp=0x97cdf60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x97cdfe0 sp=0x97cdfc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x97cdfe8 sp=0x97cdfe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-03-06 14:41 x_tools-go1.22-wasip1-wasm_wazero tools@ff00c7bd release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2092000 span.limit=0x2093ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe5c1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50b5c8 sp=0x50b5a0 pc=0x12880003
runtime.badPointer(0x1cc4fb8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50b608 sp=0x50b5c8 pc=0x10f8000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo3022992877/go/ssa/builder.go:2625 +0x1b

goroutine 641 gp=0x1947a40 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3022992877/go/ssa/builder.go:2625 fp=0x1856fe0 sp=0x1856fd8 pc=0x23ef0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x1856fe8 sp=0x1856fe0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo3022992877/go/ssa/builder.go:2625 +0x1b
2024-03-07 17:26 x_tools-go1.22-wasip1-wasm_wasmtime tools@9a6aed93 release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x21fa000 span.limit=0x21fbfa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe581, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1ccf288, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9a6e1a0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3542854045/go/ssa/builder_test.go:881 +0x4d fp=0x99d1f60 sp=0x99d1df0 pc=0x293a004d
testing.tRunner(0x9a6e1a0, 0x9a7a078)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x99d1fc8 sp=0x99d1f60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x99d1fe0 sp=0x99d1fc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x99d1fe8 sp=0x99d1fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-03-07 22:04 x_tools-gotip-wasip1-wasm_wazero tools@656fcde9 go@5a329c3b x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x21fc000 span.limit=0x21fdfa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbed04, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5066a8 sp=0x506680 pc=0x12890003
runtime.badPointer(0x1cbb9b0, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5066e8 sp=0x5066a8 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1497782730/go/ssa/builder.go:2625 +0x1b

goroutine 645 gp=0x20ee700 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1497782730/go/ssa/builder.go:2625 +0x1 fp=0x21b37e0 sp=0x21b37d8 pc=0x23fb0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x21b37e8 sp=0x21b37e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1497782730/go/ssa/builder.go:2625 +0x1b
2024-03-08 15:27 x_tools-go1.22-wasip1-wasm_wasmtime tools@31f056a4 release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x2158000 span.limit=0x2159ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe581, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1cb79a8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x980e4e0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1408202204/go/ssa/builder_test.go:881 +0x4d fp=0x9767f60 sp=0x9767df0 pc=0x293a004d
testing.tRunner(0x980e4e0, 0x981a078)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x9767fc8 sp=0x9767f60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x9767fe0 sp=0x9767fc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x9767fe8 sp=0x9767fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-03-08 15:27 x_tools-gotip-wasip1-wasm_wazero tools@31f056a4 go@69583738 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x287a000 span.limit=0x2885e00 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbed04, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5066a8 sp=0x506680 pc=0x12890003
runtime.badPointer(0x1cb9d90, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5066e8 sp=0x5066a8 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo2124590018/go/ssa/builder.go:2625 +0x1b

goroutine 645 gp=0x20e8e00 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2124590018/go/ssa/builder.go:2625 +0x1 fp=0x228d7e0 sp=0x228d7d8 pc=0x23fb0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x228d7e8 sp=0x228d7e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo2124590018/go/ssa/builder.go:2625 +0x1b
2024-03-08 16:23 x_tools-go1.22-wasip1-wasm_wasmtime tools@9b64301e release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x3a66000 span.limit=0x3a67fe0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe581, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1c9ba00, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 642 gp=0x1900e00 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1627313756/go/ssa/builder.go:2625 fp=0x202b7e0 sp=0x202b7d8 pc=0x23eb0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x202b7e8 sp=0x202b7e0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo1627313756/go/ssa/builder.go:2625 +0x1b
2024-03-08 16:23 x_tools-gotip-wasip1-wasm_wazero tools@9b64301e go@69583738 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x231c000 span.limit=0x231dfa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbed04, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5066a8 sp=0x506680 pc=0x12890003
runtime.badPointer(0x1cca260, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5066e8 sp=0x5066a8 pc=0x10f9000e
...
created by testing.(*T).Run in goroutine 570
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 645 gp=0x20f4540 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1212306789/go/ssa/builder.go:2625 +0x1 fp=0x219d7e0 sp=0x219d7d8 pc=0x23fb0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x219d7e8 sp=0x219d7e0 pc=0x153b0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1212306789/go/ssa/builder.go:2625 +0x1b
2024-03-08 17:07 x_tools-go1.22-wasip1-wasm_wasmtime tools@c1789339 release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x10ae0000 span.limit=0x10ae1ff8 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe581, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a588 sp=0x50a560 pc=0x12880003
runtime.badPointer(0x1cb4480, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a5c8 sp=0x50a588 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa22c1a0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2574324960/go/ssa/builder_test.go:881 +0x4d fp=0xa18ff60 sp=0xa18fdf0 pc=0x293a004d
testing.tRunner(0xa22c1a0, 0xa236078)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xa18ffc8 sp=0xa18ff60 pc=0x1a03000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xa18ffe0 sp=0xa18ffc8 pc=0x1a090002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xa18ffe8 sp=0xa18ffe0 pc=0x15380001
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-03-08 20:35 x_tools-gotip-wasip1-wasm_wasmtime tools@1f580da0 go@61d6817c x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x94e4000 span.limit=0x94e5f80 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbeea0, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5066a8 sp=0x506680 pc=0x12890003
runtime.badPointer(0x1cb61c8, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5066e8 sp=0x5066a8 pc=0x10f9000e
...
created by testing.(*T).Run in goroutine 570
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 645 gp=0x18ca1c0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1631272138/go/ssa/builder.go:2625 +0x1 fp=0x381f7e0 sp=0x381f7d8 pc=0x23fc0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x381f7e8 sp=0x381f7e0 pc=0x153c0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1631272138/go/ssa/builder.go:2625 +0x1b
2024-03-08 23:49 x_tools-gotip-wasip1-wasm_wasmtime tools@176e895e go@ec4baaca x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unallocated span span.base()=0x3106000 span.limit=0x3108000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbeef9, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5078c8 sp=0x5078a0 pc=0x12890003
runtime.badPointer(0x1cc77c8, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x507908 sp=0x5078c8 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo3240476632/go/ssa/builder.go:2625 +0x1b

goroutine 645 gp=0x18b2000 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo3240476632/go/ssa/builder.go:2625 +0x1 fp=0x18437e0 sp=0x18437d8 pc=0x23ff0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18437e8 sp=0x18437e0 pc=0x153c0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo3240476632/go/ssa/builder.go:2625 +0x1b
2024-03-08 23:49 x_tools-gotip-wasip1-wasm_wazero tools@176e895e go@ec4baaca x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10af0000 to unused region of span span.base()=0x22e4000 span.limit=0x22e5fe0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbeef9, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5078c8 sp=0x5078a0 pc=0x12890003
runtime.badPointer(0x1ccff90, 0x10af0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x507908 sp=0x5078c8 pc=0x10f9000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1713053647/go/ssa/builder.go:2625 +0x1b

goroutine 645 gp=0x20f4540 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1713053647/go/ssa/builder.go:2625 +0x1 fp=0x21977e0 sp=0x21977d8 pc=0x23ff0001
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x21977e8 sp=0x21977e0 pc=0x153c0001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo1713053647/go/ssa/builder.go:2625 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-03-14 17:37 x_tools-go1.22-wasip1-wasm_wazero tools@e2567148 release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x1bf0000 span.limit=0x1bf1ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe5a1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a7a8 sp=0x50a780 pc=0x12880003
runtime.badPointer(0x1cd2818, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a7e8 sp=0x50a7a8 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 641 gp=0x216ddc0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2787147175/go/ssa/builder.go:2625 fp=0x1851fe0 sp=0x1851fd8 pc=0x23ed0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x1851fe8 sp=0x1851fe0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo2787147175/go/ssa/builder.go:2625 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-03-14 21:55 x_tools-go1.22-wasip1-wasm_wasmtime tools@67e856be release-branch.go1.22@db6097f8 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x10aac000 span.limit=0x10b1bf90 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe5a1, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x50a7a8 sp=0x50a780 pc=0x12880003
runtime.badPointer(0x1ccacc8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a7e8 sp=0x50a7a8 pc=0x10f8000e
...
created by testing.(*T).Run in goroutine 568
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 639 gp=0x18d21c0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo1738883342/go/ssa/builder.go:2625 fp=0x1845fe0 sp=0x1845fd8 pc=0x23ed0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x1845fe8 sp=0x1845fe0 pc=0x15380001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 623
	/home/swarming/.swarming/w/ir/x/w/targetrepo1738883342/go/ssa/builder.go:2625 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-03-14 21:55 x_tools-gotip-wasip1-wasm_wasmtime tools@67e856be go@88480fad x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10b10000 to unused region of span span.base()=0x1a44000 span.limit=0x1a45e00 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe97b, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x5089a8 sp=0x508980 pc=0x128b0003
runtime.badPointer(0x1ca5e38, 0x10b10000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5089e8 sp=0x5089a8 pc=0x10fb000e
...
created by testing.(*T).Run in goroutine 570
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

goroutine 645 gp=0x18d41c0 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo2554337628/go/ssa/builder.go:2625 fp=0x22697e0 sp=0x22697d8 pc=0x24070000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x22697e8 sp=0x22697e0 pc=0x15440001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo2554337628/go/ssa/builder.go:2625 +0x1b

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-03-19 16:30 x_tools-gotip-wasip1-wasm_wazero tools@2ba7cf96 go@8f7df225 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10b10000 to unused region of span span.base()=0x2032000 span.limit=0x2033ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbf0f0, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x50a9a8 sp=0x50a980 pc=0x128b0003
runtime.badPointer(0x1cd5f80, 0x10b10000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a9e8 sp=0x50a9a8 pc=0x10fb000e
...
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo719830494/go/ssa/builder.go:2625 +0x1b

goroutine 645 gp=0x20fc700 m=nil [runnable]:
golang.org/x/tools/go/ssa.(*Program).Build.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/targetrepo719830494/go/ssa/builder.go:2625 fp=0x21757e0 sp=0x21757d8 pc=0x240a0000
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x21757e8 sp=0x21757e0 pc=0x15440001
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 625
	/home/swarming/.swarming/w/ir/x/w/targetrepo719830494/go/ssa/builder.go:2625 +0x1b
2024-03-19 18:53 x_tools-gotip-wasip1-wasm_wazero tools@813e70a9 go@8f7df225 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10b10000 to unused region of span span.base()=0x3254000 span.limit=0x3255f80 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbf0f0, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x50a9a8 sp=0x50a980 pc=0x128b0003
runtime.badPointer(0x1ccd598, 0x10b10000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a9e8 sp=0x50a9a8 pc=0x10fb000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9a28680)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1749657354/go/ssa/builder_test.go:881 +0x4d fp=0x2a9df60 sp=0x2a9ddf0 pc=0x2961004d
testing.tRunner(0x9a28680, 0x99f9968)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x2a9dfc8 sp=0x2a9df60 pc=0x1a1d000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x2a9dfe0 sp=0x2a9dfc8 pc=0x1a230002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x2a9dfe8 sp=0x2a9dfe0 pc=0x15440001
created by testing.(*T).Run in goroutine 570
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-03-19 20:46 x_tools-gotip-wasip1-wasm_wasmtime tools@d0f7dcef go@6dca7076 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:854: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10b10000 to unused region of span span.base()=0x39a2000 span.limit=0x39a3fe0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbf0f0, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x50a9a8 sp=0x50a980 pc=0x128b0003
runtime.badPointer(0x1cdad90, 0x10b10000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x50a9e8 sp=0x50a9a8 pc=0x10fb000e
...
runtime.gopark(0xc95f8, 0x1889f20, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x22 fp=0x1848738 sp=0x1848710 pc=0x12b30022
runtime.gcBgMarkWorker(0x1b805b0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1333 +0x1f fp=0x18487d0 sp=0x1848738 pc=0x1145001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1249 +0x2 fp=0x18487e0 sp=0x18487d0 pc=0x11440002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18487e8 sp=0x18487e0 pc=0x15440001
created by runtime.gcBgMarkStartWorkers in goroutine 43
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1249 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-04-23 15:10 x_tools-gotip-wasip1-wasm_wasmtime tools@a363d11f go@a62c290c x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10880000 to unused region of span span.base()=0x2036000 span.limit=0x2037ee0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc3856, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x4e6408 sp=0x4e63e0 pc=0x12620003
runtime.badPointer(0x1c87e90, 0x10880000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x4e6448 sp=0x4e6408 pc=0x10de000e
...
runtime.gopark(0xcdcd0, 0x1899ee0, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:401 +0x22 fp=0x1848738 sp=0x1848710 pc=0x128a0022
runtime.gcBgMarkWorker(0x1b884d0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1352 +0x1f fp=0x18487d0 sp=0x1848738 pc=0x111c001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x2 fp=0x18487e0 sp=0x18487d0 pc=0x111b0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18487e8 sp=0x18487e0 pc=0x151f0001
created by runtime.gcBgMarkStartWorkers in goroutine 42
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-04-26 18:18 x_tools-go1.21-wasip1-wasm_wazero tools@2fa621c3 release-branch.go1.21@891ac91e x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unallocated span span.base()=0x10a50000 span.limit=0x10a52000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe1ff, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4cc5e8 sp=0x4cc5c0 pc=0x12760003
runtime.badPointer(0x249d210, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4cc628 sp=0x4cc5e8 pc=0x10ef000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa104000)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2801034606/go/ssa/builder_test.go:830 +0x52 fp=0x9a3df60 sp=0x9a3ddd8 pc=0x29100052
testing.tRunner(0xa104000, 0xa0cd830)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1595 +0xc fp=0x9a3dfc8 sp=0x9a3df60 pc=0x199d000c
testing.(*T).Run.func1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x2 fp=0x9a3dfe0 sp=0x9a3dfc8 pc=0x19a30002
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x9a3dfe8 sp=0x9a3dfe0 pc=0x14e70001
created by testing.(*T).Run in goroutine 517
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x47
2024-04-26 18:18 x_tools-gotip-wasip1-wasm_wazero tools@2fa621c3 go@b384ee7c x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10880000 to unallocated span span.base()=0x10800000 span.limit=0x108ddf70 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc381a, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x4e63e8 sp=0x4e63c0 pc=0x12620003
runtime.badPointer(0x1cb5c58, 0x10880000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x4e6428 sp=0x4e63e8 pc=0x10de000e
...
runtime.gopark(0xcdc90, 0x1bd60a0, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:401 +0x22 fp=0x1856738 sp=0x1856710 pc=0x128a0022
runtime.gcBgMarkWorker(0x1b904d0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1352 +0x1f fp=0x18567d0 sp=0x1856738 pc=0x111c001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x2 fp=0x18567e0 sp=0x18567d0 pc=0x111b0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18567e8 sp=0x18567e0 pc=0x151f0001
created by runtime.gcBgMarkStartWorkers in goroutine 42
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-04-29 15:14 x_tools-gotip-wasip1-wasm_wasmtime tools@5ef4fc90 go@16ce8b39 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10880000 to unused region of span span.base()=0x3344000 span.limit=0x3345fe0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc377a, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x4e83e8 sp=0x4e83c0 pc=0x12620003
runtime.badPointer(0x1c899a8, 0x10880000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x4e8428 sp=0x4e83e8 pc=0x10de000e
...
runtime.gopark(0xcdbf8, 0x1899ee0, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:401 +0x22 fp=0x1848738 sp=0x1848710 pc=0x128a0022
runtime.gcBgMarkWorker(0x1b884d0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1352 +0x1f fp=0x18487d0 sp=0x1848738 pc=0x111c001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x2 fp=0x18487e0 sp=0x18487d0 pc=0x111b0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18487e8 sp=0x18487e0 pc=0x151f0001
created by runtime.gcBgMarkStartWorkers in goroutine 42
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-05-06 16:54 x_tools-go1.22-wasip1-wasm_wasmtime tools@cc29c91b release-branch.go1.22@93d8777d x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x232a000 span.limit=0x2337f70 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc268f, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x51eea8 sp=0x51ee80 pc=0x12880003
runtime.badPointer(0x1c8ee50, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x51eee8 sp=0x51eea8 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9dfc1a0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2163722421/go/ssa/builder_test.go:830 +0x4d fp=0x9d6bf60 sp=0x9d6bdf0 pc=0x29b6004d
testing.tRunner(0x9dfc1a0, 0x9dddab8)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x9d6bfc8 sp=0x9d6bf60 pc=0x1a05000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x9d6bfe0 sp=0x9d6bfc8 pc=0x1a0b0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x9d6bfe8 sp=0x9d6bfe0 pc=0x15380001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-05-06 18:08 x_tools-gotip-wasip1-wasm_wazero tools@b020bdb5 go@5122a679 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10870000 to unallocated span span.base()=0x10800000 span.limit=0x108ddf70 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc3c19, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x4e93c8 sp=0x4e93a0 pc=0x12610003
runtime.badPointer(0x1cabae8, 0x10870000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x4e9408 sp=0x4e93c8 pc=0x10dd000e
...
runtime.gopark(0xce088, 0x1bd60a0, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:401 +0x22 fp=0x1856738 sp=0x1856710 pc=0x12890022
runtime.gcBgMarkWorker(0x1b924d0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1352 +0x1f fp=0x18567d0 sp=0x1856738 pc=0x111b001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x2 fp=0x18567e0 sp=0x18567d0 pc=0x111a0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18567e8 sp=0x18567e0 pc=0x151e0001
created by runtime.gcBgMarkStartWorkers in goroutine 42
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-05-08 14:20 x_tools-go1.22-wasip1-wasm_wazero tools@5daf157e release-branch.go1.22@adbfb672 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x3202000 span.limit=0x3204000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc268f, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x51eea8 sp=0x51ee80 pc=0x12880003
runtime.badPointer(0x1cb4e28, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x51eee8 sp=0x51eea8 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9a40340)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2859890413/go/ssa/builder_test.go:830 +0x4d fp=0x99a5f60 sp=0x99a5df0 pc=0x29b6004d
testing.tRunner(0x9a40340, 0x9a19ad0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x99a5fc8 sp=0x99a5f60 pc=0x1a05000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x99a5fe0 sp=0x99a5fc8 pc=0x1a0b0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x99a5fe8 sp=0x99a5fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-05-08 15:39 x_tools-gotip-wasip1-wasm_wasmtime tools@ff28778d go@5be95e09 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10870000 to unused region of span span.base()=0x2046000 span.limit=0x2048000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc3dcf, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1021 +0x3 fp=0x4ea3c8 sp=0x4ea3a0 pc=0x12610003
runtime.badPointer(0x1d05058, 0x10870000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x4ea408 sp=0x4ea3c8 pc=0x10dd000e
...
runtime.gopark(0xce280, 0x1899ee0, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:401 +0x22 fp=0x1848738 sp=0x1848710 pc=0x12890022
runtime.gcBgMarkWorker(0x1b884d0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1352 +0x1f fp=0x18487d0 sp=0x1848738 pc=0x111b001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x2 fp=0x18487e0 sp=0x18487d0 pc=0x111a0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18487e8 sp=0x18487e0 pc=0x151e0001
created by runtime.gcBgMarkStartWorkers in goroutine 42
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-05-14 18:28 x_tools-go1.21-wasip1-wasm_wasmtime tools@e8808ed5 release-branch.go1.21@0fa334d4 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unallocated span span.base()=0x2898000 span.limit=0x2899fe0 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbe5db, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4cf668 sp=0x4cf640 pc=0x12760003
runtime.badPointer(0x2521d58, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4cf6a8 sp=0x4cf668 pc=0x10ef000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x3ae7040)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2973486280/go/ssa/builder_test.go:830 +0x52 fp=0x194bf60 sp=0x194bdd8 pc=0x291b0052
testing.tRunner(0x3ae7040, 0x9580270)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1595 +0xc fp=0x194bfc8 sp=0x194bf60 pc=0x199d000c
testing.(*T).Run.func1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x2 fp=0x194bfe0 sp=0x194bfc8 pc=0x19a30002
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x194bfe8 sp=0x194bfe0 pc=0x14e70001
created by testing.(*T).Run in goroutine 517
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x47

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-05-15 22:01 x_tools-gotip-js-wasm tools@b92578a5 go@6ed31e3c x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10870000 to unused region of span span.base()=0x18c0000 span.limit=0x18c2000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc6a0d, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1026 +0x3 fp=0x4fb208 sp=0x4fb1e0 pc=0x14b80003
runtime.badPointer(0x2698cd0, 0x10870000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x4fb248 sp=0x4fb208 pc=0x10e5000e
...
runtime.gopark(0xd0f98, 0x1829ea0, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:401 +0x25 fp=0x1850f38 sp=0x1850f10 pc=0x126d0025
runtime.gcBgMarkWorker(0x1baa3f0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1352 +0x1f fp=0x1850fd0 sp=0x1850f38 pc=0x1124001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x2 fp=0x1850fe0 sp=0x1850fd0 pc=0x11230002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x1850fe8 sp=0x1850fe0 pc=0x15190001
created by runtime.gcBgMarkStartWorkers in goroutine 42
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-05-17 16:49 x_tools-gotip-wasip1-wasm_wasmtime tools@499663ef go@003683f4 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:803: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10840000 to unused region of span span.base()=0x1a60000 span.limit=0x1a62000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc46bc, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1027 +0x3 fp=0x4ef5e8 sp=0x4ef5c0 pc=0x14c40003
runtime.badPointer(0x1cf1a98, 0x10840000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x4ef628 sp=0x4ef5e8 pc=0x10d2000e
...
runtime.gopark(0xceb98, 0x189be60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:402 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14c60022
runtime.gcBgMarkWorker(0x1b9c3f0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1352 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1110001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x110f0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x152b0001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1268 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-06-26 14:21 x_tools-go1.22-wasip1-wasm_wasmtime tools@e7f294d2 release-branch.go1.22@ceaf26ec x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:804: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x417e000 span.limit=0x4180000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc3494, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x524008 sp=0x523fe0 pc=0x12880003
runtime.badPointer(0x1cb34b0, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x524048 sp=0x524008 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xaa26680)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1684488662/go/ssa/builder_test.go:831 +0x4d fp=0xc0eff60 sp=0xc0efdf0 pc=0x29be004d
testing.tRunner(0xaa26680, 0xaa29440)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xc0effc8 sp=0xc0eff60 pc=0x1a04000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xc0effe0 sp=0xc0effc8 pc=0x1a0a0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xc0effe8 sp=0xc0effe0 pc=0x15380001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-06-27 17:52 x_tools-go1.21-wasip1-wasm_wasmtime tools@69160777 release-branch.go1.21@c9be6ae7 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:804: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x1baa000 span.limit=0x1bac000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbee1b, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4d06e8 sp=0x4d06c0 pc=0x12760003
runtime.badPointer(0x250e9c8, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4d0728 sp=0x4d06e8 pc=0x10ef000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xc8571e0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3270711853/go/ssa/builder_test.go:831 +0x52 fp=0xc1d9f60 sp=0xc1d9dd8 pc=0x29150052
testing.tRunner(0xc8571e0, 0xc8971a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1595 +0xc fp=0xc1d9fc8 sp=0xc1d9f60 pc=0x199c000c
testing.(*T).Run.func1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x2 fp=0xc1d9fe0 sp=0xc1d9fc8 pc=0x19a20002
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0xc1d9fe8 sp=0xc1d9fe0 pc=0x14e70001
created by testing.(*T).Run in goroutine 517
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x47
2024-06-27 18:14 x_tools-go1.22-wasip1-wasm_wasmtime tools@72edac2f release-branch.go1.22@c2d4f852 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:804: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unused region of span span.base()=0x22fe000 span.limit=0x2300000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc3494, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x524008 sp=0x523fe0 pc=0x12880003
runtime.badPointer(0x1c860f8, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x524048 sp=0x524008 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xd3ee680)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1482588197/go/ssa/builder_test.go:831 +0x4d fp=0xd361f60 sp=0xd361df0 pc=0x29be004d
testing.tRunner(0xd3ee680, 0xd3f1410)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xd361fc8 sp=0xd361f60 pc=0x1a04000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xd361fe0 sp=0xd361fc8 pc=0x1a0a0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xd361fe8 sp=0xd361fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-07-11 15:04 x_tools-go1.21-wasip1-wasm_wasmtime tools@ef4d0833 release-branch.go1.21@e073febe x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:804: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10a50000 to unused region of span span.base()=0x1bd4000 span.limit=0x1bd6000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xbee1b, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1077 +0x3 fp=0x4d06e8 sp=0x4d06c0 pc=0x12760003
runtime.badPointer(0x24972c0, 0x10a50000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:321 +0xe fp=0x4d0728 sp=0x4d06e8 pc=0x10ef000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x90eba00)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2521667020/go/ssa/builder_test.go:831 +0x52 fp=0x8ed1f60 sp=0x8ed1dd8 pc=0x29150052
testing.tRunner(0x90eba00, 0x917d158)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1595 +0xc fp=0x8ed1fc8 sp=0x8ed1f60 pc=0x199c000c
testing.(*T).Run.func1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x2 fp=0x8ed1fe0 sp=0x8ed1fc8 pc=0x19a20002
runtime.goexit()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:401 +0x1 fp=0x8ed1fe8 sp=0x8ed1fe0 pc=0x14e70001
created by testing.(*T).Run in goroutine 517
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1648 +0x47

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-07-11 22:00 x_tools-go1.22-wasip1-wasm_wasmtime tools@d9c6af3f release-branch.go1.22@4e548f2c x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:804: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x422c000 span.limit=0x422de00 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc3554, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x524008 sp=0x523fe0 pc=0x12880003
runtime.badPointer(0x1ccaa00, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x524048 sp=0x524008 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xf2d7520)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1557675770/go/ssa/builder_test.go:831 +0x4d fp=0x19aff60 sp=0x19afdf0 pc=0x29bf004d
testing.tRunner(0xf2d7520, 0xc1e81b0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x19affc8 sp=0x19aff60 pc=0x1a04000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x19affe0 sp=0x19affc8 pc=0x1a0a0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x19affe8 sp=0x19affe0 pc=0x15380001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-07-31 20:28 x_tools-go1.22-wasip1-wasm_wasmtime tools@ead76ab5 release-branch.go1.22@8c8adffd x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:804: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10ae0000 to unallocated span span.base()=0x10ae0000 span.limit=0x10ae2000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc4dc5, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x52d0e8 sp=0x52d0c0 pc=0x12880003
runtime.badPointer(0x1c9e100, 0x10ae0000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x52d128 sp=0x52d0e8 pc=0x10f8000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xabf36c0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo386753562/go/ssa/builder_test.go:831 +0x4d fp=0x19d1f60 sp=0x19d1df0 pc=0x2a01004d
testing.tRunner(0xabf36c0, 0x9929380)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x19d1fc8 sp=0x19d1f60 pc=0x1a1e000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x19d1fe0 sp=0x19d1fc8 pc=0x1a240002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x19d1fe8 sp=0x19d1fe0 pc=0x15380001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-05 18:02 x_tools-go1.23-wasip1-wasm_wasmtime tools@3ffd605b release-branch.go1.23@7adb0122 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unallocated span span.base()=0x1080a000 span.limit=0x10818000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50baa8 sp=0x50ba80 pc=0x14cc0003
runtime.badPointer(0x1c6d770, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bae8 sp=0x50baa8 pc=0x10c3000e
...
runtime.gopark(0xd27e8, 0x1ac0e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1ae89a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-06 13:34 x_tools-go1.23-wasip1-wasm_wasmtime tools@4653e48e release-branch.go1.23@7adb0122 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unallocated span span.base()=0x10810000 span.limit=0x10812000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50baa8 sp=0x50ba80 pc=0x14cc0003
runtime.badPointer(0x1cb7168, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bae8 sp=0x50baa8 pc=0x10c3000e
...
runtime.gopark(0xd27e8, 0x1ac2e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1aec9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-08 21:40 x_tools-go1.23-wasip1-wasm_wasmtime tools@28ba9914 release-branch.go1.23@7adb0122 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unused region of span span.base()=0x20e0000 span.limit=0x20e2000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50baa8 sp=0x50ba80 pc=0x14cc0003
runtime.badPointer(0x1c82ad8, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bae8 sp=0x50baa8 pc=0x10c3000e
...
runtime.gopark(0xd27e8, 0x1ac2e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1aec9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-13 17:53 x_tools-go1.22-wasip1-wasm_wasmtime tools@7cc3be7d release-branch.go1.22@0a525a3e x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10b00000 to unallocated span span.base()=0x10b00000 span.limit=0x10bf7f90 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc54e5, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x532188 sp=0x532160 pc=0x128a0003
runtime.badPointer(0x1ca9580, 0x10b00000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5321c8 sp=0x532188 pc=0x10fa000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa042820)
	/home/swarming/.swarming/w/ir/x/w/targetrepo892141973/go/ssa/builder_test.go:832 +0x4d fp=0x9fbff60 sp=0x9fbfdf0 pc=0x2a17004d
testing.tRunner(0xa042820, 0xa045410)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0x9fbffc8 sp=0x9fbff60 pc=0x1a2c000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0x9fbffe0 sp=0x9fbffc8 pc=0x1a320002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x9fbffe8 sp=0x9fbffe0 pc=0x153c0001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-15 15:01 x_tools-go1.23-wasip1-wasm_wasmtime tools@136c1654 release-branch.go1.23@dbecb416 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unused region of span span.base()=0x1a10000 span.limit=0x1a11e00 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bac8 sp=0x50baa0 pc=0x14cc0003
runtime.badPointer(0x1c9bfd0, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb08 sp=0x50bac8 pc=0x10c3000e
...
runtime.gopark(0xd27e8, 0x1ac2e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1ae89a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28
2024-08-15 19:58 x_tools-go1.23-wasip1-wasm_wasmtime tools@dfcdf502 release-branch.go1.23@dbecb416 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unused region of span span.base()=0x213c000 span.limit=0x213e000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bac8 sp=0x50baa0 pc=0x14cc0003
runtime.badPointer(0x1c7bc50, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb08 sp=0x50bac8 pc=0x10c3000e
...
runtime.gopark(0xd27e8, 0x1ac2e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1aec9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-16 16:31 x_tools-go1.23-wasip1-wasm_wasmtime tools@66adacf2 release-branch.go1.23@3c934055 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unallocated span span.base()=0x1080a000 span.limit=0x10818000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bac8 sp=0x50baa0 pc=0x14cc0003
runtime.badPointer(0x1c667b8, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb08 sp=0x50bac8 pc=0x10c3000e
...
runtime.gopark(0xd2828, 0x1ac0e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1aea9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-21 22:05 x_tools-go1.23-wasip1-wasm_wasmtime tools@9ef05472 release-branch.go1.23@80028457 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unused region of span span.base()=0x211c000 span.limit=0x211e000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bac8 sp=0x50baa0 pc=0x14cc0003
runtime.badPointer(0x1c7c1b8, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb08 sp=0x50bac8 pc=0x10c3000e
...
runtime.gopark(0xd2828, 0x1ac0e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1aea9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28
2024-08-22 00:06 x_tools-go1.22-wasip1-wasm_wasmtime tools@e5e8aa84 release-branch.go1.22@e87be983 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10b00000 to unused region of span span.base()=0x13354000 span.limit=0x13355fe0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc54e5, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1023 +0x3 fp=0x532188 sp=0x532160 pc=0x128a0003
runtime.badPointer(0x1ca3860, 0x10b00000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:286 +0xe fp=0x5321c8 sp=0x532188 pc=0x10fa000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0xa14c1a0)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3366401967/go/ssa/builder_test.go:832 +0x4d fp=0xa0b1f60 sp=0xa0b1df0 pc=0x2a17004d
testing.tRunner(0xa14c1a0, 0xa131410)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1689 +0xd fp=0xa0b1fc8 sp=0xa0b1f60 pc=0x1a2c000d
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x2 fp=0xa0b1fe0 sp=0xa0b1fc8 pc=0x1a320002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0xa0b1fe8 sp=0xa0b1fe0 pc=0x153c0001
created by testing.(*T).Run in goroutine 567
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1742 +0x43
2024-08-22 00:06 x_tools-go1.23-wasip1-wasm_wasmtime tools@e5e8aa84 release-branch.go1.23@80028457 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unused region of span span.base()=0x21c2000 span.limit=0x21c4000 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bac8 sp=0x50baa0 pc=0x14cc0003
runtime.badPointer(0x1cd51b0, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb08 sp=0x50bac8 pc=0x10c3000e
...
runtime.gopark(0xd2828, 0x1ac0e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1aec9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-08-27 21:22 x_tools-go1.23-wasip1-wasm_wasmtime tools@adb7301a release-branch.go1.23@80028457 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unallocated span span.base()=0x10800000 span.limit=0x10822000 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e01, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bac8 sp=0x50baa0 pc=0x14cc0003
runtime.badPointer(0x1c7c178, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb08 sp=0x50bac8 pc=0x10c3000e
...
runtime.gopark(0xd2878, 0x1ac0e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14ce0022
runtime.gcBgMarkWorker(0x1aea9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15400001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-09-03 21:06 x_tools-go1.23-wasip1-wasm_wasmtime tools@2db563b1 release-branch.go1.23@3d1f1f27 x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unused region of span span.base()=0x23e6000 span.limit=0x23e7fa0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7f21, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bb08 sp=0x50bae0 pc=0x14cd0003
runtime.badPointer(0x1c871b8, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb48 sp=0x50bb08 pc=0x10c3000e
...
runtime.gopark(0xd27e0, 0x1ac0e60, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x184a738 sp=0x184a710 pc=0x14cf0022
runtime.gcBgMarkWorker(0x1aea9a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x184a7d0 sp=0x184a738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x184a7e0 sp=0x184a7d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x184a7e8 sp=0x184a7e0 pc=0x15410001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-09-04 20:07 x_tools-go1.23-wasip1-wasm_wazero tools@4fb36d15 release-branch.go1.23@69234ded x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unallocated span span.base()=0x10800000 span.limit=0x108f7f90 span.state=0
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc7e85, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bb28 sp=0x50bb00 pc=0x14cd0003
runtime.badPointer(0x1c863d8, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb68 sp=0x50bb28 pc=0x10c3000e
...
runtime.gopark(0xd2740, 0x1aa7000, 0x1a, 0xa, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:424 +0x22 fp=0x1858738 sp=0x1858710 pc=0x14cf0022
runtime.gcBgMarkWorker(0x1af29a0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1363 +0x1f fp=0x18587d0 sp=0x1858738 pc=0x1100001f
runtime.gcBgMarkStartWorkers.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x2 fp=0x18587e0 sp=0x18587d0 pc=0x10ff0002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x18587e8 sp=0x18587e0 pc=0x15410001
created by runtime.gcBgMarkStartWorkers in goroutine 41
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mgc.go:1279 +0x28

watchflakes

@gopherbot
Copy link
Contributor

Found new dashboard test flakes for:

#!watchflakes
post <- goarch == "wasm" && pkg == "golang.org/x/tools/go/ssa" && `fatal error: found bad pointer in Go heap`
2024-09-09 22:08 x_tools-go1.23-wasip1-wasm_wasmtime tools@8ba91691 release-branch.go1.23@e6598e7b x/tools/go/ssa.TestTypeparamTest/chans.go [ABORT] (log)
=== RUN   TestTypeparamTest/chans.go
    builder_test.go:805: Input: /home/swarming/.swarming/w/ir/x/w/goroot/test/typeparam/chans.go
runtime: pointer 0x10810000 to unused region of span span.base()=0x18e4000 span.limit=0x18e5fe0 span.state=1
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)

runtime stack:
runtime.throw({0xc800c, 0x3e})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1067 +0x3 fp=0x50bb28 sp=0x50bb00 pc=0x14cd0003
runtime.badPointer(0x1c7b3e8, 0x10810000, 0x0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/mbitmap.go:1247 +0xe fp=0x50bb68 sp=0x50bb28 pc=0x10c3000e
...
golang.org/x/tools/go/ssa_test.TestTypeparamTest.func1(0x9fc5860)
	/home/swarming/.swarming/w/ir/x/w/targetrepo1817933112/go/ssa/builder_test.go:832 +0x4d fp=0x4bf7f60 sp=0x4bf7df0 pc=0x2ab6004d
testing.tRunner(0x9fc5860, 0xa04b068)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1690 +0x12 fp=0x4bf7fc8 sp=0x4bf7f60 pc=0x1a6e0012
testing.(*T).Run.gowrap1()
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1743 +0x2 fp=0x4bf7fe0 sp=0x4bf7fc8 pc=0x1a740002
runtime.goexit({})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_wasm.s:434 +0x1 fp=0x4bf7fe8 sp=0x4bf7fe0 pc=0x15410001
created by testing.(*T).Run in goroutine 599
	/home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:1743 +0x46

watchflakes

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/612398 mentions this issue: go/ssa: disable TestTypeparamTest/chan.go on wasm

@timothy-king
Copy link
Contributor

Relevant line is:

go/types.(*typeWriter).typ(0x182d790, {0x1375f0, 0xa0b6b58})
	/home/swarming/.swarming/w/ir/x/w/goroot/src/go/types/typestring.go:120 +0x6 fp=0x182d678 sp=0x182d4b8 pc=0x22750006

Relevant code:

	w.seen[typ] = true // <- complaint is here
	defer delete(w.seen, typ) 

My hunch is that this is an interaction with the next line defer delete(w.seen, typ) on wasm, but I am not sure. I'm going to disable the flaky test for now, but wasm folks might want to take a look. CC @golang/wasm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly issues compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: Done
Development

No branches or pull requests

5 participants