Bug#379598: libgnomevfs2-0: uses 100% CPU, prevents login
Josselin Mouette
joss at debian.org
Mon Jul 24 20:52:12 UTC 2006
clone 379598 -1
reassign -1 libntfs-gnomevfs
thanks
Le lundi 24 juillet 2006 à 21:05 +0200, Gabor Gombas a écrit :
> Upon further investigation, I think I found the bug:
>
> - With today's upgrade of libntfs-gnomevfs,
> /etc/gnome-vfs-2.0/modules/libntfs.conf became a directory (that's
> interesting in itself...)
>
> - In gnome-vfs-configuration.c, the function parse_file() now gets into
> an endless loop when called with file_name being
> "/etc/gnome-vfs-2.0/modules/libntfs.conf":
>
> - read_line() always returns 0 with line_buffer being the empty
> string, since it cannot read the directory as a file
> - parse_line() returns TRUE when it is given an empty string
> - there are no other ways to break the "while (1) { ... }" loop...
>
> The bug seems to be that parse_file() expects read_line() to return -1
> on EOF, but read_line() never returns -1; on EOF, it returns 0 instead.
>
> Maybe an explicit test before the g_fopen() that file_name is not a
> directory/device node/etc. would be useful.
Thanks for the investigation. I think that both packages should be
fixed.
--
.''`. Josselin Mouette /\./\
: :' : josselin.mouette at ens-lyon.org
`. `' joss at debian.org
`- Debian GNU/Linux -- The power of freedom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20060724/f92bd7fe/attachment.pgp
More information about the Pkg-gnome-maintainers
mailing list