[Nautilus-list] [PATCH] Infinite loop in nautilus (under patched kernel, but still....)
- From: Gianni Tedesco "(Scaramanga)" <gianni ecsc co uk>
- To: nautilus-list lists eazel com
- Subject: [Nautilus-list] [PATCH] Infinite loop in nautilus (under patched kernel, but still....)
- Date: 21 Mar 2001 23:56:52 +0000
Hi,
Having downloaded the latest nautilus (RPM), i noticed that it only
ran as root, under a user it stopped loading and used 100% CPU. A strace
quickly pinned down the problem:
open("/proc/1/stat", O_RDONLY) = -1 EACCES (Permission denied)
open("/proc/1/stat", O_RDONLY) = -1 EACCES (Permission denied)
open("/proc/1/stat", O_RDONLY) = -1 EACCES (Permission denied)
etc....
I custom patched my kernel to only allow users access to their own
processes in /proc. This error should NOT cause the program to loop.
I believe this to be the fix, but I haven't checked it. (looks obvious
to me)
--- nautilus.orig/libnautilus-extensions/nautilus-medusa-support.c Tue Mar 6 00:12:56 2001
+++ nautilus/libnautilus-extensions/nautilus-medusa-support.c Wed Mar 21 23:51:12 2001
@@ -113,6 +113,7 @@
g_free (stat_file_name);
if (stat_file == NULL) {
+ file = readdir (proc_directory);
continue;
}
Please CC any reply to me, I'm not on the list.
Kind regards.
--
// Gianni Tedesco <gianni ecsc co uk>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]