{"action":"created","issue":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/3505","repository_url":"https://api.github.com/repos/chapel-lang/chapel","labels_url":"https://api.github.com/repos/chapel-lang/chapel/issues/3505/labels{/name}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/issues/3505/comments","events_url":"https://api.github.com/repos/chapel-lang/chapel/issues/3505/events","html_url":"https://github.com/chapel-lang/chapel/pull/3505","id":141659547,"number":3505,"title":"Fix gasnet with debugger.","user":{"login":"gbtitus","id":7740880,"avatar_url":"https://avatars.githubusercontent.com/u/7740880?v=3","gravatar_id":"","url":"https://api.github.com/users/gbtitus","html_url":"https://github.com/gbtitus","followers_url":"https://api.github.com/users/gbtitus/followers","following_url":"https://api.github.com/users/gbtitus/following{/other_user}","gists_url":"https://api.github.com/users/gbtitus/gists{/gist_id}","starred_url":"https://api.github.com/users/gbtitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbtitus/subscriptions","organizations_url":"https://api.github.com/users/gbtitus/orgs","repos_url":"https://api.github.com/users/gbtitus/repos","events_url":"https://api.github.com/users/gbtitus/events{/privacy}","received_events_url":"https://api.github.com/users/gbtitus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-17T17:58:53Z","updated_at":"2016-03-18T20:55:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chapel-lang/chapel/pulls/3505","html_url":"https://github.com/chapel-lang/chapel/pull/3505","diff_url":"https://github.com/chapel-lang/chapel/pull/3505.diff","patch_url":"https://github.com/chapel-lang/chapel/pull/3505.patch"},"body":"Back in December I rewrote the Chapel developer feature that starts a\r\ndebugger in an xterm for each instance of a program distributed via\r\nGASNet's amudprun launcher (for the udp substrate), because our old\r\npatch for that feature could no longer be applied due to changes in the\r\nunderlying code.  Unfortunately my \"fix\" was broken in a couple of ways, \r\nwhich my limited testing didn't pick up:\r\n- I didn't NULL-terminate the argv vectors passed to execve(2) to\r\n  launch the xterms and indeed, those argv vectors weren't even\r\n  allocated large enough to hold a terminating NULL.\r\n- The code didn't work on darwin, where the xterm binary is in a\r\n  different place and we need to use lldb instead of gdb.\r\n\r\nHere, solve both these problems.\r\n"},"comment":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/comments/198538998","html_url":"https://github.com/chapel-lang/chapel/pull/3505#issuecomment-198538998","issue_url":"https://api.github.com/repos/chapel-lang/chapel/issues/3505","id":198538998,"user":{"login":"benharsh","id":1883119,"avatar_url":"https://avatars.githubusercontent.com/u/1883119?v=3","gravatar_id":"","url":"https://api.github.com/users/benharsh","html_url":"https://github.com/benharsh","followers_url":"https://api.github.com/users/benharsh/followers","following_url":"https://api.github.com/users/benharsh/following{/other_user}","gists_url":"https://api.github.com/users/benharsh/gists{/gist_id}","starred_url":"https://api.github.com/users/benharsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benharsh/subscriptions","organizations_url":"https://api.github.com/users/benharsh/orgs","repos_url":"https://api.github.com/users/benharsh/repos","events_url":"https://api.github.com/users/benharsh/events{/privacy}","received_events_url":"https://api.github.com/users/benharsh/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T20:55:50Z","updated_at":"2016-03-18T20:55:50Z","body":"This seems to work for my simple use cases. It will be nice not to have to apply that patch, thanks!"}}