{"action":"created","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/717","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/717/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/717/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/717/events","html_url":"https://github.com/giampaolo/psutil/issues/717","id":121781220,"number":717,"title":"Process.open_files fails if deleted files still visible","user":{"login":"skundrik","id":14072681,"avatar_url":"https://avatars.githubusercontent.com/u/14072681?v=3","gravatar_id":"","url":"https://api.github.com/users/skundrik","html_url":"https://github.com/skundrik","followers_url":"https://api.github.com/users/skundrik/followers","following_url":"https://api.github.com/users/skundrik/following{/other_user}","gists_url":"https://api.github.com/users/skundrik/gists{/gist_id}","starred_url":"https://api.github.com/users/skundrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skundrik/subscriptions","organizations_url":"https://api.github.com/users/skundrik/orgs","repos_url":"https://api.github.com/users/skundrik/repos","events_url":"https://api.github.com/users/skundrik/events{/privacy}","received_events_url":"https://api.github.com/users/skundrik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/giampaolo/psutil/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/giampaolo/psutil/labels/OpSys-Linux","name":"OpSys-Linux","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T19:58:22Z","updated_at":"2015-12-12T17:21:06Z","closed_at":null,"body":"os.readlink(file) can sometimes return path looking like this (^@ is NULL)\r\n```\r\n/home/testaccount/.logstash-forwarder^@^@^@^@ (deleted)\r\n/home/testaccount/.logstash-forwarder^@new (deleted)\r\n```\r\nresulting in \r\n````\r\nTypeError: must be encoded string without NULL bytes, not str\r\n````\r\nwhen call to isfile_strict(file) is made. It seems to be happening every time I try to use open_files(proc).\r\n\r\n> Environment\r\n> OS: 2.6.18-164.10.1.el5 #1 SMP Wed Dec 30 18:35:28 EST 2009 x86_64 x86_64 x86_64 GNU/Linux\r\n> Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 17:02:03) \r\n> psutil 3.3.0"},"comment":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/164169743","html_url":"https://github.com/giampaolo/psutil/issues/717#issuecomment-164169743","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/717","id":164169743,"user":{"login":"giampaolo","id":681260,"avatar_url":"https://avatars.githubusercontent.com/u/681260?v=3","gravatar_id":"","url":"https://api.github.com/users/giampaolo","html_url":"https://github.com/giampaolo","followers_url":"https://api.github.com/users/giampaolo/followers","following_url":"https://api.github.com/users/giampaolo/following{/other_user}","gists_url":"https://api.github.com/users/giampaolo/gists{/gist_id}","starred_url":"https://api.github.com/users/giampaolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giampaolo/subscriptions","organizations_url":"https://api.github.com/users/giampaolo/orgs","repos_url":"https://api.github.com/users/giampaolo/repos","events_url":"https://api.github.com/users/giampaolo/events{/privacy}","received_events_url":"https://api.github.com/users/giampaolo/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T17:21:06Z","updated_at":"2015-12-12T17:21:06Z","body":"Can you paste the original traceback message?"}}