Advertisement
zephyrtronium

Untitled

Jun 14th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. (gdb) n
  2. 10 var parity int64 = -1 // prevent the first iteration from matching
  3. (gdb)
  4. 11 counts := map[int]int{0: -1}
  5. (gdb)
  6. panic: runtime error: index out of range
  7.  
  8. goroutine 4 [running]:
  9. math/rand.(*rngSource).Int63(0xf840040800, 0x512b9e5555d1014b, 0xd32900000000, 0xd328)
  10. /home/sad/go/src/pkg/math/rand/rng.go:243 +0x5a
  11. main.SurvivalParity(0xf840032030, 0xf840040800, 0x547778, 0x0, 0x0, ...)
  12. /home/sad/gocode/src/github.com/zephyrtronium/prngt/parity-test.go:15 +0xd5
  13. main.doTest(0xf840032030, 0xf840040800, 0x40183e, 0x7fffffffe8c7, 0xf800000005, ...)
  14. /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:90 +0x6d
  15. created by main.main
  16. /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
  17.  
  18. goroutine 1 [semacquire]:
  19. sync.runtime_Semacquire(0xf84004c040, 0xf84004c040)
  20. /home/sad/go/src/pkg/runtime/zsema_amd64.c:146 +0x25
  21. sync.(*WaitGroup).Wait(0x5476a0, 0xf840040800)
  22. /home/sad/go/src/pkg/sync/waitgroup.go:78 +0xf2
  23. main.main()
  24. /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:84 +0x5a1
  25.  
  26. goroutine 2 [syscall]:
  27. created by runtime.main
  28. /home/sad/go/src/pkg/runtime/proc.c:221
  29.  
  30. goroutine 3 [running]:
  31. created by main.main
  32. /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
  33.  
  34. goroutine 5 [running]:
  35. created by main.main
  36. /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
  37. panic: runtime error: index out of range
  38.  
  39. goroutine 5 [running]:
  40. math/rand.(*rngSource).Int63(0xf840040800, 0xf840031d20, 0x75500000005, 0x754)
  41. /home/sad/go/src/pkg/math/rand/rng.go:243 +0x5a
  42. main.Survival(0xf840032030, 0xf840040800, 0x547778, 0x0, 0x0, ...)
  43. /home/sad/gocode/src/github.com/zephyrtronium/prngt/survival-test.go:16 +0xa9
  44. main.doTest(0xf840032030, 0xf840040800, 0x4020b3, 0x7fffffffe8c7, 0xf800000005, ...)
  45. /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:90 +0x6d
  46. created by main.main
  47. /home/sad/gocode/src/github.com/zephyrtronium/prngt/main.go:81 +0x562
  48. [LWP 22372 exited]
  49. [LWP 22369 exited]
  50. [Inferior 1 (process 22369) exited with code 02]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement