payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/31043","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/31043/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/31043/comments","events_url":"https://api.github.com/repos/golang/go/issues/31043/events","html_url":"https://github.com/golang/go/issues/31043","id":425167509,"node_id":"MDU6SXNzdWU0MjUxNjc1MDk=","number":31043,"title":"reflect: running go test with -count=2 or greater causes nil pointer dereference panic","user":{"login":"dmitshur","id":1924134,"node_id":"MDQ6VXNlcjE5MjQxMzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1924134?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitshur","html_url":"https://github.com/dmitshur","followers_url":"https://api.github.com/users/dmitshur/followers","following_url":"https://api.github.com/users/dmitshur/following{/other_user}","gists_url":"https://api.github.com/users/dmitshur/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitshur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitshur/subscriptions","organizations_url":"https://api.github.com/users/dmitshur/orgs","repos_url":"https://api.github.com/users/dmitshur/repos","events_url":"https://api.github.com/users/dmitshur/events{/privacy}","received_events_url":"https://api.github.com/users/dmitshur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-26T00:01:50Z","updated_at":"2019-03-26T00:01:50Z","closed_at":null,"author_association":"MEMBER","body":"### What version of Go are you using (`go version`)?\r\n\r\n<pre>\r\n$ ../bin/go version\r\ngo version devel +270de1c110 Mon Mar 25 22:41:37 2019 +0000 darwin/amd64\r\n</pre>\r\n\r\n### Does this issue reproduce with the latest release?\r\n\r\nYes.\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n\r\n<details><summary><code>go env</code> Output</summary><br><pre>\r\n$ ../bin/go env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/Users/dmitshur/Library/Caches/go-build\"\r\nGOEXE=\"\"\r\nGOFLAGS=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"darwin\"\r\nGOOS=\"darwin\"\r\nGOPATH=\"/Users/dmitshur/go\"\r\nGOPROXY=\"\"\r\nGORACE=\"\"\r\nGOROOT=\"/Users/dmitshur/gotip\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/Users/dmitshur/gotip/pkg/tool/darwin_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"clang\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\nGOMOD=\"/Users/dmitshur/gotip/src/go.mod\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3m/rg2zm24d1jg40wb48wr0hdjw00jwcj/T/go-build434087460=/tmp/go-build -gno-record-gcc-switches -fno-common\"\r\n</pre></details>\r\n\r\n### What did you do?\r\n\r\n```\r\n$ ../bin/go test -count=2 reflect\r\n```\r\n\r\n### What did you expect to see?\r\n\r\n```\r\nok  \treflect\t0.896s\r\n```\r\n\r\n### What did you see instead?\r\n\r\n```\r\n$ ../bin/go test -count=2 reflect\r\n--- FAIL: TestStructOfWithInterface (0.00s)\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n\tpanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x12 pc=0x10af28d]\r\n\r\ngoroutine 3656 [running]:\r\ntesting.tRunner.func1(0xc0000c2400)\r\n\t/Users/dmitshur/gotip/src/testing/testing.go:830 +0x391\r\npanic(0x1213f20, 0x1663e20)\r\n\t/Users/dmitshur/gotip/src/runtime/panic.go:619 +0x1b2\r\nreflect.name.name(...)\r\n\t/Users/dmitshur/gotip/src/reflect/type.go:495\r\nreflect.haveIdenticalUnderlyingType(0xc0000b43f0, 0xc0000b4230, 0xc000117001, 0x11f6c20)\r\n\t/Users/dmitshur/gotip/src/reflect/type.go:1661 +0x6fd\r\nreflect.StructOf(0xc0004d2070, 0x1, 0x1, 0x0, 0x0)\r\n\t/Users/dmitshur/gotip/src/reflect/type.go:2601 +0x1272\r\nreflect_test.TestStructOfWithInterface(0xc0000c2400)\r\n\t/Users/dmitshur/gotip/src/reflect/all_test.go:4922 +0x6d8\r\ntesting.tRunner(0xc0000c2400, 0x1260390)\r\n\t/Users/dmitshur/gotip/src/testing/testing.go:865 +0xbf\r\ncreated by testing.(*T).Run\r\n\t/Users/dmitshur/gotip/src/testing/testing.go:916 +0x350\r\nFAIL\treflect\t0.874s\r\n```"}}
other: {"actor":{"display_login":"dmitshur"}}