{"action":"created","issue":{"url":"https://api.github.com/repos/derekparker/delve/issues/462","repository_url":"https://api.github.com/repos/derekparker/delve","labels_url":"https://api.github.com/repos/derekparker/delve/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/derekparker/delve/issues/462/comments","events_url":"https://api.github.com/repos/derekparker/delve/issues/462/events","html_url":"https://github.com/derekparker/delve/issues/462","id":141634164,"number":462,"title":"Delve cannot attach and debug a simple http service","user":{"login":"dwbuiten","id":1189609,"avatar_url":"https://avatars.githubusercontent.com/u/1189609?v=3","gravatar_id":"","url":"https://api.github.com/users/dwbuiten","html_url":"https://github.com/dwbuiten","followers_url":"https://api.github.com/users/dwbuiten/followers","following_url":"https://api.github.com/users/dwbuiten/following{/other_user}","gists_url":"https://api.github.com/users/dwbuiten/gists{/gist_id}","starred_url":"https://api.github.com/users/dwbuiten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwbuiten/subscriptions","organizations_url":"https://api.github.com/users/dwbuiten/orgs","repos_url":"https://api.github.com/users/dwbuiten/repos","events_url":"https://api.github.com/users/dwbuiten/events{/privacy}","received_events_url":"https://api.github.com/users/dwbuiten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-17T16:26:04Z","updated_at":"2016-03-17T18:33:15Z","closed_at":null,"body":"## 1. What version of Delve are you using (`dlv version`)?\r\n\r\n```\r\n$ dlv version\r\nDelve Debugger\r\nVersion: 0.11.0-alpha\r\nBuild:\r\n```\r\n\r\nGit revision: ff0ec8ce00fbac7f84859cf420b31bc3a513e43c\r\n\r\n## 2. What version of Go are you using? (`go version`)?\r\n\r\n```\r\n$ go version\r\ngo version go1.6 linux/amd64\r\n```\r\n\r\n## 3. What operating system and processor architecture are you using?\r\n\r\n```\r\n$ uname -a\r\nLinux vimeo-vm 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n$ cat /etc/redhat-release\r\nCentOS Linux release 7.2.1511 (Core)\r\n```\r\n\r\n## 4. What did you do?\r\n\r\n```\r\n$ cat test.go\r\npackage main\r\n\r\nimport (\r\n        \"fmt\"\r\n        \"net/http\"\r\n)\r\n\r\nfunc main() {\r\n        http.HandleFunc(\"/bar\", func(w http.ResponseWriter, r *http.Request) {\r\n                fmt.Fprintf(w, \"Hello\")\r\n        })\r\n\r\n        http.ListenAndServe(\":5555\", nil)\r\n}\r\n$ go build\r\n$ ./test &\r\n[1] 23629\r\n$ dlv attach 23629\r\nType 'help' for list of commands.\r\n(dlv) stack\r\nCommand failed: could not find FDE for PC 0x91e800\r\n```\r\n\r\nI also tested with `go build -gcflags '-N -l'`.\r\n\r\n## 5. What did you expect to see?\r\n\r\nA backtrace.\r\n\r\n## 6. What did you see instead?\r\n\r\nAn error."},"comment":{"url":"https://api.github.com/repos/derekparker/delve/issues/comments/198022643","html_url":"https://github.com/derekparker/delve/issues/462#issuecomment-198022643","issue_url":"https://api.github.com/repos/derekparker/delve/issues/462","id":198022643,"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-03-17T18:33:15Z","updated_at":"2016-03-17T18:33:15Z","body":"There is a problem with stacktraces, they work fine for threads that are running goroutines, but apparently there is a bug for threads that aren't running any goroutine.\r\n\r\nAnyway:\r\n\r\n```\r\n(dlv) stack\r\nCommand failed: could not find FDE for PC 0x91e800\r\n(dlv) goroutines\r\n[5 goroutines]\r\n  Goroutine 1 - User: /usr/local/go/src/runtime/netpoll.go:160 net.runtime_pollWait (0x42762c)\r\n  Goroutine 2 - User: /usr/local/go/src/runtime/proc.go:263 runtime.gopark (0x42d6c3)\r\n  Goroutine 3 - User: /usr/local/go/src/runtime/proc.go:263 runtime.gopark (0x42d6c3)\r\n  Goroutine 4 - User: /usr/local/go/src/runtime/proc.go:263 runtime.gopark (0x42d6c3)\r\n  Goroutine 17 - User: /usr/local/go/src/runtime/asm_amd64.s:1999 runtime.goexit (0x45c5d1)\r\n(dlv) goroutine 1 stack\r\n 0  0x000000000042d6c3 in runtime.gopark\r\n    at /usr/local/go/src/runtime/proc.go:263\r\n 1  0x0000000000428146 in runtime.netpollblock\r\n    at /usr/local/go/src/runtime/netpoll.go:341\r\n 2  0x000000000042762c in net.runtime_pollWait\r\n    at /usr/local/go/src/runtime/netpoll.go:160\r\n 3  0x000000000058623f in net.(*pollDesc).Wait\r\n    at /usr/local/go/src/net/fd_poll_runtime.go:73\r\n 4  0x00000000005862af in net.(*pollDesc).WaitRead\r\n    at /usr/local/go/src/net/fd_poll_runtime.go:78\r\n 5  0x0000000000589f3f in net.(*netFD).accept\r\n    at /usr/local/go/src/net/fd_unix.go:426\r\n 6  0x00000000005a7861 in net.(*TCPListener).AcceptTCP\r\n    at /usr/local/go/src/net/tcpsock_posix.go:254\r\n 7  0x00000000004b71c3 in net/http.tcpKeepAliveListener.Accept\r\n    at /usr/local/go/src/net/http/server.go:2427\r\n 8  0x00000000004b634f in net/http.(*Server).Serve\r\n    at /usr/local/go/src/net/http/server.go:2117\r\n 9  0x00000000004b614f in net/http.(*Server).ListenAndServe\r\n    at /usr/local/go/src/net/http/server.go:2098\r\n10  0x00000000004b68af in net/http.ListenAndServe\r\n    at /usr/local/go/src/net/http/server.go:2195\r\n(dlv) \r\n```"}}