golang.org/x/build@v0.0.0-20240506185731-218518f32b70/internal/logparser/testdata/8.fail (about) 1 Section: "../test" 2 Pkg: "escape_struct_param1.go" 3 Test: "" 4 Mode: "test" 5 Snippet: 6 # go run run.go -- escape_struct_param1.go 7 exit status 1 8 /workdir/go/test/escape_struct_param1.go:25: leaking param: u to result ~r0 level=1 9 /workdir/go/test/escape_struct_param1.go:29: leaking param: u to result ~r0 level=1 10 /workdir/go/test/escape_struct_param1.go:33: leaking param: u to result ~r0 level=2 11 /workdir/go/test/escape_struct_param1.go:38: moved to heap: s 12 /workdir/go/test/escape_struct_param1.go:41: &U{...} does not escape 13 /workdir/go/test/escape_struct_param1.go:46: moved to heap: s 14 /workdir/go/test/escape_struct_param1.go:49: &U{...} does not escape 15 /workdir/go/test/escape_struct_param1.go:55: moved to heap: s 16 ... 17 /workdir/go/test/escape_struct_param1.go:141: internal compiler error: 'tUPiSPb': panic during lower while compiling tUPiSPb: 18 19 runtime error: invalid memory address or nil pointer dereference 20 21 goroutine 1 [running]: 22 cmd/compile/internal/ssa.Compile.func1() 23 /workdir/go/src/cmd/compile/internal/ssa/compile.go:49 +0xa5 24 panic({0x11325c0, 0x16bbe60}) 25 /workdir/go/src/runtime/panic.go:890 +0x262 26 math/rand.(*Rand).Int63(0xc00079c2d0) 27 ... 28 cmd/compile/internal/gc.compileFunctions.func2(0xc000796320) 29 /workdir/go/src/cmd/compile/internal/gc/compile.go:125 +0x23 30 cmd/compile/internal/gc.compileFunctions.func4({0xc0003f1e00, 0x26, 0x40}) 31 /workdir/go/src/cmd/compile/internal/gc/compile.go:152 +0x176 32 cmd/compile/internal/gc.compileFunctions() 33 /workdir/go/src/cmd/compile/internal/gc/compile.go:163 +0x1f2 34 cmd/compile/internal/gc.Main(0x11dbab8) 35 /workdir/go/src/cmd/compile/internal/gc/main.go:301 +0x1775 36 main.main() 37 /workdir/go/src/cmd/compile/main.go:57 +0x171 38 Output: 39 # go run run.go -- escape_struct_param1.go 40 exit status 1 41 /workdir/go/test/escape_struct_param1.go:25: leaking param: u to result ~r0 level=1 42 /workdir/go/test/escape_struct_param1.go:29: leaking param: u to result ~r0 level=1 43 /workdir/go/test/escape_struct_param1.go:33: leaking param: u to result ~r0 level=2 44 /workdir/go/test/escape_struct_param1.go:38: moved to heap: s 45 /workdir/go/test/escape_struct_param1.go:41: &U{...} does not escape 46 /workdir/go/test/escape_struct_param1.go:46: moved to heap: s 47 /workdir/go/test/escape_struct_param1.go:49: &U{...} does not escape 48 /workdir/go/test/escape_struct_param1.go:55: moved to heap: s 49 /workdir/go/test/escape_struct_param1.go:56: moved to heap: ps 50 /workdir/go/test/escape_struct_param1.go:58: &U{...} does not escape 51 /workdir/go/test/escape_struct_param1.go:62: leaking param: v to result ~r0 level=1 52 /workdir/go/test/escape_struct_param1.go:66: leaking param: v to result ~r0 level=1 53 /workdir/go/test/escape_struct_param1.go:70: leaking param: v to result ~r0 level=1 54 /workdir/go/test/escape_struct_param1.go:74: leaking param: v to result ~r0 level=2 55 /workdir/go/test/escape_struct_param1.go:78: leaking param: v to result ~r0 level=2 56 /workdir/go/test/escape_struct_param1.go:82: leaking param: v to result ~r0 level=1 57 /workdir/go/test/escape_struct_param1.go:86: leaking param: v to result ~r0 level=1 58 /workdir/go/test/escape_struct_param1.go:90: leaking param: v to result ~r0 level=2 59 /workdir/go/test/escape_struct_param1.go:94: leaking param: v to result ~r0 level=2 60 /workdir/go/test/escape_struct_param1.go:98: leaking param: v to result ~r0 level=2 61 /workdir/go/test/escape_struct_param1.go:102: leaking param: v to result ~r0 level=2 62 /workdir/go/test/escape_struct_param1.go:106: leaking param: v to result ~r0 level=2 63 /workdir/go/test/escape_struct_param1.go:110: leaking param: v to result ~r0 level=2 64 /workdir/go/test/escape_struct_param1.go:117: moved to heap: s2 65 /workdir/go/test/escape_struct_param1.go:118: moved to heap: s3 66 /workdir/go/test/escape_struct_param1.go:119: moved to heap: s4 67 /workdir/go/test/escape_struct_param1.go:120: moved to heap: s5 68 /workdir/go/test/escape_struct_param1.go:121: moved to heap: s6 69 /workdir/go/test/escape_struct_param1.go:123: moved to heap: ps4 70 /workdir/go/test/escape_struct_param1.go:124: moved to heap: ps6 71 /workdir/go/test/escape_struct_param1.go:126: &U{...} does not escape 72 /workdir/go/test/escape_struct_param1.go:127: &U{...} escapes to heap 73 /workdir/go/test/escape_struct_param1.go:128: &V{...} does not escape 74 /workdir/go/test/escape_struct_param1.go:135: moved to heap: s2 75 /workdir/go/test/escape_struct_param1.go:136: moved to heap: s3 76 /workdir/go/test/escape_struct_param1.go:137: moved to heap: s4 77 /workdir/go/test/escape_struct_param1.go:138: moved to heap: s5 78 /workdir/go/test/escape_struct_param1.go:139: moved to heap: s6 79 /workdir/go/test/escape_struct_param1.go:141: moved to heap: ps4 80 /workdir/go/test/escape_struct_param1.go:142: moved to heap: ps6 81 /workdir/go/test/escape_struct_param1.go:144: &U{...} does not escape 82 /workdir/go/test/escape_struct_param1.go:145: &U{...} escapes to heap 83 /workdir/go/test/escape_struct_param1.go:146: &V{...} does not escape 84 /workdir/go/test/escape_struct_param1.go:153: moved to heap: s2 85 /workdir/go/test/escape_struct_param1.go:154: moved to heap: s3 86 /workdir/go/test/escape_struct_param1.go:155: moved to heap: s4 87 /workdir/go/test/escape_struct_param1.go:156: moved to heap: s5 88 /workdir/go/test/escape_struct_param1.go:157: moved to heap: s6 89 /workdir/go/test/escape_struct_param1.go:159: moved to heap: ps4 90 /workdir/go/test/escape_struct_param1.go:160: moved to heap: ps6 91 /workdir/go/test/escape_struct_param1.go:162: &U{...} does not escape 92 /workdir/go/test/escape_struct_param1.go:163: &U{...} escapes to heap 93 /workdir/go/test/escape_struct_param1.go:164: &V{...} does not escape 94 /workdir/go/test/escape_struct_param1.go:171: moved to heap: s2 95 /workdir/go/test/escape_struct_param1.go:172: moved to heap: s3 96 /workdir/go/test/escape_struct_param1.go:173: moved to heap: s4 97 /workdir/go/test/escape_struct_param1.go:174: moved to heap: s5 98 /workdir/go/test/escape_struct_param1.go:175: moved to heap: s6 99 /workdir/go/test/escape_struct_param1.go:177: moved to heap: ps4 100 /workdir/go/test/escape_struct_param1.go:178: moved to heap: ps6 101 /workdir/go/test/escape_struct_param1.go:180: &U{...} does not escape 102 /workdir/go/test/escape_struct_param1.go:181: &U{...} escapes to heap 103 /workdir/go/test/escape_struct_param1.go:182: &V{...} does not escape 104 /workdir/go/test/escape_struct_param1.go:186: leaking param: v to result ~r0 level=2 105 /workdir/go/test/escape_struct_param1.go:190: leaking param: v to result ~r0 level=2 106 /workdir/go/test/escape_struct_param1.go:194: leaking param: v to result ~r0 level=2 107 /workdir/go/test/escape_struct_param1.go:198: leaking param: v to result ~r0 level=2 108 /workdir/go/test/escape_struct_param1.go:207: moved to heap: s4 109 /workdir/go/test/escape_struct_param1.go:208: moved to heap: s5 110 /workdir/go/test/escape_struct_param1.go:209: moved to heap: s6 111 /workdir/go/test/escape_struct_param1.go:212: moved to heap: ps6 112 /workdir/go/test/escape_struct_param1.go:214: &U{...} does not escape 113 /workdir/go/test/escape_struct_param1.go:215: &U{...} does not escape 114 /workdir/go/test/escape_struct_param1.go:216: &V{...} does not escape 115 /workdir/go/test/escape_struct_param1.go:225: moved to heap: s4 116 /workdir/go/test/escape_struct_param1.go:226: moved to heap: s5 117 /workdir/go/test/escape_struct_param1.go:227: moved to heap: s6 118 /workdir/go/test/escape_struct_param1.go:230: moved to heap: ps6 119 /workdir/go/test/escape_struct_param1.go:232: &U{...} does not escape 120 /workdir/go/test/escape_struct_param1.go:233: &U{...} does not escape 121 /workdir/go/test/escape_struct_param1.go:234: &V{...} does not escape 122 /workdir/go/test/escape_struct_param1.go:243: moved to heap: s4 123 /workdir/go/test/escape_struct_param1.go:244: moved to heap: s5 124 /workdir/go/test/escape_struct_param1.go:245: moved to heap: s6 125 /workdir/go/test/escape_struct_param1.go:248: moved to heap: ps6 126 /workdir/go/test/escape_struct_param1.go:250: &U{...} does not escape 127 /workdir/go/test/escape_struct_param1.go:251: &U{...} does not escape 128 /workdir/go/test/escape_struct_param1.go:252: &V{...} does not escape 129 /workdir/go/test/escape_struct_param1.go:261: moved to heap: s4 130 /workdir/go/test/escape_struct_param1.go:262: moved to heap: s5 131 /workdir/go/test/escape_struct_param1.go:263: moved to heap: s6 132 /workdir/go/test/escape_struct_param1.go:266: moved to heap: ps6 133 /workdir/go/test/escape_struct_param1.go:268: &U{...} does not escape 134 /workdir/go/test/escape_struct_param1.go:269: &U{...} does not escape 135 /workdir/go/test/escape_struct_param1.go:270: &V{...} does not escape 136 /workdir/go/test/escape_struct_param1.go:274: leaking param: v to result ~r0 level=4 137 /workdir/go/test/escape_struct_param1.go:289: moved to heap: s6 138 /workdir/go/test/escape_struct_param1.go:294: &U{...} does not escape 139 /workdir/go/test/escape_struct_param1.go:295: &U{...} does not escape 140 /workdir/go/test/escape_struct_param1.go:296: &V{...} does not escape 141 /workdir/go/test/escape_struct_param1.go:141: internal compiler error: 'tUPiSPb': panic during lower while compiling tUPiSPb: 142 143 runtime error: invalid memory address or nil pointer dereference 144 145 goroutine 1 [running]: 146 cmd/compile/internal/ssa.Compile.func1() 147 /workdir/go/src/cmd/compile/internal/ssa/compile.go:49 +0xa5 148 panic({0x11325c0, 0x16bbe60}) 149 /workdir/go/src/runtime/panic.go:890 +0x262 150 math/rand.(*Rand).Int63(0xc00079c2d0) 151 /workdir/go/src/math/rand/rand.go:89 +0x27 152 math/rand.(*Rand).Int31(0xc00079c2d0) 153 /workdir/go/src/math/rand/rand.go:103 +0x2b 154 math/rand.(*Rand).Int31n(0xc00079c2d0, 0x40) 155 /workdir/go/src/math/rand/rand.go:135 +0x46 156 math/rand.(*Rand).Intn(0xc00079c2d0, 0x40) 157 /workdir/go/src/math/rand/rand.go:176 +0x45 158 cmd/compile/internal/ssa.Compile(0xc00019fd40) 159 /workdir/go/src/cmd/compile/internal/ssa/compile.go:90 +0x1490 160 cmd/compile/internal/ssagen.buildssa(0xc0000ba000, 0x0) 161 /workdir/go/src/cmd/compile/internal/ssagen/ssa.go:574 +0x21e5 162 cmd/compile/internal/ssagen.Compile(0xc0000ba000, 0x0) 163 /workdir/go/src/cmd/compile/internal/ssagen/pgen.go:187 +0x3e 164 cmd/compile/internal/gc.compileFunctions.func4.1(0x0) 165 /workdir/go/src/cmd/compile/internal/gc/compile.go:153 +0x47 166 cmd/compile/internal/gc.compileFunctions.func2(0xc000796320) 167 /workdir/go/src/cmd/compile/internal/gc/compile.go:125 +0x23 168 cmd/compile/internal/gc.compileFunctions.func4({0xc0003f1e00, 0x26, 0x40}) 169 /workdir/go/src/cmd/compile/internal/gc/compile.go:152 +0x176 170 cmd/compile/internal/gc.compileFunctions() 171 /workdir/go/src/cmd/compile/internal/gc/compile.go:163 +0x1f2 172 cmd/compile/internal/gc.Main(0x11dbab8) 173 /workdir/go/src/cmd/compile/internal/gc/main.go:301 +0x1775 174 main.main() 175 /workdir/go/src/cmd/compile/main.go:57 +0x171 176 177 178 179 goroutine 1 [running]: 180 runtime/debug.Stack() 181 /workdir/go/src/runtime/debug/stack.go:24 +0x7a 182 cmd/compile/internal/base.FatalfAt({0x2, 0x8d061}, {0xc0007880c0, 0x32}, {0xc0008120a0, 0x5, 0x5}) 183 /workdir/go/src/cmd/compile/internal/base/print.go:227 +0x22a 184 cmd/compile/internal/base.Fatalf({0xc0007880c0, 0x32}, {0xc0008120a0, 0x5, 0x5}) 185 /workdir/go/src/cmd/compile/internal/base/print.go:196 +0x56 186 cmd/compile/internal/ssagen.(*ssafn).Fatalf(0xc000779e30, {0x2, 0x8d061}, {0x11cba23, 0x2c}, {0xc0007985c0, 0x4, 0x4}) 187 /workdir/go/src/cmd/compile/internal/ssagen/ssa.go:7851 +0x28a 188 cmd/compile/internal/ssa.(*Func).Fatalf(0xc00019fd40, {0x11cba23, 0x2c}, {0xc0007985c0, 0x4, 0x4}) 189 /workdir/go/src/cmd/compile/internal/ssa/func.go:762 +0x3b7 190 cmd/compile/internal/ssa.Compile.func1() 191 /workdir/go/src/cmd/compile/internal/ssa/compile.go:54 +0x270 192 panic({0x11325c0, 0x16bbe60}) 193 /workdir/go/src/runtime/panic.go:890 +0x262 194 math/rand.(*Rand).Int63(0xc00079c2d0) 195 /workdir/go/src/math/rand/rand.go:89 +0x27 196 math/rand.(*Rand).Int31(0xc00079c2d0) 197 /workdir/go/src/math/rand/rand.go:103 +0x2b 198 math/rand.(*Rand).Int31n(0xc00079c2d0, 0x40) 199 /workdir/go/src/math/rand/rand.go:135 +0x46 200 math/rand.(*Rand).Intn(0xc00079c2d0, 0x40) 201 /workdir/go/src/math/rand/rand.go:176 +0x45 202 cmd/compile/internal/ssa.Compile(0xc00019fd40) 203 /workdir/go/src/cmd/compile/internal/ssa/compile.go:90 +0x1490 204 cmd/compile/internal/ssagen.buildssa(0xc0000ba000, 0x0) 205 /workdir/go/src/cmd/compile/internal/ssagen/ssa.go:574 +0x21e5 206 cmd/compile/internal/ssagen.Compile(0xc0000ba000, 0x0) 207 /workdir/go/src/cmd/compile/internal/ssagen/pgen.go:187 +0x3e 208 cmd/compile/internal/gc.compileFunctions.func4.1(0x0) 209 /workdir/go/src/cmd/compile/internal/gc/compile.go:153 +0x47 210 cmd/compile/internal/gc.compileFunctions.func2(0xc000796320) 211 /workdir/go/src/cmd/compile/internal/gc/compile.go:125 +0x23 212 cmd/compile/internal/gc.compileFunctions.func4({0xc0003f1e00, 0x26, 0x40}) 213 /workdir/go/src/cmd/compile/internal/gc/compile.go:152 +0x176 214 cmd/compile/internal/gc.compileFunctions() 215 /workdir/go/src/cmd/compile/internal/gc/compile.go:163 +0x1f2 216 cmd/compile/internal/gc.Main(0x11dbab8) 217 /workdir/go/src/cmd/compile/internal/gc/main.go:301 +0x1775 218 main.main() 219 /workdir/go/src/cmd/compile/main.go:57 +0x171