{"action":"created","issue":{"url":"https://api.github.com/repos/linzj/gen-trace/issues/5","labels_url":"https://api.github.com/repos/linzj/gen-trace/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/linzj/gen-trace/issues/5/comments","events_url":"https://api.github.com/repos/linzj/gen-trace/issues/5/events","html_url":"https://github.com/linzj/gen-trace/issues/5","id":53941389,"number":5,"title":"Runtime-based branch, mem_modify(...) fails","user":{"login":"l04m33","id":72660,"avatar_url":"https://avatars.githubusercontent.com/u/72660?v=3","gravatar_id":"","url":"https://api.github.com/users/l04m33","html_url":"https://github.com/l04m33","followers_url":"https://api.github.com/users/l04m33/followers","following_url":"https://api.github.com/users/l04m33/following{/other_user}","gists_url":"https://api.github.com/users/l04m33/gists{/gist_id}","starred_url":"https://api.github.com/users/l04m33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l04m33/subscriptions","organizations_url":"https://api.github.com/users/l04m33/orgs","repos_url":"https://api.github.com/users/l04m33/repos","events_url":"https://api.github.com/users/l04m33/events{/privacy}","received_events_url":"https://api.github.com/users/l04m33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-10T02:53:10Z","updated_at":"2015-01-10T03:11:08Z","closed_at":null,"body":"我的系统是 3.17.7 x86_64 内核， prctl(...) 报 EINVAL:\r\n\r\n    ❯ ./mem_modify_test \r\n    ptrctl fails Invalid argument\r\n    mem_modify_test: mem_modify_test.cpp:36: void test(int): Assertion `count == 1' failed.\r\n\r\n这个系统 [没有YAMA][1] ，是这个原因吗？\r\n\r\n[1]: http://man7.org/linux/man-pages/man2/prctl.2.html"},"comment":{"url":"https://api.github.com/repos/linzj/gen-trace/issues/comments/69436099","html_url":"https://github.com/linzj/gen-trace/issues/5#issuecomment-69436099","issue_url":"https://api.github.com/repos/linzj/gen-trace/issues/5","id":69436099,"user":{"login":"linzj","id":5935381,"avatar_url":"https://avatars.githubusercontent.com/u/5935381?v=3","gravatar_id":"","url":"https://api.github.com/users/linzj","html_url":"https://github.com/linzj","followers_url":"https://api.github.com/users/linzj/followers","following_url":"https://api.github.com/users/linzj/following{/other_user}","gists_url":"https://api.github.com/users/linzj/gists{/gist_id}","starred_url":"https://api.github.com/users/linzj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linzj/subscriptions","organizations_url":"https://api.github.com/users/linzj/orgs","repos_url":"https://api.github.com/users/linzj/repos","events_url":"https://api.github.com/users/linzj/events{/privacy}","received_events_url":"https://api.github.com/users/linzj/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T03:11:08Z","updated_at":"2015-01-10T03:11:08Z","body":"确实 这里我已经判断是否有PR_SET_PTRACER 这个宏定义的存在\r\n不过看了代码 我发现我没有保存errno即调用write。这里是个错误。\r\n\r\n2015-01-10 10:53 GMT+08:00 Kay Zheng <notifications@github.com>:\r\n\r\n> 我的系统是 3.17.7 x86_64 内核， prctl(...) 报 EINVAL:\r\n>\r\n> ❯ ./mem_modify_test\r\n> ptrctl fails Invalid argument\r\n> mem_modify_test: mem_modify_test.cpp:36: void test(int): Assertion `count == 1' failed.\r\n>\r\n> 这个系统 没有YAMA <http://man7.org/linux/man-pages/man2/prctl.2.html> ，是这个原因吗？\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/linzj/gen-trace/issues/5>.\r\n>\r\n"}}