[Bug 191589] KMail crashes when loosing network connection

Frank Osterfeld frank.osterfeld at kdemail.net
Fri Jul 17 20:41:37 BST 2009


https://bugs.kde.org/show_bug.cgi?id=191589


Frank Osterfeld <frank.osterfeld at kdemail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |frank.osterfeld at kdemail.net




--- Comment #15 from Frank Osterfeld <frank osterfeld kdemail net>  2009-07-17 21:41:35 ---
The problem here is that the Slave is deleted before deref() is called. The
scheduler also calls deref() when it receives the slaveDied() signal, and that
probably causes the deletion. I would think that the initial ref() prevents
that, but apparently it doesn't.
It probably only crashes when somewhere in the signalling some client code does
event processing (usually some modal dialog, e.g. error msg). Then the
deleteLater triggered in deref() kicks in and causes the slave to be deleted
before the deref().

It would be easy to work around the crash by doing 

QPointer<QObject> that( this );
...
if ( that ) deref();

But that's only a workaround for the real bug (just broken refcounting?
conceptual issue?).

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list