{"push_id":1098899057,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"1a7fc2357b1c26dcdf4fa57dee67a1172696801f","before":"fafd792de30f46cbd822fd6bb041c60c7b5fbe6d","commits":[{"sha":"1a7fc2357b1c26dcdf4fa57dee67a1172696801f","author":{"email":"277f8eaa8c7dfbc55c17bf5e30561c1a9c45c569@gmail.com","name":"Emmanuel Odeke"},"message":"runtime: print signal name in panic, if name is known\n\nAdds a small function signame that infers a signal name\nfrom the signal table, otherwise will fallback to using\nhex(sig) as previously. No signal table is present for\nWindows hence it will always print the hex value.\n\nSample code and new result:\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"time\"\n)\n\nfunc main() {\n  defer func() {\n    if err := recover(); err != nil {\n      fmt.Printf(\"err=%v\\n\", err)\n    }\n  }()\n\n  ticker := time.Tick(1e9)\n  for {\n    <-ticker\n  }\n}\n```\n\n```shell\n$ go run main.go &\n$ kill -11 <pid>\nfatal error: unexpected signal during runtime execution\n[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e\npc=0xc71db]\n...\n```\n\nFixes #13969\n\nChange-Id: Ie6be312eb766661f1cea9afec352b73270f27f9d\nReviewed-on: https://go-review.googlesource.com/22753\nReviewed-by: Ian Lance Taylor <iant@golang.org>\nRun-TryBot: Ian Lance Taylor <iant@golang.org>\nTryBot-Result: Gobot Gobot <gobot@golang.org>","distinct":true,"url":"https://api.github.com/repos/mk0x9/go/commits/1a7fc2357b1c26dcdf4fa57dee67a1172696801f"}]}