{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/rr/issues/1710","repository_url":"https://api.github.com/repos/mozilla/rr","labels_url":"https://api.github.com/repos/mozilla/rr/issues/1710/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/rr/issues/1710/comments","events_url":"https://api.github.com/repos/mozilla/rr/issues/1710/events","html_url":"https://github.com/mozilla/rr/issues/1710","id":156813046,"number":1710,"title":"'Syscall open failed with errno EACCES opening .' attaching to apache2","user":{"login":"SeanHeelan","id":1920339,"avatar_url":"https://avatars.githubusercontent.com/u/1920339?v=3","gravatar_id":"","url":"https://api.github.com/users/SeanHeelan","html_url":"https://github.com/SeanHeelan","followers_url":"https://api.github.com/users/SeanHeelan/followers","following_url":"https://api.github.com/users/SeanHeelan/following{/other_user}","gists_url":"https://api.github.com/users/SeanHeelan/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanHeelan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanHeelan/subscriptions","organizations_url":"https://api.github.com/users/SeanHeelan/orgs","repos_url":"https://api.github.com/users/SeanHeelan/repos","events_url":"https://api.github.com/users/SeanHeelan/events{/privacy}","received_events_url":"https://api.github.com/users/SeanHeelan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-25T17:59:47Z","updated_at":"2016-05-25T20:23:57Z","closed_at":null,"body":"Hey, \r\n\r\nI want to use rr to debug an issue in mod_php but I'm hitting a problem attaching to apache. I'm on 64-bit Fedora 23 with the following kernel:\r\n\r\n```\r\n[root@localhost ~]# uname -r -v -p\r\n4.4.9-300.fc23.x86_64 #1 SMP Wed May 4 23:56:27 UTC 2016 x86_64\r\n```\r\n\r\nI've built rr from commit 32eef050b19dbfd13ac0962f66806a2d0444d83e (Mon May 23). I'm using the latest apache2 in the Fedora repositories, and php 7.0.5 built from source.\r\n\r\nWhen I attempt to launch apache via rr I get the following \r\n```\r\n[root@localhost ~]# rr -M httpd -X\r\nrr: Saving the execution of `httpd' to trace directory `/root/.local/share/rr/httpd-0'.\r\n[rr 11039 1713]AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message\r\n[FATAL /home/sean/Documents/Git/rr/rr/src/AutoRemoteSyscalls.cc:476:check_syscall_result() errno: SUCCESS] \r\n (task 11049 (rec:11049) at time 3517)\r\n -> Assertion `false' failed to hold. Syscall open failed with errno EACCES opening .\r\nLaunch gdb with\r\n  gdb /usr/sbin/httpd\r\nand attach to the rr debug server with:\r\n  target remote :11049\r\n[FATAL /home/sean/Documents/Git/rr/rr/src/log.cc:275:emergency_debug() errno: SUCCESS] Can't resume execution from invalid state\r\nAborted (core dumped)\r\n\r\n```\r\n\r\n```\r\n(gdb) target remote :13086\r\nRemote debugging using :13086\r\nwarning: limiting remote suggested packet size (17073526 bytes) to 16384\r\nwarning: remote target does not support file transfer, attempting to access files from local filesystem.\r\nReading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/usr/lib64/ld-2.22.so.debug...done.\r\ndone.\r\n0x0000000070000002 in _start () from /lib64/ld-linux-x86-64.so.2\r\n(gdb) bt\r\n#0  0x0000000070000002 in _start () from /lib64/ld-linux-x86-64.so.2\r\n#1  0x000000007c96002e in ?? ()\r\n#2  0x00007f186518c7a5 in ?? ()\r\n#3  0x00000000ffffffff in ?? ()\r\n#4  0x00007f184d931be0 in ?? ()\r\n#5  0x00007f18638a7de0 in ?? ()\r\n#6  0x00007f1865537000 in ?? ()\r\n#7  0x00000000ffffffff in ?? ()\r\n#8  0x0000000000000000 in ?? ()\r\n```\r\n\r\nAny thoughts on what might be causing this? rr works on targets other than apache, so I'm fairly sure the version of rr I have is built correctly. \r\n\r\nCheers,\r\nSean"},"comment":{"url":"https://api.github.com/repos/mozilla/rr/issues/comments/221695845","html_url":"https://github.com/mozilla/rr/issues/1710#issuecomment-221695845","issue_url":"https://api.github.com/repos/mozilla/rr/issues/1710","id":221695845,"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-05-25T20:23:57Z","updated_at":"2016-05-25T20:23:57Z","body":"What's the backtrace in the rr process?\r\n\r\nAfter killing the emergency-debug, you should be able to `rr replay -p 11049` (or whatever the rec-tid is) and then run it until the trace ends, and get a reasonable backtrace of what the tracee was doing at that point."}}
{"actor":{"display_login":"rocallahan"}}