Bug 103184 - Deadlock with KWallet and Konqueror autocompletion
Summary: Deadlock with KWallet and Konqueror autocompletion
Status: RESOLVED DUPLICATE of bug 102464
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kwallet (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: George Staikos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 08:46 UTC by András Manţia
Modified: 2006-03-11 20:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2005-04-04 08:46:46 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Compiled From Sources
Compiler:          
gcc version 3.3.4 
OS:                Linux

I can easily reproduce a deadlock with KWallet and Konqueror which requires to kill the X server completely as one cannot start/close application with the mouse or use the keyboard. This happens because I have set kppp to execute a command (check mail with KMail) after a connection, so the KWallet dialog requested by KMail appears automatically after the ppp connection is set up. If at the time the KWallet dialog appears I type in the Konqueror Location entry and the autocompletion drop-down list appears the deadlock happens and I cannot do anything, but kill the X server, login ASAP and kill the pppd process, otherwise my phone bill keeps going up.

I find this a severe bug.

Andras
Comment 1 George Staikos 2005-04-04 16:37:54 UTC
On Monday 04 April 2005 02:46, Mantia Andras wrote:
> I can easily reproduce a deadlock with KWallet and Konqueror which requires
> to kill the X server completely as one cannot start/close application with
> the mouse or use the keyboard. This happens because I have set kppp to
> execute a command (check mail with KMail) after a connection, so the
> KWallet dialog requested by KMail appears automatically after the ppp
> connection is set up. If at the time the KWallet dialog appears I type in
> the Konqueror Location entry and the autocompletion drop-down list appears
> the deadlock happens and I cannot do anything, but kill the X server, login
> ASAP and kill the pppd process, otherwise my phone bill keeps going up.
>
> I find this a severe bug.


   Only happens with KMail?  If so, this is due to the synchronous interface 
blocking kded.  Konqueror grabs the display to pop up the dialog, and in that 
it does a DCOP call to kded to get favicons which also blocks behind the 
KWallet call.  For sure it's a deadlock.  Not much I know of that can be done 
on the KWallet side for this.   There is the asynchronous interface which 
should fix the problem though.
Comment 2 András Manţia 2005-04-04 17:29:32 UTC
On Monday 04 April 2005 17:38, George Staikos wrote:
>    Only happens with KMail? 


I don't know. How can I test if it happens with other app as well? 

>    If so, this is due to the synchronous 
> interface blocking kded.  Konqueror grabs the display to pop up the
> dialog, and in that it does a DCOP call to kded to get favicons which
> also blocks behind the KWallet call.  For sure it's a deadlock.  Not
> much I know of that can be done on the KWallet side for this.   There
> is the asynchronous interface which should fix the problem though.


But this means that the synchronous interface is really dangerous and 
should be probably deprecated for KDE 4, isn't it?

Andras
Comment 3 George Staikos 2005-04-04 18:03:00 UTC
On Monday 04 April 2005 11:29, Mantia Andras wrote:
> >    Only happens with KMail?
>
> I don't know. How can I test if it happens with other app as well?


  Have KHTML blocking on it and trigger the completion combo in another konqi 
window.

> >    If so, this is due to the synchronous
> > interface blocking kded.  Konqueror grabs the display to pop up the
> > dialog, and in that it does a DCOP call to kded to get favicons which
> > also blocks behind the KWallet call.  For sure it's a deadlock.  Not
> > much I know of that can be done on the KWallet side for this.   There
> > is the asynchronous interface which should fix the problem though.
>
> But this means that the synchronous interface is really dangerous and
> should be probably deprecated for KDE 4, isn't it?


  It's necessary in some cases, but yes, apps should use the asynchronous 
interface.  I tell everyone who uses KWallet to do that, but no-one does 
because it's much more difficult to implement.
Comment 4 András Manţia 2005-04-08 10:27:39 UTC
On Monday 04 April 2005 19:03, George Staikos wrote:
> 
Comment 5 George Staikos 2005-04-08 14:16:40 UTC
On Friday 08 April 2005 04:27, Mantia Andras wrote:
> But this means that every app using the synchronous interface will have
> the same bug and can cause a complete lockup of the UI. Can't this be
> avoided in kwallet or kded?


  Not really.  This is why I told people to use the async interface.  The 
synchronous interface is only for apps that absolutely can't use an async 
interface.
Comment 6 Martin Steigerwald 2005-09-03 15:54:15 UTC
Hello, this happened to me some times with KMail as well as with Konqueror. Last time today. I completely locked X here too. I stopped the Konqueror and KDE processes but it didn't help only way out was restarting X.org. Using KDE 4:3.4.1-1 on Debian Etch. I will switch to KDE 3.4.2-2 or later as soon as enough of my favorite KDE apps have made the C++ ABI change. Regards, Martin Steigerwald
Comment 7 Philippe Rigault 2005-12-09 15:25:27 UTC
Dupe of bug 102464
Comment 8 Martin Steigerwald 2005-12-09 21:52:22 UTC
Am Freitag 09 Dezember 2005 15:25 schrieben Sie:
[bugs.kde.org quoted mail]

Hello Philippe,

how is that? Bug 103184 is about Konqueror and KWallet, but 102464 ist 
about KMail and KWallet...

Regards,
Comment 9 Philippe Rigault 2005-12-10 00:06:32 UTC
>how is that?

Both bugs are about desktop lockup occuring due to the following events:
 kmail calls kwallet and 
Comment 10 Philippe Rigault 2005-12-10 00:10:29 UTC
>how is that? 
  
Both bugs are about desktop locking up when the following events happen:
 1. kmail calls kwallet and the kwallet dialog pops up
 2. user types in konqueror location bar
=> lockup

So the real title should be: desktop lockup because of use synchronous kwallet with kmail and konqueror.
Comment 11 Tim Hutt 2006-03-10 16:47:11 UTC
This is still there with KDE 3.5.1

Apps shouldn't be able to lock the whole desktop at all! Have ye not learned from windows 9x?
Comment 12 Thiago Macieira 2006-03-11 18:56:47 UTC
Of course they shouldn't. But drop-down menus and popup-menus work by grabbing the mouse.
Comment 13 Philippe Rigault 2006-03-11 19:16:12 UTC
This is _really_ a Dupe of bug 102464 
Comment 14 András Manţia 2006-03-11 20:15:12 UTC
Then let's mark it as a duplicate. ;-)

*** This bug has been marked as a duplicate of 102464 ***