Mailing List Archive

[issue231] KMail: date of key expiration in tooltip in key list is wrong
New submission from Ingo Klöcker <kloecker@kde.org>:

The minor problem is that KMail tells me for my key 0xA9441637F869951B
(attached) that it expires on 31-Dez-2003 although it expires on 31-Dez-2004.

ingo@pallas:~> gpg --list-keys --with-colon A9441637F869951B
gpg: WARNUNG: Sensible Daten könnten auf Platte ausgelagert werden.
gpg: siehe http://www.gnupg.org/faq.html für weitere Informationen
tru:o:0:1020175527:1079359789
gpg: Bitte ein --check-trustdb durchführen
pub:u:1024:17:A9441637F869951B:2000-10-16:2004-12-31::u:Ingo H. Klöcker
<ingo.kloecker@matha.rwth-aachen.de>::scESC:
uid:u::::::::Ingo Klöcker <ingo@matha.rwth-aachen.de>:
sub:u:2048:16:D0DF5AB2D566FA7E:2000-10-16:2004-12-31:::::e:

-----

The more serious problem is that this bug seems to make it impossible to use my
key with KMail. KMail tells me: "One or more of your configured OpenPGP
encryption keys or S/MIME certificates is not usable for encryption. Please
reconfigure your encryption keys and certificates for this identity in the
identity configuration dialog."

-----

The most serious problem is that KMail crashes each time gpgme gets involved.
It crashes after the above error message (backtrace 1), it crashes if I edit my
identity and then click on OK (backtrace 2), it crashes if I click on Reread
Key List (backtrace 3). In all cases it crashes in gpgme_key_unref in line
free (subkey->fpr);

-----

Backtrace 1 (and the last debug messages):
libkdenetwork: GnuPG exited with exit status 0
libkdenetwork: gpg stderr:
libkdenetwork: libkdenetwork: pgp cmd = LANGUAGE=C gpg --batch
--list-public-keys --with-fingerprint --with-colons --fixed-list-mode
--no-expensive-trust-checks 'F869951B'
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
libkdenetwork:

Program received signal SIGSEGV, Segmentation fault.
0x4179e88d in fREe (mem=0x80933e4)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/malloc/malloc.c:3045
3045 nextsize = chunksize(nextchunk);
Current language: auto; currently c
(gdb) bt
#0 0x4179e88d in fREe (mem=0x80933e4)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/malloc/malloc.c:3045
#1 0x4179d977 in free (m=0x80933e4)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/malloc/malloc.c:5535
#2 0x412d026a in gpgme_key_unref (key=0x852d618)
at /localhome/ingo/cvs/kde/head/kdepim/libkdenetwork/libgpgme-copy/gpgme/
key.c:326
#3 0x412b453e in ~Key (this=0x875a068)
at /localhome/ingo/cvs/kde/head/kdepim/libkdenetwork/gpgmepp/key.cpp:69
#4 0x40273706 in _Destroy<GpgME::Key> (__pointer=0x875a068)
at /usr/include/g++/bits/stl_construct.h:125
#5 0x40273099 in __destroy_aux<GpgME::Key*> (__first=0x875a068,
__last=0x875a06c)
at /usr/include/g++/bits/stl_construct.h:101
#6 0x4027272f in _Destroy<GpgME::Key*> (__first=0x875a068, __last=0x875a06c)
at /usr/include/g++/bits/stl_construct.h:143
#7 0x40271864 in ~vector (this=0xbfffe8b0) at /usr/include/g++/bits/
stl_vector.h:297
#8 0x40402efa in Kleo::KeyResolver::setEncryptToSelfKeys(QStringList const&) (
this=0x870b590, fingerprints=@0xbfffe900)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/keyresolver.cpp:613
#9 0x403f739a in MessageComposer::adjustCryptFlags() (this=0x8743de8)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/messagecomposer.cpp:483
#10 0x404014e9 in MessageComposerJob::adjustCryptFlags() (this=0x86585c0)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/messagecomposer.cpp:205
#11 0x40400ed2 in AdjustCryptFlagsJob::execute() (this=0x86585c0)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/messagecomposer.cpp:222
#12 0x403f64f7 in MessageComposer::slotDoNextJob() (this=0x8743de8)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/messagecomposer.cpp:329
#13 0x403fe88c in MessageComposer::qt_invoke(int, QUObject*) (this=0x8743de8,
_id=2,
_o=0xbfffea70) at messagecomposer.moc:95
#14 0x41b3d69b in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x41e6beaa in QSignal::signal(QVariant const&) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x41b58268 in QSignal::activate() () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x41b5fc13 in QSingleShotTimer::event(QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x41adb6d6 in QApplication::internalNotify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x41ada9fe in QApplication::notify(QObject*, QEvent*) ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x416871ef in KApplication::notify(QObject*, QEvent*) (this=0xbffff0d0,
receiver=0x83c5748, event=0xbfffee40)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/kapplication.cpp:512
#21 0x41ac7bd3 in QEventLoop::activateTimers() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#22 0x41a8329d in QEventLoop::processEvents(unsigned) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x41aef980 in QEventLoop::enterLoop() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#24 0x41aef876 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x41adb96f in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x0804aa17 in main (argc=2, argv=0xbffff244)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/main.cpp:108

-----

Backtrace 2:
#0 0x4179e88d in fREe (mem=0x868028c)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/malloc/malloc.c:3045
#1 0x4179d977 in free (m=0x868028c)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/malloc/malloc.c:5535
#2 0x412d026a in gpgme_key_unref (key=0x868e1c8)
at /localhome/ingo/cvs/kde/head/kdepim/libkdenetwork/libgpgme-copy/gpgme/
key.c:326
#3 0x412b453e in ~Key (this=0x85f5bb0)
at /localhome/ingo/cvs/kde/head/kdepim/libkdenetwork/gpgmepp/key.cpp:69
#4 0x40273706 in _Destroy<GpgME::Key> (__pointer=0x85f5bb0)
at /usr/include/g++/bits/stl_construct.h:125
#5 0x40273099 in __destroy_aux<GpgME::Key*> (__first=0x85f5bb0,
__last=0x85f5bb4)
at /usr/include/g++/bits/stl_construct.h:101
#6 0x4027272f in _Destroy<GpgME::Key*> (__first=0x85f5bb0, __last=0x85f5bb4)
at /usr/include/g++/bits/stl_construct.h:143
#7 0x40271864 in ~vector (this=0x864b258) at /usr/include/g++/bits/
stl_vector.h:297
#8 0x40dee342 in ~KeyRequester (this=0x864b1b8)
at /localhome/ingo/cvs/kde/head/kdepim/certmanager/lib/ui/
keyrequester.cpp:141
#9 0x40defedc in ~SigningKeyRequester (this=0x864b1b8)
at /localhome/ingo/cvs/kde/head/kdepim/certmanager/lib/ui/
keyrequester.cpp:462
#10 0x41b6ed6a in QWidget::~QWidget() () from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0x41b6e882 in QWidget::~QWidget() () from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x41c7d972 in QWidgetStack::~QWidgetStack() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#13 0x41b6e882 in QWidget::~QWidget() () from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x41c66e44 in QTabWidget::~QTabWidget() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#15 0x41b6e882 in QWidget::~QWidget() () from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x41e783eb in QFrame::~QFrame() () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x41b6e882 in QWidget::~QWidget() () from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x414cf836 in ~KJanusWidget (this=0x8626b40)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdeui/kjanuswidget.cpp:203
#19 0x41b6e882 in QWidget::~QWidget() () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x41cc486e in QDialog::~QDialog() () from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x409e3f78 in ~KDialog (this=0x85facd8)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdeprint/kprintdialog.cpp:92
#22 0x414c7112 in ~KDialogBase (this=0x85facd8)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdeui/kdialogbase.cpp:216
#23 0x4021bfb3 in ~IdentityDialog (this=0x85facd8)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/identitydialog.cpp:394
#24 0x401d921e in IdentityPage::slotModifyIdentity() (this=0x8630d00)
---Type <return> to continue, or q <return> to quit---
at /localhome/ingo/cvs/kde/head/kdepim/kmail/configuredialog.cpp:411
#25 0x401ffc16 in IdentityPage::qt_invoke(int, QUObject*) (this=0x8630d00,
_id=47,
_o=0xbfffe670) at kmail/configuredialog_p.moc:728
#26 0x41b3d69b in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x41b3d464 in QObject::activate_signal(int) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#28 0x41e7352c in QButton::clicked() () from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x41bcd8de in QButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x41b74491 in QWidget::event(QEvent*) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#31 0x41adb6d6 in QApplication::internalNotify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x41adb238 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x416871ef in KApplication::notify(QObject*, QEvent*) (this=0xbffff0d0,
receiver=0x86356a0, event=0xbfffeb20)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/kapplication.cpp:512
#34 0x41a6ed1d in QETWidget::translateMouseEvent(_XEvent const*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x41a6cb3c in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x41a82d7d in QEventLoop::processEvents(unsigned) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x41aef980 in QEventLoop::enterLoop() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#38 0x41aef876 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x41adb96f in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x0804aa17 in main (argc=2, argv=0xbffff244)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/main.cpp:108

-----

Backtrace 3:
#0 0x4179e88d in fREe (mem=0x86608bc)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/malloc/malloc.c:3045
#1 0x4179d977 in free (m=0x86608bc)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/malloc/malloc.c:5535
#2 0x412d026a in gpgme_key_unref (key=0x8669228)
at /localhome/ingo/cvs/kde/head/kdepim/libkdenetwork/libgpgme-copy/gpgme/
key.c:326
#3 0x412b453e in ~Key (this=0x868189c)
at /localhome/ingo/cvs/kde/head/kdepim/libkdenetwork/gpgmepp/key.cpp:69
#4 0x40de83b6 in ~KeyListViewItem (this=0x8681870)
at /localhome/ingo/cvs/kde/head/kdepim/certmanager/lib/ui/
keylistview.cpp:423
#5 0x41c1c68f in QListView::clear() () from /usr/lib/qt3/lib/libqt-mt.so.3
#6 0x40de35e1 in Kleo::KeyListView::clear() (this=0x86748f8)
at /localhome/ingo/cvs/kde/head/kdepim/certmanager/lib/ui/
keylistview.cpp:228
#7 0x40deb3f9 in Kleo::KeySelectionDialog::slotRereadKeys() (this=0x86b5408)
at /localhome/ingo/cvs/kde/head/kdepim/certmanager/lib/ui/
keyselectiondialog.cpp:462
#8 0x40decd18 in Kleo::KeySelectionDialog::qt_invoke(int, QUObject*) (
this=0x86b5408, _id=84, _o=0xbfffd0a0) at keyselectiondialog.moc:117
#9 0x41b3d69b in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x41b3d464 in QObject::activate_signal(int) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#11 0x414cc6d7 in KDialogBase::defaultClicked() (this=0x86b5408)
at kdialogbase.moc:227
#12 0x414c9fae in KDialogBase::slotDefault() (this=0x86b5408)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdeui/kdialogbase.cpp:1105
#13 0x414cceab in KDialogBase::qt_invoke(int, QUObject*) (this=0x86b5408,
_id=68,
_o=0xbfffd1f0) at kdialogbase.moc:354
#14 0x40dece7f in Kleo::KeySelectionDialog::qt_invoke(int, QUObject*) (
this=0x86b5408, _id=68, _o=0xbfffd1f0) at keyselectiondialog.moc:130
#15 0x41b3d69b in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x41b3d464 in QObject::activate_signal(int) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#17 0x41e7352c in QButton::clicked() () from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x41bcd8de in QButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x41b74491 in QWidget::event(QEvent*) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#20 0x41adb6d6 in QApplication::internalNotify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
#21 0x41adb238 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x416871ef in KApplication::notify(QObject*, QEvent*) (this=0xbffff0d0,
receiver=0x865c848, event=0xbfffd6a0)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/kapplication.cpp:512
#23 0x41a6ed1d in QETWidget::translateMouseEvent(_XEvent const*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x41a6cb3c in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x41a82d7d in QEventLoop::processEvents(unsigned) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x41aef980 in QEventLoop::enterLoop() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#27 0x41adb9cf in QApplication::enter_loop() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#28 0x41cc4bd5 in QDialog::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40def41f in Kleo::KeyRequester::slotDialogButtonClicked()
(this=0x8647fb0)
at /localhome/ingo/cvs/kde/head/kdepim/certmanager/lib/ui/
keyrequester.cpp:333
#30 0x40df01b3 in Kleo::KeyRequester::qt_invoke(int, QUObject*)
(this=0x8647fb0,
_id=47, _o=0xbfffdc40) at certmanager/lib/ui/keyrequester.moc:106
#31 0x40df055a in Kleo::SigningKeyRequester::qt_invoke(int, QUObject*) (
this=0x8647fb0, _id=47, _o=0xbfffdc40) at certmanager/lib/ui/
keyrequester.moc:262
#32 0x41b3d69b in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x41b3d464 in QObject::activate_signal(int) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#34 0x41e7352c in QButton::clicked() () from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x41bcd8de in QButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x41b74491 in QWidget::event(QEvent*) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#37 0x41adb6d6 in QApplication::internalNotify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x41adb238 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x416871ef in KApplication::notify(QObject*, QEvent*) (this=0xbffff0d0,
receiver=0x863d1d0, event=0xbfffe0f0)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/kapplication.cpp:512
#40 0x41a6ed1d in QETWidget::translateMouseEvent(_XEvent const*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#41 0x41a6cb3c in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
#42 0x41a82d7d in QEventLoop::processEvents(unsigned) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#43 0x41aef980 in QEventLoop::enterLoop() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#44 0x41adb9cf in QApplication::enter_loop() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#45 0x41cc4bd5 in QDialog::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#46 0x401d91b7 in IdentityPage::slotModifyIdentity() (this=0x862db00)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/configuredialog.cpp:405
#47 0x401ffc16 in IdentityPage::qt_invoke(int, QUObject*) (this=0x862db00,
_id=47,
_o=0xbfffe670) at kmail/configuredialog_p.moc:728
#48 0x41b3d69b in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#49 0x41b3d464 in QObject::activate_signal(int) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#50 0x41e7352c in QButton::clicked() () from /usr/lib/qt3/lib/libqt-mt.so.3
#51 0x41bcd8de in QButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#52 0x41b74491 in QWidget::event(QEvent*) () from /usr/lib/qt3/lib/
libqt-mt.so.3
#53 0x41adb6d6 in QApplication::internalNotify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#54 0x41adb238 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#55 0x416871ef in KApplication::notify(QObject*, QEvent*) (this=0xbffff0d0,
receiver=0x86324a0, event=0xbfffeb20)
at /localhome/ingo/cvs/kde/3.2/kdelibs/kdecore/kapplication.cpp:512
#56 0x41a6ed1d in QETWidget::translateMouseEvent(_XEvent const*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#57 0x41a6cb3c in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#58 0x41a82d7d in QEventLoop::processEvents(unsigned) ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#59 0x41aef980 in QEventLoop::enterLoop() () from /usr/lib/qt3/lib/
libqt-mt.so.3
#60 0x41aef876 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#61 0x41adb96f in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#62 0x0804aa17 in main (argc=2, argv=0xbffff244)
at /localhome/ingo/cvs/kde/head/kdepim/kmail/main.cpp:108

----------
files: 0xA9441637F869951B.asc
messages: 1155
nosy: ingo
priority: bug
status: unread
title: KMail: date of key expiration in tooltip in key list is wrong
______________________________________________________
Aegypten issue tracker <aegypten-issues@intevation.de>
<https://intevation.de/roundup/aegypten/issue231>
______________________________________________________