{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/rr/issues/1719","repository_url":"https://api.github.com/repos/mozilla/rr","labels_url":"https://api.github.com/repos/mozilla/rr/issues/1719/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/rr/issues/1719/comments","events_url":"https://api.github.com/repos/mozilla/rr/issues/1719/events","html_url":"https://github.com/mozilla/rr/issues/1719","id":158246827,"number":1719,"title":"ioctl error during recording","user":{"login":"yuyichao","id":712232,"avatar_url":"https://avatars.githubusercontent.com/u/712232?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyichao","html_url":"https://github.com/yuyichao","followers_url":"https://api.github.com/users/yuyichao/followers","following_url":"https://api.github.com/users/yuyichao/following{/other_user}","gists_url":"https://api.github.com/users/yuyichao/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyichao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyichao/subscriptions","organizations_url":"https://api.github.com/users/yuyichao/orgs","repos_url":"https://api.github.com/users/yuyichao/repos","events_url":"https://api.github.com/users/yuyichao/events{/privacy}","received_events_url":"https://api.github.com/users/yuyichao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-02T21:44:22Z","updated_at":"2016-06-03T01:39:08Z","closed_at":"2016-06-03T00:37:45Z","body":"Record of julia is broken on rr master with error\r\n\r\n```\r\n[FATAL /home/yuyichao/projects/contrib/rr/src/record_syscall.cc:3789:rec_process_syscall_arch() errno: SUCCESS] \r\n (task 389 (rec:389) at time 647)\r\n -> Assertion `t->regs().syscall_result_signed() == -syscall_state.expect_errno' failed to hold. Expected EINVAL for 'ioctl' but got result 0 (errno SUCCESS); Unknown ioctl(0x5421): type:0x54 nr:0x21 dir:0 size:0 addr:0x7fffd5604eec\r\nLaunch gdb with\r\n  gdb /usr/bin/julia\r\nand attach to the rr debug server with:\r\n  target remote :1024\r\n```\r\n\r\nBisected to 3bcc839f3accd081babb33915f6f2255bf9f1125 (bisect log below)\r\n\r\n@Keno 's comment\r\n> Yeah, looks like it'll need special handling in rr (there's a difference between the io being a tty and a pipe as an inferior)\r\n\r\n```\r\nyyc2:~/projects/contrib/rr\r\nyuyichao% git bisect good \r\n3bcc839f3accd081babb33915f6f2255bf9f1125 is the first bad commit\r\ncommit 3bcc839f3accd081babb33915f6f2255bf9f1125\r\nAuthor: Robert O'Callahan <robert@ocallahan.org>\r\nDate:   Mon May 23 11:42:59 2016 +1200\r\n\r\n    Don't be optimistic about known-irregular ioctls\r\n\r\n:040000 040000 05e84ebfe7993cbd2d71d6e3ddd2fd66c323c3ea e175b935eba4217edcdc8c21b137ce6aa5bd37f7 M      src\r\nyyc2:~/projects/contrib/rr\r\nyuyichao% git bisect log \r\ngit bisect start\r\n# bad: [069814de24544da13fad0ce82438e6b46da6340b] Fix earlier Travis break\r\ngit bisect bad 069814de24544da13fad0ce82438e6b46da6340b\r\n# good: [f074540a2c4ba669aaaa70e445780ff04b4c3334] Tweak logging\r\ngit bisect good f074540a2c4ba669aaaa70e445780ff04b4c3334\r\n# good: [f074540a2c4ba669aaaa70e445780ff04b4c3334] Tweak logging\r\ngit bisect good f074540a2c4ba669aaaa70e445780ff04b4c3334\r\n# bad: [62a859c98a67864c1ada93c356d1ef33b86a439b] Skip writing assertion header if condition is false\r\ngit bisect bad 62a859c98a67864c1ada93c356d1ef33b86a439b\r\n# bad: [3a503a71a1f866c95db9771aa86e63c3b6941cc4] Add explicit operator bool to remote_code_ptr\r\ngit bisect bad 3a503a71a1f866c95db9771aa86e63c3b6941cc4\r\n# bad: [9b5881a2df6e1e0604d3d45798dd1089e139ac39] Try a bit harder to test wireless/ethernet interfaces\r\ngit bisect bad 9b5881a2df6e1e0604d3d45798dd1089e139ac39\r\n# bad: [3bcc839f3accd081babb33915f6f2255bf9f1125] Don't be optimistic about known-irregular ioctls\r\ngit bisect bad 3bcc839f3accd081babb33915f6f2255bf9f1125\r\n# good: [ff03a2e15a66604fb9b47c04f0826aee786c5afb] Make sioc more rigorous\r\ngit bisect good ff03a2e15a66604fb9b47c04f0826aee786c5afb\r\n# first bad commit: [3bcc839f3accd081babb33915f6f2255bf9f1125] Don't be optimistic about known-irregular ioctls\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/rr/issues/comments/223469941","html_url":"https://github.com/mozilla/rr/issues/1719#issuecomment-223469941","issue_url":"https://api.github.com/repos/mozilla/rr/issues/1719","id":223469941,"user":{"login":"rocallahan","id":296135,"avatar_url":"https://avatars.githubusercontent.com/u/296135?v=3","gravatar_id":"","url":"https://api.github.com/users/rocallahan","html_url":"https://github.com/rocallahan","followers_url":"https://api.github.com/users/rocallahan/followers","following_url":"https://api.github.com/users/rocallahan/following{/other_user}","gists_url":"https://api.github.com/users/rocallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/rocallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocallahan/subscriptions","organizations_url":"https://api.github.com/users/rocallahan/orgs","repos_url":"https://api.github.com/users/rocallahan/repos","events_url":"https://api.github.com/users/rocallahan/events{/privacy}","received_events_url":"https://api.github.com/users/rocallahan/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T01:39:08Z","updated_at":"2016-06-03T01:39:08Z","body":"I've pushed support for all those on your list, and I'm working my way through some more."}}
{"actor":{"display_login":"rocallahan"}}