-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Description
What steps will reproduce the problem? 1. strings.Split(line, "", -1) 2. compile 3. run What is the expected output? It should return an empty array. What do you see instead? Crash: panic PC=0x2b75b4c5e228 runtime.panic+0x7c /usr/local/src/i9/src/pkg/runtime/proc.c:1012 runtime.panic(0x2b7500000000, 0x405eaa) panicstring+0x60 /usr/local/src/i9/src/pkg/runtime/runtime.c:83 panicstring(0x464758, 0x2b75b4c7c1e0) runtime.panicindex+0x1c /usr/local/src/i9/src/pkg/runtime/runtime.c:44 runtime.panicindex() strings.explode+0x145 /usr/local/src/i9/src/pkg/strings/strings.go:32 strings.explode(0x43e408, 0x0, 0x0, 0x43e408, 0x0, ...) strings.genSplit+0x4f /usr/local/src/i9/src/pkg/strings/strings.go:145 strings.genSplit(0x43e408, 0x0, 0x0, 0x6, 0x0, ...) strings.Split+0x43 /usr/local/src/i9/src/pkg/strings/strings.go:173 strings.Split(0x43e408, 0x0, 0x43e408, 0x0, 0xffffffff00000000, ...) etc... What is your $GOOS? $GOARCH? $ echo $GOOS and $GOARCH linux and amd64 Which revision are you using? (hg identify) b69ec24ad6dc+ tip