Re: gvfs crash



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=0xb626d05c, 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=0xb626d05c, 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.

Another interesting thing to know is what happened before this call.
I.E. What does the local var io_op contain?





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