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

Re: bug in Gnome2::VFS?



On Sat, 2004-03-06 at 10:26, Torsten Schoenfeld wrote:
> On Sat, 2004-03-06 at 09:40, James Curbo wrote:
> > If I run the attached script, I get this crash:
> > 
> > james pioneer:~$ perl vfstest.pl 
> > Use of uninitialized value in subtraction (-) at vfstest.pl line 26.
> > libgnomevfs-CRITICAL **: file gnome-vfs-socket-buffer.c: line 169
> > (gnome_vfs_socket_buffer_read): assertion `buffer != NULL' failed at
> > vfstest.pl line 26.
> > Segmentation fault
> 
> The problem is that sf.net doesn't provide the size of the file you
> requested.  Thus, $info->{size} is undefined.  In cases like that you
> have to take another approach:  read a certain amount of bytes per
> iteration, append everything you get to the buffer and stop when you get
> the end-of-file error.  The attached patch does that.  (The patch also
> does s/\$@/\$result/g -- Gnome2::VFS doesn't croak on error.)

That makes sense, since it's not a static page. Thanks for the error fix
as well, I probably would have caught that had it not been 2am :)

> All that said, Gnome2::VFS should probably not segfault -- I'll look
> into it.

In case you need to know, I have Debian version 2.4.1-4.1 of
libgnomevfs2, and 0.93-1 of Gnome2 (the perl library). If you need
anything else from me, just ask.

> 
> Bye,
> -Torsten
-- 
James Curbo <james teyandei net>
http://teyandei.net/
GPG Fingerprint: AA8B D78D 6789 84E2 17A5 0F2A C4CA 6A55 0A4B 263F

Attachment: signature.asc
Description: This is a digitally signed message part



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