XIO errors

Lubos Lunak l.lunak at suse.cz
Mon Jul 21 14:57:18 BST 2008

On Saturday 19 of July 2008, Joris Guisson wrote:
> I have gotten several reports of crashes in ktorrent and they all have
> the similar backtraces, for example this one :
> https://bugs.kde.org/show_bug.cgi?id=166685
> In the backtrace you can see that the _XIOError function is called,
> this then triggers kde_xio_errhandler which starts shutting the down
> the app (which then crashes).
> Does anybody has any idea what is causing these XIO errors ?

 Lost connection to X server, usually (see man XSetIOErrorHandler). It doesn't 
fit the error description, but I can't see how one could normally get this 
problem otherwise.

 The actual problem appears to be KApplication::xioErrhandler() emitting 
aboutToQuit() - with XIO errors, the application is not about to quit, it's 
about to fall flat on its face, hard. I will remove that code.

> Even if I 
> manage to fix the crash, ktorrent will still be shutdown, so the best
> solution would be to prevent this from happening. I have searched
> bugs.kde.org (see query below) for similar crashes and I have found
> quite a few of these, but nobody appears to have any idea how to fix
> this judging from how the bugs are resolved.

Lubos Lunak
KDE developer
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http://www.suse.cz

More information about the kde-core-devel mailing list