Re: gvfs crash



(gdb) print io_error
$2 = (GError *) 0x0


tip: gvfs-0.2.5-1.fc9.i386

2008/10/6 Alexander Larsson <alexl redhat com>
On Sun, 2008-10-05 at 20:19 +0400, Alexey Kuznetsov wrote:
> Hello! I try to solve gvfs daemon crash. Crash happens when i
> listening music from my samba server via Amarok.
>
> I get info via gdb and fix stack crash, here is it:
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb626db90 (LWP 3787)]
> 0x00120b46 in run_sync_state_machine (file=0xa01a560, iterator=0x11f000
> <iterate_seek_state_machine>, data="" cancellable=0x0,
>
> error=0xb626d174)
>     at gdaemonfileinputstream.c:450
> 450        g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
> (gdb) bt
> #0  0x00120b46 in run_sync_state_machine (file=0xa01a560, iterator=0x11f000
> <iterate_seek_state_machine>, data="" cancellable=0x0,
>
> error=0xb626d174)
>     at gdaemonfileinputstream.c:450
> here is code with seg fault:
>
>         {
>           g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
>                _("Error in stream protocol: %s"), io_error->message);
>           g_error_free (io_error);
>           return FALSE;
>         }
>     }

> is someone can suggest the crash condition. for example it could be
> bad io_error pointer or not?

It looks like io_error is bad, what value does it have? Can you try to
print it with gdb? It seems likely that its NULL, which means the
previous i/o call returned -1 without setting a detailed error.




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