Hi,
I'm trying to package godis for Arch Linux. I'm on a 64-bit computer, with go version "go1.0.2".
After moving the examples directory away and compiling, the tests give me this:
=== RUN TestServer
--- FAIL: TestServer (0.00 seconds)
godis_test.go:15: monitor
expected <nil>
got <nil>
, err(Connection error 127.0.0.1:6379)
godis_test.go:15: requirepass foobared
expected <nil>
got <nil>
, err(Connection error 127.0.0.1:6379)
godis_test.go:15: ping authenticated
expected <nil>
got <nil>
, err(Connection error 127.0.0.1:6379)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x30 pc=0x42e14a]
goroutine 13 [running]:
testing._func_003(0x7f88ab033fa8, 0x7f88ab033100, 0x7f88ab033fb8, 0x7f88ab033d18)
/usr/lib/go/src/pkg/testing/testing.go:268 +0xf3
----- stack segment boundary -----
github.com/simonz05/godis.(_Reply).StringArray(0x0, 0x0, 0x7f88ab033e70, 0x200000002)
/tmp/yaourt-tmp-alexander/aur-go-godis/src/src/github.com/simonz05/godis/conn.go:134 +0x20
github.com/simonz05/godis.(_Reply).StringMap(0x0, 0x566b34, 0x757165720000000b, 0x0)
/tmp/yaourt-tmp-alexander/aur-go-godis/src/src/github.com/simonz05/godis/conn.go:155 +0x25
github.com/simonz05/godis.TestServer(0xf840000540, 0xbc05ca0)
/tmp/yaourt-tmp-alexander/aur-go-godis/src/src/github.com/simonz05/godis/commands_test.go:647 +0x2a6
testing.tRunner(0xf840000540, 0x636be0, 0x0, 0x0)
/usr/lib/go/src/pkg/testing/testing.go:273 +0x6f
created by testing.RunTests
/usr/lib/go/src/pkg/testing/testing.go:349 +0x782
goroutine 1 [chan receive]:
testing.RunTests(0x400c00, 0x636b08, 0x1600000016, 0x0, 0x627698, ...)
/usr/lib/go/src/pkg/testing/testing.go:350 +0x7a5
testing.Main(0x400c00, 0x636b08, 0x1600000016, 0x6355f8, 0x300000003, ...)
/usr/lib/go/src/pkg/testing/testing.go:285 +0x7a
main.main()
/tmp/go-build230035416/github.com/simonz05/godis/_test/_testmain.go:91 +0x91
goroutine 2 [syscall]:
created by runtime.main
/home/alexander/archpackages/community/go/trunk/src/go/src/pkg/runtime/proc.c:221
goroutine 4 [syscall]:
syscall.Syscall6()
/home/alexander/archpackages/community/go/trunk/src/go/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
syscall.EpollWait(0xf800000006, 0xf84006d170, 0xa0000000a, 0xffffffff, 0xc, ...)
/usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1
net.(_pollster).WaitFD(0xf84006d160, 0xf84004c2c0, 0x0, 0x0, 0x0, ...)
/usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110
net.(_pollServer).Run(0xf84004c2c0, 0x0)
/usr/lib/go/src/pkg/net/fd.go:236 +0xe4
created by net.newPollServer
/usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382
exit status 2
FAIL github.com/simonz05/godis 0.008s
Here's the package, if you're on 64-bit Arch Linux and want an easy way to reproduce the issue:
https://aur.archlinux.org/packages.php?ID=61009