[Bug 311359] Re: Keepassx crashes on save when password entry changes
I've seen this behavior in KeepassX 0.4.3 on Ubuntu 10.04 starting earlier this year. It's 100% reproducible and happens only on save. The crash message is: *** glibc detected *** keepassx: free(): invalid next size (normal): 0x08baa418 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6(+0x6b161)[0x93d161] /lib/tls/i686/cmov/libc.so.6(+0x6c9b8)[0x93e9b8] /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x941a9d] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x223741] /usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0x22379d] keepassx[0x80974d7] keepassx[0x8074077] keepassx[0x8111c4a] /usr/lib/libQtCore.so.4(_ZN11QMetaObject8metacallEP7QObjectNS_4CallEiPPv+0x3a)[0x456c9a] /usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2d5)[0x4653d5] /usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x49)[0xf88bd9] /usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x7c)[0xf8adcc] /usr/lib/libQtGui.so.4(_ZN7QAction5eventEP6QEvent+0xe8)[0xf8c698] /usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0xf8f4dc] /usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x17e)[0xf9605e] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7b)[0x451a3b] /usr/lib/libQtGui.so.4(+0x17734d)[0xfd134d] /usr/lib/libQtGui.so.4(+0x17915e)[0xfd315e] /usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x1f63)[0xf97e43] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7b)[0x451a3b] /usr/lib/libQtGui.so.4(+0x1362be)[0xf902be] /usr/lib/libQtGui.so.4(+0x1efd90)[0x1049d90] /usr/lib/libQtGui.so.4(+0x1f22f5)[0x104c2f5] /usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x9b7)[0x101f757] /usr/lib/libQtGui.so.4(+0x1f560a)[0x104f60a] /lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5)[0x5a25e5] /lib/libglib-2.0.so.0(+0x3f2d8)[0x5a62d8] /lib/libglib-2.0.so.0(g_main_context_iteration+0x68)[0x5a64b8] /usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x65)[0x47d5d5] /usr/lib/libQtGui.so.4(+0x1f5135)[0x104f135] /usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x49)[0x450059] /usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xfa)[0x4504aa] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xaf)[0x45469f] /usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0xf8f577] keepassx[0x806c35c] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x8e8bd6] keepassx[0x805f031] === Memory map: 0011-00128000 r-xp fc:04 165499 /usr/lib/libxcb.so.1.1.0 00128000-00129000 r--p 00017000 fc:04 165499 /usr/lib/libxcb.so.1.1.0 00129000-0012a000 rw-p 00018000 fc:04 165499 /usr/lib/libxcb.so.1.1.0 0012a000-00138000 r-xp fc:04 165766 /usr/lib/libXext.so.6.4.0 00138000-00139000 r--p d000 fc:04 165766 /usr/lib/libXext.so.6.4.0 00139000-0013a000 rw-p e000 fc:04 165766 /usr/lib/libXext.so.6.4.0 0013a000-0014f000 r-xp fc:04 166509 /usr/lib/libaudio.so.2.4 0014f000-0015 r--p 00015000 fc:04 166509 /usr/lib/libaudio.so.2.4 0015-00151000 rw-p 00016000 fc:04 166509 /usr/lib/libaudio.so.2.4 00151000-00164000 r-xp fc:04 135474 /lib/libz.so.1.2.3.3 00164000-00165000 r--p 00012000 fc:04 135474 /lib/libz.so.1.2.3.3 00165000-00166000 rw-p 00013000 fc:04 135474 /lib/libz.so.1.2.3.3 00167000-00168000 r-xp 00:00 0 [vdso] 00168000-00251000 r-xp fc:04 131854 /usr/lib/libstdc++.so.6.0.13 00251000-00255000 r--p 000e9000 fc:04 131854 /usr/lib/libstdc++.so.6.0.13 00255000-00256000 rw-p 000ed000 fc:04 131854 /usr/lib/libstdc++.so.6.0.13 00256000-0025d000 rw-p 00:00 0 0025d000-0028b000 r-xp fc:04 167520 /usr/lib/libfontconfig.so.1.4.4 0028b000-0028c000 r--p 0002d000 fc:04 167520 /usr/lib/libfontconfig.so.1.4.4 0028c000-0028d000 rw-p 0002e000 fc:04 167520 /usr/lib/libfontconfig.so.1.4.4 0028d000-002b r-xp fc:04 137747 /lib/libpng12.so.0.42.0 002b-002b1000 r--p 00022000 fc:04 137747 /lib/libpng12.so.0.42.0 002b1000-002b2000 rw-p 00023000 fc:04 137747 /lib/libpng12.so.0.42.0 002b2000-002c7000 r-xp fc:04 165772 /usr/lib/libICE.so.6.3.0 002c7000-002c8000 r--p 00014000 fc:04 165772 /usr/lib/libICE.so.6.3.0 002c8000-002c9000 rw-p 00015000 fc:04 165772 /usr/lib/libICE.so.6.3.0 002c9000-002cb000 rw-p 00:00 0 002cc000-002e7000 r-xp fc:04 146474 /lib/ld-2.11.1.so 002e7000-002e8000 r--p 0001a000 fc:04 146474 /lib/ld-2.11.1.so 002e8000-002e9000 rw-p 0001b000 fc:04 146474 /lib/ld-2.11.1.so 002e9000-0055f000 r-xp fc:04 135339 /usr/lib/libQtCore.so.4.6.2 0055f000-00566000 r--p 00275000 fc:04 135339 /usr/lib/libQtCore.so.4.6.2 00566000-00567000 rw-p 0027c000 fc:04 135339 /usr/lib/libQtCore.so.4.6.2 00567000-0062f000 r-xp fc:04 135118
[Bug 311359] Re: Keepassx crashes on save when password entry changes
I have version 0.4.3 for Linux Mint 12. And I still have this exact same bug based on the exact symptoms described in the OP. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/311359 Title: Keepassx crashes on save when password entry changes To manage notifications about this bug go to: https://bugs.launchpad.net/keepassx/+bug/311359/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
This bug was fixed in the package keepassx - 0.4.0-1 --- keepassx (0.4.0-1) unstable; urgency=low * New upstream release. (Closes: #522488) * adapt debian/watch file to new upstream naming style. keepassx (0.3.4-2) unstable; urgency=low [ Felix Geyer ] * introduce quilt * Bug fix: Keepassx crashes on save when password entry changes. LP: #311359 - add debian/patches/svn281_fix_buffer_too_small.patch - build-depend on quilt [ Reinhard Tartler ] * target unstable * convert all format patches to quilt * add a README.source file documenting quilt usage * bump Standards-Version to 3.8.0 -- Ubuntu Archive Auto-Sync arch...@ubuntu.com Wed, 29 Apr 2009 00:15:51 +0100 ** Changed in: keepassx (Ubuntu) Status: Confirmed = Fix Released -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
** Changed in: keepassx (Ubuntu) Status: New = Confirmed -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
Thank you Felix. I hadn't actually tried to create another crashing file (no idea how to reproduce the quirk), but thank you for tracking it down. I suppose I could have installed debugsyms like you recommended to invisible, but I see even that doesn't give you the line number. Would probably have needed to compile from source and run through gdb - is that what you did? -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
I noticed it's not enough to install the dbgsym package. You have to follow https://wiki.ubuntu.com/Backtrace to get a useful backtrace. -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
I tracked down the problem. It affects all KeePassX versions. Patch for 0.3.* is available: http://keepassx.svn.sourceforge.net/viewvc/keepassx/trunk/src/Kdb3Database.cpp?view=patchr1=281r2=280pathrev=281 -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
Is there any chance that you can reproduce this with a new database that doesn't contain any sensitive information? How often did KeePassX crash when saving the database? ** Bug watch added: SourceForge.net Tracker #1955677 http://sourceforge.net/support/tracker.php?aid=1955677 ** Also affects: keepassx via http://sourceforge.net/support/tracker.php?aid=1955677 Importance: Unknown Status: Unknown -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
Confirmed on Ubuntu Intrepid 8.10 x86_64 as well. This happens when clicking save or pressing Ctrl+S. The double free or corruption always happens if the database is already saved when pressing the shortcut.Sometimes it also happens even when there are changes still to save. The crash started appearing one day after heavily editing the keepass file with Windows keepass. I normally edit a bit at a time with windows, linux, windows, linux (passing it between on flash drive), but this time I added dozens of entries in windows. The save crash may therefore be related to a rare quirk in keepass files. -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
Indeed, the crash does not happen if you create a new keepassx file and try to save. It only happens with certain files, in my case after heavily editing the file under windows keepass. -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
I found a work-around: export the crashing file to KeePassX XML File, then re-import as a new database. The new database does not crash keepassx on save. Mysteriously, the old database file *also* no longer crashes on save. $ apt-cache policy keepassx keepassx: Installed: 0.3.3-1 Candidate: 0.3.3-1 Version table: *** 0.3.3-1 0 500 http://mirror.is.co.za intrepid/universe Packages 100 /var/lib/dpkg/status -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
Confirmed on Ubuntu Interpid 8.10 x86 as well. It happens randomly but at least any changes are saved. -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
** Attachment added: keepass_crash.txt http://launchpadlibrarian.net/20726134/keepass_crash.txt -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 311359] Re: Keepassx crashes on save when password entry changes
Please install the keepassx-dbgsym package: https://wiki.ubuntu.com/DebuggingProgramCrash and post another backtrace of the crash. -- Keepassx crashes on save when password entry changes https://bugs.launchpad.net/bugs/311359 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs