{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/15204","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/15204/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/15204/comments","events_url":"https://api.github.com/repos/golang/go/issues/15204/events","html_url":"https://github.com/golang/go/issues/15204","id":147064863,"number":15204,"title":"runtime: Go runtime fails to panic when sent SIGSYS","user":{"login":"flowerhack","id":1811029,"avatar_url":"https://avatars.githubusercontent.com/u/1811029?v=3","gravatar_id":"","url":"https://api.github.com/users/flowerhack","html_url":"https://github.com/flowerhack","followers_url":"https://api.github.com/users/flowerhack/followers","following_url":"https://api.github.com/users/flowerhack/following{/other_user}","gists_url":"https://api.github.com/users/flowerhack/gists{/gist_id}","starred_url":"https://api.github.com/users/flowerhack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowerhack/subscriptions","organizations_url":"https://api.github.com/users/flowerhack/orgs","repos_url":"https://api.github.com/users/flowerhack/repos","events_url":"https://api.github.com/users/flowerhack/events{/privacy}","received_events_url":"https://api.github.com/users/flowerhack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/31","html_url":"https://github.com/golang/go/milestones/Go1.7","labels_url":"https://api.github.com/repos/golang/go/milestones/31/labels","id":1414133,"number":31,"title":"Go1.7","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":299,"closed_issues":207,"state":"open","created_at":"2015-11-16T16:57:07Z","updated_at":"2016-04-09T01:18:49Z","due_on":"2016-07-31T07:00:00Z","closed_at":null},"comments":3,"created_at":"2016-04-08T23:38:22Z","updated_at":"2016-04-09T01:38:10Z","closed_at":null,"body":"**1. What version of Go are you using (`go version`)?**\r\n\r\ngo version go1.6 linux/amd64\r\n\r\n**2. What operating system and processor architecture are you using (`go env`)?**\r\n\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/google-golang\"\r\nGOTOOLDIR=\"/usr/lib/google-golang/pkg/tool/linux_amd64\"\r\nGO15VENDOREXPERIMENT=\"1\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -gno-record-gcc-switches -fdebug-prefix-map=/tmp/go-build195194165=/tmp/go-build\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n\r\n**3. What did you do?**\r\nI sent a SIGSYS signal to a Go program.\r\n\r\nProgram: https://gist.github.com/flowerhack/b0a46e5fabeb3d9c214e14543e67fe50\r\n\r\n(Unfortunately, I can't include a play.golang.org link, since the playground doesn't seem to recognize some important parts of the syscall package, e.g. syscall.SIGSYS.)\r\n\r\n**4. What did you expect to see?**\r\n\r\nI expected to see the program exit with a stack dump.  (Documentation that states this should occur: https://golang.org/pkg/os/signal/).\r\n\r\n**5. What did you see instead?**\r\n\r\nThe program continued to run.\r\n\r\n(I have a patch for this issue that I'll be submitting shortly~)"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/207678373","html_url":"https://github.com/golang/go/issues/15204#issuecomment-207678373","issue_url":"https://api.github.com/repos/golang/go/issues/15204","id":207678373,"user":{"login":"mikioh","id":92117,"avatar_url":"https://avatars.githubusercontent.com/u/92117?v=3","gravatar_id":"","url":"https://api.github.com/users/mikioh","html_url":"https://github.com/mikioh","followers_url":"https://api.github.com/users/mikioh/followers","following_url":"https://api.github.com/users/mikioh/following{/other_user}","gists_url":"https://api.github.com/users/mikioh/gists{/gist_id}","starred_url":"https://api.github.com/users/mikioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikioh/subscriptions","organizations_url":"https://api.github.com/users/mikioh/orgs","repos_url":"https://api.github.com/users/mikioh/repos","events_url":"https://api.github.com/users/mikioh/events{/privacy}","received_events_url":"https://api.github.com/users/mikioh/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T01:38:09Z","updated_at":"2016-04-09T01:38:09Z","body":"> It depends on an invalid system call returning ENOSYS, which it will regardless of how SIGSYS is handled.\r\n\r\nThanks for the correction, ENOSYS or EINVAL though.\r\n\r\n> There are very few cases in which the Linux kernel will send a SIGSYS signal.\r\n\r\nDo you have any good idea for fixing FreeBSD? I guess that vanilla FreeBSD kernels throw SIGSYS when they face unknown system calls by default. Do you in favor of introducing FreeBSD kernel version identification? (Or dropping support for FreeBSD 9 and above?)"}}