Re: [Nautilus-list] [PATCH] Infinite loop in nautilus (under patched kernel, butstill....)



"Gianni Tedesco (Scaramanga)" wrote:

> 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)
>

Your patch looks great.  I've committed it to nautilus cvs (we're currently working on HEAD)
Thanks.

Rebecca

>
> --- 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>
>
> _______________________________________________
> Nautilus-list mailing list
> Nautilus-list lists eazel com
> http://lists.eazel.com/mailman/listinfo/nautilus-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]