{"action":"created","issue":{"url":"https://api.github.com/repos/globalsign/mgo/issues/117","repository_url":"https://api.github.com/repos/globalsign/mgo","labels_url":"https://api.github.com/repos/globalsign/mgo/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/globalsign/mgo/issues/117/comments","events_url":"https://api.github.com/repos/globalsign/mgo/issues/117/events","html_url":"https://github.com/globalsign/mgo/issues/117","id":301028123,"number":117,"title":"Panic in dbtest","user":{"login":"nim-nim","id":7858822,"avatar_url":"https://avatars2.githubusercontent.com/u/7858822?v=4","gravatar_id":"","url":"https://api.github.com/users/nim-nim","html_url":"https://github.com/nim-nim","followers_url":"https://api.github.com/users/nim-nim/followers","following_url":"https://api.github.com/users/nim-nim/following{/other_user}","gists_url":"https://api.github.com/users/nim-nim/gists{/gist_id}","starred_url":"https://api.github.com/users/nim-nim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim-nim/subscriptions","organizations_url":"https://api.github.com/users/nim-nim/orgs","repos_url":"https://api.github.com/users/nim-nim/repos","events_url":"https://api.github.com/users/nim-nim/events{/privacy}","received_events_url":"https://api.github.com/users/nim-nim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-28T13:42:39Z","updated_at":"2018-03-10T21:02:17Z","closed_at":"2018-03-09T15:45:24Z","author_association":"NONE","body":"While running unit tests with go 1.9.4 on x86_64 for release 2018.02.20\r\n\r\n```(shell)\r\n+ go test -buildmode pie -compiler gc -ldflags ' -X github.com/globalsign/mgo/version.tag=r2018.02.20 -X github.com/globalsign/mgo/version=2018.02.20 -extldflags '\\''-Wl,-z\r\n,relro  '\\'''\r\n\r\n----------------------------------------------------------------------\r\nPANIC: dbserver_test.go:89: S.TestCheckSessions\r\n\r\n... Panic: runtime error: invalid memory address or nil pointer dereference (PC=0x55E276888F1C)\r\n\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\n/usr/lib/golang/src/runtime/panic.go:63\r\n  in panicmem\r\n/usr/lib/golang/src/runtime/signal_unix.go:367\r\n  in sigpanic\r\n/usr/lib/golang/src/os/exec_unix.go:56\r\n  in Process.signal\r\n/usr/lib/golang/src/os/exec.go:121\r\n  in Process.Signal\r\ndbserver.go:114\r\n  in DBServer.Stop\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\ndbserver.go:72\r\n  in DBServer.start\r\ndbserver.go:130\r\n  in DBServer.Session\r\ndbserver_test.go:94\r\n  in S.TestCheckSessions\r\n/usr/lib/golang/src/reflect/value.go:302\r\n  in Value.Call\r\n/usr/lib/golang/src/runtime/asm_amd64.s:2337\r\n  in goexit\r\n\r\n----------------------------------------------------------------------\r\nPANIC: dbserver_test.go:99: S.TestCheckSessionsDisabled\r\n\r\n... Panic: runtime error: invalid memory address or nil pointer dereference (PC=0x55E276888F1C)\r\n\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\n/usr/lib/golang/src/runtime/panic.go:63\r\n  in panicmem\r\n/usr/lib/golang/src/runtime/signal_unix.go:367\r\n  in sigpanic\r\n/usr/lib/golang/src/os/exec_unix.go:56\r\n  in Process.signal\r\n/usr/lib/golang/src/os/exec.go:121\r\n  in Process.Signal\r\ndbserver.go:114\r\n  in DBServer.Stop\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\ndbserver.go:72\r\n  in DBServer.start\r\ndbserver.go:130\r\n  in DBServer.Session\r\ndbserver_test.go:107\r\n  in S.TestCheckSessionsDisabled\r\n/usr/lib/golang/src/reflect/value.go:302\r\n  in Value.Call\r\n/usr/lib/golang/src/runtime/asm_amd64.s:2337\r\n  in goexit\r\n\r\n----------------------------------------------------------------------\r\nPANIC: dbserver_test.go:58: S.TestStop\r\n\r\n... Panic: runtime error: invalid memory address or nil pointer dereference (PC=0x55E276888F1C)\r\n\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\n/usr/lib/golang/src/runtime/panic.go:63\r\n  in panicmem\r\n/usr/lib/golang/src/runtime/signal_unix.go:367\r\n  in sigpanic\r\n/usr/lib/golang/src/os/exec_unix.go:56\r\n  in Process.signal\r\n/usr/lib/golang/src/os/exec.go:121\r\n  in Process.Signal\r\ndbserver.go:114\r\n  in DBServer.Stop\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\ndbserver.go:72\r\n  in DBServer.start\r\ndbserver.go:130\r\n  in DBServer.Session\r\ndbserver_test.go:67\r\n  in S.TestStop\r\n/usr/lib/golang/src/reflect/value.go:302\r\n  in Value.Call\r\n/usr/lib/golang/src/runtime/asm_amd64.s:2337\r\n  in goexit\r\n\r\n----------------------------------------------------------------------\r\nPANIC: dbserver_test.go:35: S.TestWipeData\r\n\r\n... Panic: runtime error: invalid memory address or nil pointer dereference (PC=0x55E276888F1C)\r\n\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\n/usr/lib/golang/src/runtime/panic.go:63\r\n  in panicmem\r\n/usr/lib/golang/src/runtime/signal_unix.go:367\r\n  in sigpanic\r\n/usr/lib/golang/src/os/exec_unix.go:56\r\n  in Process.signal\r\n/usr/lib/golang/src/os/exec.go:121\r\n  in Process.Signal\r\ndbserver.go:114\r\n  in DBServer.Stop\r\n/usr/lib/golang/src/runtime/panic.go:491\r\n  in gopanic\r\ndbserver.go:72\r\n  in DBServer.start\r\ndbserver.go:130\r\n  in DBServer.Session\r\ndbserver_test.go:40\r\n  in S.TestWipeData\r\n/usr/lib/golang/src/reflect/value.go:302\r\n  in Value.Call\r\n/usr/lib/golang/src/runtime/asm_amd64.s:2337\r\n  in goexit\r\n--- FAIL: TestAll (0.00s)\r\nFAIL\r\nOOPS: 0 passed, 4 PANICKED\r\nexit status 1\r\nFAIL    github.com/globalsign/mgo/dbtest        0.011s\r\n```\r\n\r\nA unit test should always just work with go test and report sensible results"},"comment":{"url":"https://api.github.com/repos/globalsign/mgo/issues/comments/372066498","html_url":"https://github.com/globalsign/mgo/issues/117#issuecomment-372066498","issue_url":"https://api.github.com/repos/globalsign/mgo/issues/117","id":372066498,"user":{"login":"nim-nim","id":7858822,"avatar_url":"https://avatars2.githubusercontent.com/u/7858822?v=4","gravatar_id":"","url":"https://api.github.com/users/nim-nim","html_url":"https://github.com/nim-nim","followers_url":"https://api.github.com/users/nim-nim/followers","following_url":"https://api.github.com/users/nim-nim/following{/other_user}","gists_url":"https://api.github.com/users/nim-nim/gists{/gist_id}","starred_url":"https://api.github.com/users/nim-nim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim-nim/subscriptions","organizations_url":"https://api.github.com/users/nim-nim/orgs","repos_url":"https://api.github.com/users/nim-nim/repos","events_url":"https://api.github.com/users/nim-nim/events{/privacy}","received_events_url":"https://api.github.com/users/nim-nim/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T21:02:17Z","updated_at":"2018-03-10T21:02:17Z","author_association":"NONE","body":"I had figured it needed mongod in the path, and as you noted this is not sufficient\r\n\r\nAs running mongod is a privileged operation on my system, I can't see how I could possibly run this test."}}
{"actor":{"display_login":"nim-nim"}}