Bug 256013

Summary: Crash when denying access to KWallet
Product: kvpnc Reporter: mrmikefm
Component: generalAssignee: Christoph Thielecke <crissi99>
Status: RESOLVED FIXED    
Severity: crash CC: bit.shifter52, bobcat2m, bwilborn, c536618, cfeck, eybuch, gio.beri, girolamocasella, habacioglu, harry, jbshakur, jediknightbrodie, jetrull, jxr182, kdebug, kent, melkor2.0, mike.zimmer, mnd, mrxtravis, noloader, office, pishguy, quasi, rarsa, registration, richard, solomon, suhalesyed, williamvincenti
Priority: NOR    
Version: 0.9.6   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi
proposed patch
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description mrmikefm 2010-11-04 03:00:06 UTC
Application: kvpnc (0.9.6)
KDE Platform Version: 4.5.1 (KDE 4.5.1) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-22-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed: I don't remember exactly. I know I minimized a window. That window instead disappeared, and the bug report came up.

-- Backtrace:
Application: KVpnc (kvpnc), signal: Segmentation fault
[KCrash Handler]
#6  0x0000000000513613 in KVpncConfig::loadOptions (this=0xda8830) at /build/buildd/kvpnc-0.9.6a/src/kvpncconfig.cpp:1016
#7  0x0000000000596f8a in KVpnc::KVpnc (this=0xd85620, parent=<value optimized out>, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /build/buildd/kvpnc-0.9.6a/src/kvpnc.cpp:173
#8  0x00000000005d5ffa in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/kvpnc-0.9.6a/src/main.cpp:121

Reported using DrKonqi
Comment 1 Christoph Feck 2010-11-13 15:05:37 UTC
*** Bug 256767 has been marked as a duplicate of this bug. ***
Comment 2 mahdi pishguy 2010-11-14 11:39:29 UTC
Created attachment 53406 [details]
New crash information added by DrKonqi

kvpnc (0.9.6) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

after running kvpnc . counldn't running

-- Backtrace (Reduced):
#7  0x0817768e in KVpncConfig::loadOptions (this=0x8b5ca00) at /build/buildd/kvpnc-0.9.6a/src/kvpncconfig.cpp:1016
#8  0x08204d48 in KVpnc::KVpnc (this=0x8b27a28, parent=0xbfc22e08, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /build/buildd/kvpnc-0.9.6a/src/kvpnc.cpp:173
#9  0x0824cc28 in main (argc=1, argv=0xbfc231c4) at /build/buildd/kvpnc-0.9.6a/src/main.cpp:121
Comment 3 Christoph Feck 2010-11-15 02:57:39 UTC
*** Bug 256904 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2010-11-15 17:45:27 UTC
Created attachment 53443 [details]
proposed patch

Christoph, the code calls KWallet::isOpen() on a null pointer, because it does not check the result of KWallet::openWallet(). I don't understand why the code checks twice if the wallet is open, without trying openWallet() again.

Could you check if the attached patch makes sense?
Comment 5 Travis 2010-11-24 17:55:37 UTC
Created attachment 53697 [details]
New crash information added by DrKonqi

kvpnc (0.9.6) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:

Nothing.  This crash happens every time now.  It started after I upgraded to Ubuntu 10.10

-- Backtrace (Reduced):
#7  0x0817768e in KVpncConfig::loadOptions (this=0x8fa19b0) at /build/buildd/kvpnc-0.9.6a/src/kvpncconfig.cpp:1016
#8  0x08204de5 in KVpnc::KVpnc (this=0x8ef38b0, parent=0xbfe91528, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /build/buildd/kvpnc-0.9.6a/src/kvpnc.cpp:180
#9  0x0824cc28 in main (argc=1, argv=0xbfe918e4) at /build/buildd/kvpnc-0.9.6a/src/main.cpp:121
Comment 6 Kent Knudsen 2011-02-06 01:56:33 UTC
Created attachment 56910 [details]
New crash information added by DrKonqi

kvpnc (0.9.6) on KDE Platform 4.5.5 (KDE 4.5.5) using Qt 4.7.1

- What I was doing when the application crashed:
Started kvpnc and KWallet asked for password. Entering the correct password didn't log into KWallet, so I cancelled KWallet, which made kvpnc crash.

- Unusual behavior I noticed:
I have not asked kvpnc to use KWallet. Strange is that I can't log into KWallet with the correct password. KWallet works in other situations.

-- Backtrace (Reduced):
#6  0x00000000004f03bc in KVpncConfig::loadOptions (this=0xc29720) at /home/ke/Downloads/K-O/kvpn/kvpnc-0.9.6a-kde4/src/kvpncconfig.cpp:1016
#7  0x00000000005ad300 in KVpnc::KVpnc (this=0xbca0c0, parent=<value optimized out>, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /home/ke/Downloads/K-O/kvpn/kvpnc-0.9.6a-kde4/src/kvpnc.cpp:180
#8  0x00000000005b6036 in main (argc=1, argv=0x7fff2d735a78) at /home/ke/Downloads/K-O/kvpn/kvpnc-0.9.6a-kde4/src/main.cpp:121
Comment 7 Pino Toscano 2011-02-11 12:45:07 UTC
*** Bug 266075 has been marked as a duplicate of this bug. ***
Comment 8 Brian Wilborn 2011-02-11 19:12:05 UTC
Created attachment 57164 [details]
New crash information added by DrKonqi

kvpnc (0.9.6) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
Nothing, just trying to load kvpnc for the first time.

- Unusual behavior I noticed:
Caused the system to go into a memory consumption spiral and thrash the swap file.

-- Backtrace (Reduced):
#7  0x0817768e in KVpncConfig::loadOptions (this=0x9438ea8) at /build/buildd/kvpnc-0.9.6a/src/kvpncconfig.cpp:1016
#8  0x08204d48 in KVpnc::KVpnc (this=0x940f2f0, parent=0xbff49178, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /build/buildd/kvpnc-0.9.6a/src/kvpnc.cpp:173
#9  0x0824cc28 in main (argc=1, argv=0xbff49534) at /build/buildd/kvpnc-0.9.6a/src/main.cpp:121
Comment 9 Christoph Feck 2011-03-03 14:00:54 UTC
*** Bug 267527 has been marked as a duplicate of this bug. ***
Comment 10 Christoph Feck 2011-03-24 16:34:42 UTC
*** Bug 269313 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Thielecke 2011-04-22 17:50:47 UTC
Fixed in kde4 trunk
Comment 12 Christoph Thielecke 2011-04-22 17:51:04 UTC
Fixed in kde4 trunk
Comment 13 Christoph Feck 2011-04-24 09:14:53 UTC
*** Bug 271594 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2011-05-09 13:44:08 UTC
*** Bug 272848 has been marked as a duplicate of this bug. ***
Comment 15 Christoph Feck 2011-06-14 14:04:02 UTC
*** Bug 274427 has been marked as a duplicate of this bug. ***
Comment 16 suhalesyed 2011-08-31 03:33:47 UTC
Created attachment 63251 [details]
New crash information added by DrKonqi

kvpnc (0.9.6) on KDE Platform 4.7.00 (4.7.0) using Qt 4.7.2

- What I was doing when the application crashed:

Started application KVpnc, which started KWallet closed out of KWallet and KVPNC has crashed message was displayed.

-- Backtrace (Reduced):
#6  0x0000000000513613 in KVpncConfig::loadOptions (this=0xcc5b70) at /build/buildd/kvpnc-0.9.6a/src/kvpncconfig.cpp:1016
#7  0x000000000059701e in KVpnc::KVpnc (this=0xc90100, parent=<value optimized out>, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /build/buildd/kvpnc-0.9.6a/src/kvpnc.cpp:180
#8  0x00000000005d5ffa in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/kvpnc-0.9.6a/src/main.cpp:121
Comment 17 Christoph Feck 2011-09-23 10:04:59 UTC
*** Bug 282594 has been marked as a duplicate of this bug. ***
Comment 18 Christoph Feck 2011-11-15 21:13:39 UTC
*** Bug 286699 has been marked as a duplicate of this bug. ***
Comment 19 Christoph Feck 2011-11-27 17:38:08 UTC
*** Bug 287525 has been marked as a duplicate of this bug. ***
Comment 20 Christoph Feck 2011-12-05 01:42:20 UTC
*** Bug 287719 has been marked as a duplicate of this bug. ***
Comment 21 Thijs 2012-01-12 10:02:23 UTC
*** Bug 291330 has been marked as a duplicate of this bug. ***
Comment 22 Christoph Feck 2012-02-07 11:42:05 UTC
*** Bug 293498 has been marked as a duplicate of this bug. ***
Comment 23 Christoph Feck 2012-07-31 22:28:16 UTC
*** Bug 304347 has been marked as a duplicate of this bug. ***
Comment 24 Christoph Feck 2012-09-04 20:23:05 UTC
*** Bug 306256 has been marked as a duplicate of this bug. ***
Comment 25 Jekyll Wu 2012-10-04 07:32:56 UTC
*** Bug 307808 has been marked as a duplicate of this bug. ***
Comment 26 Christoph Feck 2012-11-05 19:46:37 UTC
*** Bug 309603 has been marked as a duplicate of this bug. ***
Comment 27 Jeffrey Walton 2012-11-15 00:42:29 UTC
Created attachment 75273 [details]
New crash information added by DrKonqi

kvpnc (0.9.6) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.1

I clicked kvpn. Rather than getting kvpn, I got kwallet. I immediately closed kwallet and kvpn responded by crashing on me. Not very nice, to say the least.

-- Backtrace (Reduced):
#6  0x0000000000513613 in KVpncConfig::loadOptions (this=0x21d5fb0) at /build/buildd/kvpnc-0.9.6a/src/kvpncconfig.cpp:1016
#7  0x000000000059701e in KVpnc::KVpnc (this=0x218df60, parent=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /build/buildd/kvpnc-0.9.6a/src/kvpnc.cpp:180
#8  0x00000000005d5ffa in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/kvpnc-0.9.6a/src/main.cpp:121
Comment 28 Christoph Feck 2013-01-06 19:31:38 UTC
*** Bug 312769 has been marked as a duplicate of this bug. ***
Comment 29 Jeff Trull 2013-01-09 19:11:51 UTC
Has this made it into a KDE release yet?  Can the "version fixed in" be set?  I am still observing this.
Comment 30 Christoph Feck 2013-01-09 22:43:24 UTC
KVpnc is not part of the KDE Software Compilation, but a "playground" project, which has no coordinated releases.

Please always use the latest version from git/HEAD or svn/trunk. This bug is fixed since nearly two years already.

If you are using distribution packages, please ask your distribution to update it.
Comment 31 williamvincenti 2013-01-23 05:42:27 UTC
Sorry Jeff, I know nothing about this, if the bug report came from my 
machine, it would've been from a KDE install on Virtualbox. I'm running 
Linux Mint 13 Maya Xfce and have a few other versions such as KDE 
installed in Virtualbox. Otherwise I am not familiar with KWallet.

-Bill

On 01/09/2013 11:11 AM, Jeff Trull wrote:
> https://bugs.kde.org/show_bug.cgi?id=256013
>
> --- Comment #29 from Jeff Trull <jetrull@sbcglobal.net> ---
> Has this made it into a KDE release yet?  Can the "version fixed in" be set?  I
> am still observing this.
>
Comment 32 Christoph Feck 2014-05-17 18:06:04 UTC
*** Bug 334910 has been marked as a duplicate of this bug. ***
Comment 33 Christoph Feck 2016-06-08 11:37:26 UTC
*** Bug 364087 has been marked as a duplicate of this bug. ***
Comment 34 Richard Johnson 2016-09-13 15:05:16 UTC
Created attachment 101070 [details]
New crash information added by DrKonqi

kvpnc (0.9.6) on KDE Platform 4.14.16 using Qt 4.8.7

- What I was doing when the application crashed:
opened kvnc

kvnc asked for new kwallet password even though I already have one.

entered existing password.

kvnc crashed

- Unusual behavior I noticed:

-- Backtrace (Reduced):
#6  0x00000000004dec6c in KVpncConfig::loadOptions() (this=0xfafd20) at /build/kvpnc-ZHfnfp/kvpnc-0.9.6a/src/kvpncconfig.cpp:1016
#7  0x00000000005bd3ff in KVpnc::KVpnc(KApplication*, QWidget*) (this=0xeb12c0, parent=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /build/kvpnc-ZHfnfp/kvpnc-0.9.6a/src/kvpnc.cpp:174
#8  0x000000000041bb22 in main(int, char**) (argc=<optimized out>, argv=0x7ffc680e4638) at /build/kvpnc-ZHfnfp/kvpnc-0.9.6a/src/main.cpp:121
Comment 35 Christoph Feck 2017-05-04 12:01:24 UTC
*** Bug 379392 has been marked as a duplicate of this bug. ***
Comment 36 Christoph Feck 2017-05-11 13:26:38 UTC
*** Bug 379722 has been marked as a duplicate of this bug. ***