{"action":"opened","issue":{"url":"https://api.github.com/repos/vladimirvivien/go-cshared-examples/issues/10","repository_url":"https://api.github.com/repos/vladimirvivien/go-cshared-examples","labels_url":"https://api.github.com/repos/vladimirvivien/go-cshared-examples/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/vladimirvivien/go-cshared-examples/issues/10/comments","events_url":"https://api.github.com/repos/vladimirvivien/go-cshared-examples/issues/10/events","html_url":"https://github.com/vladimirvivien/go-cshared-examples/issues/10","id":374397700,"node_id":"MDU6SXNzdWUzNzQzOTc3MDA=","number":10,"title":"EINVAL error from go runtime in dynamically linked case ?","user":{"login":"lulupac","id":11257275,"node_id":"MDQ6VXNlcjExMjU3Mjc1","avatar_url":"https://avatars1.githubusercontent.com/u/11257275?v=4","gravatar_id":"","url":"https://api.github.com/users/lulupac","html_url":"https://github.com/lulupac","followers_url":"https://api.github.com/users/lulupac/followers","following_url":"https://api.github.com/users/lulupac/following{/other_user}","gists_url":"https://api.github.com/users/lulupac/gists{/gist_id}","starred_url":"https://api.github.com/users/lulupac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lulupac/subscriptions","organizations_url":"https://api.github.com/users/lulupac/orgs","repos_url":"https://api.github.com/users/lulupac/repos","events_url":"https://api.github.com/users/lulupac/events{/privacy}","received_events_url":"https://api.github.com/users/lulupac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T14:01:15Z","updated_at":"2018-10-26T14:01:15Z","closed_at":null,"author_association":"NONE","body":"Thanks for the examples.\r\nI am playing a little bit with cgo at the moment and realized from your C examples that in the dynamically linked case (client1) the `errno` value is already set to EINVAL before even running the client code.\r\nWhereas in the dynamically loaded case (client2), no error is set.\r\n\r\nI have just run the two cases, and added `printf(\"%s\", strerror(errno))` at the very beginning of the `main` functions.\r\n\r\nAm I missing something or is it that the initialization of the Go runtime may have left an error un-handled in the first case ? "}}
{"actor":{"display_login":"lulupac"}}