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

Open
bcmills opened this issue Dec 14, 2023 · 13 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
Member

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: No status
Development

No branches or pull requests

4 participants