{"action":"created","issue":{"url":"https://api.github.com/repos/draios/sysdig/issues/300","labels_url":"https://api.github.com/repos/draios/sysdig/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/draios/sysdig/issues/300/comments","events_url":"https://api.github.com/repos/draios/sysdig/issues/300/events","html_url":"https://github.com/draios/sysdig/issues/300","id":55947696,"number":300,"title":"lsof showing duplicates","user":{"login":"icholy","id":943597,"avatar_url":"https://avatars.githubusercontent.com/u/943597?v=3","gravatar_id":"","url":"https://api.github.com/users/icholy","html_url":"https://github.com/icholy","followers_url":"https://api.github.com/users/icholy/followers","following_url":"https://api.github.com/users/icholy/following{/other_user}","gists_url":"https://api.github.com/users/icholy/gists{/gist_id}","starred_url":"https://api.github.com/users/icholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icholy/subscriptions","organizations_url":"https://api.github.com/users/icholy/orgs","repos_url":"https://api.github.com/users/icholy/repos","events_url":"https://api.github.com/users/icholy/events{/privacy}","received_events_url":"https://api.github.com/users/icholy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rmack","id":3031214,"avatar_url":"https://avatars.githubusercontent.com/u/3031214?v=3","gravatar_id":"","url":"https://api.github.com/users/rmack","html_url":"https://github.com/rmack","followers_url":"https://api.github.com/users/rmack/followers","following_url":"https://api.github.com/users/rmack/following{/other_user}","gists_url":"https://api.github.com/users/rmack/gists{/gist_id}","starred_url":"https://api.github.com/users/rmack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmack/subscriptions","organizations_url":"https://api.github.com/users/rmack/orgs","repos_url":"https://api.github.com/users/rmack/repos","events_url":"https://api.github.com/users/rmack/events{/privacy}","received_events_url":"https://api.github.com/users/rmack/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-01-29T19:52:30Z","updated_at":"2015-02-23T21:52:00Z","closed_at":null,"body":"The `lsof` chisel is showing the same file descriptor multiple times with only the `TID` (thread id) changing. This doesn't make sense because threads share file descriptors.\r\n\r\nIs there a way to get the chisel's results to match those of lsof?"},"comment":{"url":"https://api.github.com/repos/draios/sysdig/issues/comments/75644546","html_url":"https://github.com/draios/sysdig/issues/300#issuecomment-75644546","issue_url":"https://api.github.com/repos/draios/sysdig/issues/300","id":75644546,"user":{"login":"icholy","id":943597,"avatar_url":"https://avatars.githubusercontent.com/u/943597?v=3","gravatar_id":"","url":"https://api.github.com/users/icholy","html_url":"https://github.com/icholy","followers_url":"https://api.github.com/users/icholy/followers","following_url":"https://api.github.com/users/icholy/following{/other_user}","gists_url":"https://api.github.com/users/icholy/gists{/gist_id}","starred_url":"https://api.github.com/users/icholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icholy/subscriptions","organizations_url":"https://api.github.com/users/icholy/orgs","repos_url":"https://api.github.com/users/icholy/repos","events_url":"https://api.github.com/users/icholy/events{/privacy}","received_events_url":"https://api.github.com/users/icholy/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T21:52:00Z","updated_at":"2015-02-23T21:52:00Z","body":"@rmack I don't get `TID` as a column in `lsof`'s output.\r\n\r\n```\r\n$ sudo lsof | head                  \r\nCOMMAND     PID       USER   FD      TYPE             DEVICE   SIZE/OFF       NODE NAME\r\ninit          1       root  cwd       DIR                8,2       4096          2 /\r\ninit          1       root  rtd       DIR                8,2       4096          2 /\r\ninit          1       root  txt       REG                8,2     167192   23639101 /sbin/init\r\ninit          1       root  mem       REG                8,2      52120   21279077 /lib/x86_64-linux-gnu/libnss_files-2.15.so\r\ninit          1       root  mem       REG                8,2      47680   21279462 /lib/x86_64-linux-gnu/libnss_nis-2.15.so\r\ninit          1       root  mem       REG                8,2      97248   21279076 /lib/x86_64-linux-gnu/libnsl-2.15.so\r\ninit          1       root  mem       REG                8,2      35680   21279458 /lib/x86_64-linux-gnu/libnss_compat-2.15.so\r\ninit          1       root  mem       REG                8,2    1811128   21279108 /lib/x86_64-linux-gnu/libc-2.15.so\r\ninit          1       root  mem       REG                8,2      31752   21275335 /lib/x86_64-linux-gnu/librt-2.15.so\r\n```\r\n\r\nMy `lsof` version info.\r\n\r\n```\r\n$ lsof -v\r\nlsof version information:\r\n    revision: 4.81\r\n    latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/\r\n    latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ\r\n    latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man\r\n    constructed: Sun Mar 7 03:33:46 UTC 2010\r\n    constructed by and on: buildd@crested\r\n    compiler: cc\r\n    compiler version: 4.4.3 (Ubuntu 4.4.3-3ubuntu1) \r\n    compiler flags: -DLINUXV=26024 -DGLIBCV=211 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_STRFTIME -DLSOF_VSTR=\"2.6.24-23-server\" -O\r\n    loader flags: -L./lib -llsof \r\n    system info: Linux crested 2.6.24-23-server #1 SMP Wed Apr 1 22:14:30 UTC 2009 x86_64 GNU/Linux\r\n    Anyone can list all files.\r\n    /dev warnings are disabled.\r\n    Kernel ID check is disabled.\r\n```"}}