GNOME Bugzilla – Bug 550852
special proc files are displayed as empty
Last modified: 2009-01-10 16:50:22 UTC
the bug has been described on https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/262800 "Binary package hint: gedit When I click on /proc/bus/usb/devices a blank page appears and I can not read the content of the file. The same result I get if I use Nautilius. No problem using cat /proc/bus/usb/devices." you can try on other proc files it does the same, that's still an issue using GNOME 2.23.91
What happens is that stat reports its a regular file of size 0. I'm not sure where and if this can be fixed because gedit needs the file size to be able to mmap the file into memory (don't know if that even would work for proc files). Maybe we should check if gio has the same problem (we do want to have the local and remote loader to both be the same loader anyway).
Ah, I also see we had this problem reported before: bug #375061
In addition to click with Nautilus on /proc/bus/usb/devices with the result of 0 byte text message markings for the file 'devices', I entered 'ls -s' in /proc/bus/usb and the display showed '0 bytes' for the file 'devices'. With cat, vim, emacs, however, I can read the displyed content of the 'devices' file. Gaetano Arena
Yes, it's just the mmap strategy that makes this fail, so I think we should try to move to just having one loader again, using gio (which doesn't use mmap for local files).
*** This bug has been marked as a duplicate of 375061 ***