Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlisia/27bdd781875d3d4e487948ac70d9d7e0 to your computer and use it in GitHub Desktop.
Save carlisia/27bdd781875d3d4e487948ac70d9d7e0 to your computer and use it in GitHub Desktop.
~/dev
☻ go-gender-stats
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x8 pc=0x119236]
goroutine 1 [running]:
github.com/jbrukh/bayesian.(*Classifier).ProbScores(0x0, 0xc820063d28, 0x1, 0x1, 0x0, 0x0, 0x0, 0x123cb, 0x7e16c)
/Users/carlisiacampos/.gvm/pkgsets/go1.5.1/global/src/github.com/jbrukh/bayesian/bayesian.go:307 +0x46
github.com/hstove/gender/classifier.Classify(0x0, 0xc82053fe70, 0x5, 0x0, 0x0, 0x1)
/Users/carlisiacampos/.gvm/pkgsets/go1.5.1/global/src/github.com/hstove/gender/classifier/classifier.go:37 +0xd1
main.predictGenderStats(0xc820520000, 0x352, 0x600, 0x0, 0x0)
/Users/carlisiacampos/.gvm/pkgsets/go1.5.1/global/src/github.com/adams-sarah/go-gender-stats/genderpredict.go:20 +0x10b
main.main()
/Users/carlisiacampos/.gvm/pkgsets/go1.5.1/global/src/github.com/adams-sarah/go-gender-stats/contributors.go:16 +0xdd
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/runtime/asm_amd64.s:1696 +0x1
goroutine 34 [IO wait]:
net.runtime_pollWait(0x780fd8, 0x72, 0xc82000a200)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc8200be060, 0x72, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc8200be060, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc8200be000, 0xc8200d6000, 0x2000, 0x2000, 0x0, 0x740050, 0xc82000a200)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/fd_unix.go:232 +0x23a
net.(*conn).Read(0xc8200b4018, 0xc8200d6000, 0x2000, 0x2000, 0x0, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/net.go:172 +0xe4
crypto/tls.(*block).readFromUntil(0xc8200a8270, 0x781110, 0xc8200b4018, 0x5, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/crypto/tls/conn.go:455 +0xcc
crypto/tls.(*Conn).readRecord(0xc8200c2000, 0x40e317, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/crypto/tls/conn.go:540 +0x2d1
crypto/tls.(*Conn).Read(0xc8200c2000, 0xc8201ef000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/crypto/tls/conn.go:901 +0x167
net/http.noteEOFReader.Read(0x7cce20, 0xc8200c2000, 0xc8200b0058, 0xc8201ef000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/http/transport.go:1370 +0x67
net/http.(*noteEOFReader).Read(0xc820184a60, 0xc8201ef000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
<autogenerated>:126 +0xd0
bufio.(*Reader).fill(0xc820498a80)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Peek(0xc820498a80, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0xc8200b0000)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/http/transport.go:876 +0xf7
created by net/http.(*Transport).dialConn
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/http/transport.go:685 +0xc78
goroutine 35 [select]:
net/http.(*persistConn).writeLoop(0xc8200b0000)
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/http/transport.go:1009 +0x40c
created by net/http.(*Transport).dialConn
/Users/carlisiacampos/.gvm/gos/go1.5.1/src/net/http/transport.go:686 +0xc9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment