Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (gdb) n
- 10 var parity int64 = -1 // prevent the first iteration from matching
- (gdb)
- 11 counts := map[int]int{0: -1}
- (gdb)
- panic: runtime error: index out of range
- goroutine 4 [running]:
- math/rand.(*rngSource).Int63(0xf840040800, 0x512b9e5555d1014b, 0xd32900000000, 0xd328)
- /home/sad/go/src/pkg/math/rand/rng.go:243 +0x5a
- main.SurvivalParity(0xf840032030, 0xf840040800, 0x547778, 0x0, 0x0, ...)
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/parity-test.go:15 +0xd5
- main.doTest(0xf840032030, 0xf840040800, 0x40183e, 0x7fffffffe8c7, 0xf800000005, ...)
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:90 +0x6d
- created by main.main
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
- goroutine 1 [semacquire]:
- sync.runtime_Semacquire(0xf84004c040, 0xf84004c040)
- /home/sad/go/src/pkg/runtime/zsema_amd64.c:146 +0x25
- sync.(*WaitGroup).Wait(0x5476a0, 0xf840040800)
- /home/sad/go/src/pkg/sync/waitgroup.go:78 +0xf2
- main.main()
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:84 +0x5a1
- goroutine 2 [syscall]:
- created by runtime.main
- /home/sad/go/src/pkg/runtime/proc.c:221
- goroutine 3 [running]:
- created by main.main
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
- goroutine 5 [running]:
- created by main.main
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
- panic: runtime error: index out of range
- goroutine 5 [running]:
- math/rand.(*rngSource).Int63(0xf840040800, 0xf840031d20, 0x75500000005, 0x754)
- /home/sad/go/src/pkg/math/rand/rng.go:243 +0x5a
- main.Survival(0xf840032030, 0xf840040800, 0x547778, 0x0, 0x0, ...)
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/survival-test.go:16 +0xa9
- main.doTest(0xf840032030, 0xf840040800, 0x4020b3, 0x7fffffffe8c7, 0xf800000005, ...)
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:90 +0x6d
- created by main.main
- /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
- [LWP 22372 exited]
- [LWP 22369 exited]
- [Inferior 1 (process 22369) exited with code 02]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement