{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/26839","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/26839/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/26839/comments","events_url":"https://api.github.com/repos/golang/go/issues/26839/events","html_url":"https://github.com/golang/go/issues/26839","id":348292397,"node_id":"MDU6SXNzdWUzNDgyOTIzOTc=","number":26839,"title":"cmd/compile: wrong function location in stacktrace","user":{"login":"daskol","id":9336514,"node_id":"MDQ6VXNlcjkzMzY1MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9336514?v=4","gravatar_id":"","url":"https://api.github.com/users/daskol","html_url":"https://github.com/daskol","followers_url":"https://api.github.com/users/daskol/followers","following_url":"https://api.github.com/users/daskol/following{/other_user}","gists_url":"https://api.github.com/users/daskol/gists{/gist_id}","starred_url":"https://api.github.com/users/daskol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daskol/subscriptions","organizations_url":"https://api.github.com/users/daskol/orgs","repos_url":"https://api.github.com/users/daskol/repos","events_url":"https://api.github.com/users/daskol/events{/privacy}","received_events_url":"https://api.github.com/users/daskol/received_events","type":"User","site_admin":false},"labels":[{"id":373402289,"node_id":"MDU6TGFiZWwzNzM0MDIyODk=","url":"https://api.github.com/repos/golang/go/labels/NeedsInvestigation","name":"NeedsInvestigation","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"odeke-em","id":4898263,"node_id":"MDQ6VXNlcjQ4OTgyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/4898263?v=4","gravatar_id":"","url":"https://api.github.com/users/odeke-em","html_url":"https://github.com/odeke-em","followers_url":"https://api.github.com/users/odeke-em/followers","following_url":"https://api.github.com/users/odeke-em/following{/other_user}","gists_url":"https://api.github.com/users/odeke-em/gists{/gist_id}","starred_url":"https://api.github.com/users/odeke-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odeke-em/subscriptions","organizations_url":"https://api.github.com/users/odeke-em/orgs","repos_url":"https://api.github.com/users/odeke-em/repos","events_url":"https://api.github.com/users/odeke-em/events{/privacy}","received_events_url":"https://api.github.com/users/odeke-em/received_events","type":"User","site_admin":false},"assignees":[{"login":"odeke-em","id":4898263,"node_id":"MDQ6VXNlcjQ4OTgyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/4898263?v=4","gravatar_id":"","url":"https://api.github.com/users/odeke-em","html_url":"https://github.com/odeke-em","followers_url":"https://api.github.com/users/odeke-em/followers","following_url":"https://api.github.com/users/odeke-em/following{/other_user}","gists_url":"https://api.github.com/users/odeke-em/gists{/gist_id}","starred_url":"https://api.github.com/users/odeke-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odeke-em/subscriptions","organizations_url":"https://api.github.com/users/odeke-em/orgs","repos_url":"https://api.github.com/users/odeke-em/repos","events_url":"https://api.github.com/users/odeke-em/events{/privacy}","received_events_url":"https://api.github.com/users/odeke-em/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/65","html_url":"https://github.com/golang/go/milestone/65","labels_url":"https://api.github.com/repos/golang/go/milestones/65/labels","id":3072996,"node_id":"MDk6TWlsZXN0b25lMzA3Mjk5Ng==","number":65,"title":"Go1.12","description":"","creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":371,"closed_issues":586,"state":"open","created_at":"2018-01-29T21:17:52Z","updated_at":"2018-12-18T00:14:39Z","due_on":"2019-01-31T08:00:00Z","closed_at":null},"comments":8,"created_at":"2018-08-07T12:06:50Z","updated_at":"2018-12-18T07:18:37Z","closed_at":"2018-12-10T23:32:09Z","author_association":"NONE","body":"### What version of Go are you using (`go version`)?\r\n\r\n```\r\n$ go version\r\ngo version go1.10.3 linux/amd64\r\n```\r\n\r\n### Does this issue reproduce with the latest release?\r\nYep.\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n```$ go env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/home/daskol/.cache/go-build\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/daskol/proj\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/lib/go/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"gcc\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build715124347=/tmp/go-build -gno-record-gcc-switches\"\r\n```\r\n\r\n\r\n### What did you do?\r\n\r\nhttps://play.golang.org/p/JefU2uAc-17\r\n\r\n\r\n### What did you expect to see?/What did you see instead?\r\n\r\nThe issue is how Golang prints location of callable objects. The snippet below descibres the issue.\r\n\r\n```\r\nmain.(*A).Foo-fm()\r\n\t/tmp/sandbox285241419/main.go:13 +0x40\r\n```\r\n\r\nIt says that it calls object located at `main.go:13`. The first of all that object in other function. And the second it is the function with the reveiver. So, I expect to see `main.go:18` or `main.go:19`.\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/448120971","html_url":"https://github.com/golang/go/issues/26839#issuecomment-448120971","issue_url":"https://api.github.com/repos/golang/go/issues/26839","id":448120971,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODEyMDk3MQ==","user":{"login":"odeke-em","id":4898263,"node_id":"MDQ6VXNlcjQ4OTgyNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/4898263?v=4","gravatar_id":"","url":"https://api.github.com/users/odeke-em","html_url":"https://github.com/odeke-em","followers_url":"https://api.github.com/users/odeke-em/followers","following_url":"https://api.github.com/users/odeke-em/following{/other_user}","gists_url":"https://api.github.com/users/odeke-em/gists{/gist_id}","starred_url":"https://api.github.com/users/odeke-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odeke-em/subscriptions","organizations_url":"https://api.github.com/users/odeke-em/orgs","repos_url":"https://api.github.com/users/odeke-em/repos","events_url":"https://api.github.com/users/odeke-em/events{/privacy}","received_events_url":"https://api.github.com/users/odeke-em/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T07:18:37Z","updated_at":"2018-12-18T07:18:37Z","author_association":"MEMBER","body":"Cool, thank you @randall77 for the fixes!"}}
{"actor":{"display_login":"odeke-em"}}