After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 550852 - special proc files are displayed as empty
special proc files are displayed as empty
Status: RESOLVED DUPLICATE of bug 375061
Product: gedit
Classification: Applications
Component: general
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-04 15:04 UTC by Sebastien Bacher
Modified: 2009-01-10 16:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Sebastien Bacher 2008-09-04 15:04:10 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
Comment 1 jessevdk@gmail.com 2008-09-04 19:55:58 UTC
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).
Comment 2 jessevdk@gmail.com 2008-09-04 20:04:27 UTC
Ah, I also see we had this problem reported before: bug #375061
Comment 3 Gaetano 2008-09-04 20:43:02 UTC
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 
Comment 4 jessevdk@gmail.com 2008-09-04 21:30:13 UTC
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).
Comment 5 Paolo Borelli 2009-01-10 16:50:22 UTC

*** This bug has been marked as a duplicate of 375061 ***