{"action":"created","issue":{"url":"https://api.github.com/repos/derekparker/delve/issues/79","repository_url":"https://api.github.com/repos/derekparker/delve","labels_url":"https://api.github.com/repos/derekparker/delve/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/derekparker/delve/issues/79/comments","events_url":"https://api.github.com/repos/derekparker/delve/issues/79/events","html_url":"https://github.com/derekparker/delve/issues/79","id":60327486,"number":79,"title":"cgo problem? ([Could not launch program: decoding dwarf section info at offset 0x0: too short])","user":{"login":"quarnster","id":1230389,"avatar_url":"https://avatars.githubusercontent.com/u/1230389?v=3","gravatar_id":"","url":"https://api.github.com/users/quarnster","html_url":"https://github.com/quarnster","followers_url":"https://api.github.com/users/quarnster/followers","following_url":"https://api.github.com/users/quarnster/following{/other_user}","gists_url":"https://api.github.com/users/quarnster/gists{/gist_id}","starred_url":"https://api.github.com/users/quarnster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quarnster/subscriptions","organizations_url":"https://api.github.com/users/quarnster/orgs","repos_url":"https://api.github.com/users/quarnster/repos","events_url":"https://api.github.com/users/quarnster/events{/privacy}","received_events_url":"https://api.github.com/users/quarnster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/derekparker/delve/labels/kind/bug","name":"kind/bug","color":"fc2929"},{"url":"https://api.github.com/repos/derekparker/delve/labels/technology/cgo","name":"technology/cgo","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-03-09T11:02:18Z","updated_at":"2016-08-15T11:51:28Z","closed_at":null,"body":"```\r\n11:59 ~/code/go $ cat hello.go\r\npackage main\r\n\r\n// #include <stdio.h>\r\n// #include <stdlib.h>\r\n// static void hack(char *str) { printf(\"%s\", str); }\r\nimport \"C\"\r\n\r\nimport \"unsafe\"\r\n\r\nfunc main() {\r\n        cstr := C.CString(\"hello world!\\n\")\r\n        defer C.free(unsafe.Pointer(cstr))\r\n        C.hack(cstr)\r\n}\r\n11:59 ~/code/go $ go build hello.go\r\n11:59 ~/code/go $ dlv ./hello\r\n[Could not launch program: decoding dwarf section info at offset 0x0: too short]\r\n11:59 ~/code/go $\r\ndlv\r\nDelve version 0.5.0.beta\r\n\r\nflags:\r\n  -v - Print version\r\n\r\nInvoke with the path to a binary:\r\n\r\n  dlv ./path/to/prog\r\n\r\nor use the following commands:\r\n  run - Build, run, and attach to program\r\n  attach - Attach to running process\r\n\r\n12:00 ~/code/go $ dlv -v -\r\nflag provided but not defined: -v\r\nUsage of dlv:\r\n12:00 ~/code/go $ go version\r\ngo version go1.4 darwin/amd64\r\n12:00 ~/code/go $ uname -a\r\nDarwin Thunder 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64\r\n12:01 ~/code/go $\r\n```"},"comment":{"url":"https://api.github.com/repos/derekparker/delve/issues/comments/239784859","html_url":"https://github.com/derekparker/delve/issues/79#issuecomment-239784859","issue_url":"https://api.github.com/repos/derekparker/delve/issues/79","id":239784859,"user":{"login":"aarzilli","id":303620,"avatar_url":"https://avatars.githubusercontent.com/u/303620?v=3","gravatar_id":"","url":"https://api.github.com/users/aarzilli","html_url":"https://github.com/aarzilli","followers_url":"https://api.github.com/users/aarzilli/followers","following_url":"https://api.github.com/users/aarzilli/following{/other_user}","gists_url":"https://api.github.com/users/aarzilli/gists{/gist_id}","starred_url":"https://api.github.com/users/aarzilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarzilli/subscriptions","organizations_url":"https://api.github.com/users/aarzilli/orgs","repos_url":"https://api.github.com/users/aarzilli/repos","events_url":"https://api.github.com/users/aarzilli/events{/privacy}","received_events_url":"https://api.github.com/users/aarzilli/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T11:51:28Z","updated_at":"2016-08-15T11:51:28Z","body":"@ahl do you have steps we can follow to reproduce this or a binary to examine?"}}
{"actor":{"display_login":"aarzilli"}}