{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/10162","labels_url":"https://api.github.com/repos/golang/go/issues/10162/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10162/comments","events_url":"https://api.github.com/repos/golang/go/issues/10162/events","html_url":"https://github.com/golang/go/issues/10162","id":61366944,"number":10162,"title":"runtime: TestRaiseException fails on windows server 2003 (amd64)","user":{"login":"minux","id":135652,"avatar_url":"https://avatars.githubusercontent.com/u/135652?v=3","gravatar_id":"","url":"https://api.github.com/users/minux","html_url":"https://github.com/minux","followers_url":"https://api.github.com/users/minux/followers","following_url":"https://api.github.com/users/minux/following{/other_user}","gists_url":"https://api.github.com/users/minux/gists{/gist_id}","starred_url":"https://api.github.com/users/minux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minux/subscriptions","organizations_url":"https://api.github.com/users/minux/orgs","repos_url":"https://api.github.com/users/minux/repos","events_url":"https://api.github.com/users/minux/events{/privacy}","received_events_url":"https://api.github.com/users/minux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/repo-main","name":"repo-main","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/1","html_url":"https://github.com/golang/go/milestones/Go1.5","labels_url":"https://api.github.com/repos/golang/go/milestones/1/labels","id":905105,"number":1,"title":"Go1.5","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":286,"closed_issues":212,"state":"open","created_at":"2014-12-16T02:26:41Z","updated_at":"2015-03-27T13:49:57Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":6,"created_at":"2015-03-14T02:42:50Z","updated_at":"2015-03-27T15:45:14Z","closed_at":null,"body":"This program:\r\n```\r\npackage main\r\nimport \"syscall\"\r\nfunc main() {\r\n        const EXCEPTION_NONCONTINUABLE = 1\r\n        mod := syscall.MustLoadDLL(\"kernel32.dll\")\r\n        proc := mod.MustFindProc(\"RaiseException\")\r\n        proc.Call(0xbad, EXCEPTION_NONCONTINUABLE, 0, 0)\r\n        println(\"RaiseException should not return\")\r\n}\r\n```\r\n\r\nwhen running standalone, doesn't output anything on windows server 2003.\r\nhowever, when running inside gdb, it correct output unexpected signal during cgo execution\r\nmessage.\r\n\r\nMoreover, if I add a println statement before proc.Call, the program will also be working\r\nas intended when running standalone.\r\n\r\n/cc @alexbrainman "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/86980675","html_url":"https://github.com/golang/go/issues/10162#issuecomment-86980675","issue_url":"https://api.github.com/repos/golang/go/issues/10162","id":86980675,"user":{"login":"kardianos","id":755121,"avatar_url":"https://avatars.githubusercontent.com/u/755121?v=3","gravatar_id":"","url":"https://api.github.com/users/kardianos","html_url":"https://github.com/kardianos","followers_url":"https://api.github.com/users/kardianos/followers","following_url":"https://api.github.com/users/kardianos/following{/other_user}","gists_url":"https://api.github.com/users/kardianos/gists{/gist_id}","starred_url":"https://api.github.com/users/kardianos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kardianos/subscriptions","organizations_url":"https://api.github.com/users/kardianos/orgs","repos_url":"https://api.github.com/users/kardianos/repos","events_url":"https://api.github.com/users/kardianos/events{/privacy}","received_events_url":"https://api.github.com/users/kardianos/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T15:45:13Z","updated_at":"2015-03-27T15:45:13Z","body":"@alexbrainman That is correct. With 1.4.2 it opens up a \"report error\" dialog, but then it prints the register dump. Yes, 2003/XP -64bit does have a AddVectoredContinueHandler API. \r\n\r\nIf a don't disable Windows Error Reporting dialog, then the 1.4.2 behavior is restored: the dialog is displayed, but the dump is also displayed. I presume there is a bug in this version where the continue handler is not called if the dialog is not displayed.\r\n\r\nOne option would be to detect the Windows version number and not use the AddVectoredContinueHandler in amd64 2003/XP as it appears to have a bug.\r\n\r\n-Daniel\r\n"}}