Bug 170669 - kontact crashes when clicking on calendar
Summary: kontact crashes when clicking on calendar
Status: RESOLVED WORKSFORME
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 1.2.9
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 172488 173432 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-08 09:55 UTC by Stefan Endrullis
Modified: 2011-09-24 21:16 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
korganizer.kcrash (4.40 KB, application/octet-stream)
2008-10-01 17:56 UTC, Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Endrullis 2008-09-08 09:55:24 UTC
Version:           1.2.9 (using KDE 3.5.10)
OS:                Linux
Installed from:    Ubuntu Packages

kontact 3.5.10 seems to be very unstable. It crashes all the time, e.g. when I click on "calendar", then on "tasks" and finally on "calendar" again.
In this case I get the following output on command line:
------------------------------------------------
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
KCrash: Application 'kontact' crashing...
------------------------------------------------

And here is the back tracking:
------------------------------------------------
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f8001d9a6f0 (LWP 16713)]
[KCrash handler]
#5  0x00007f7ff52d027e in KOAgendaItem::paintEvent ()
   from /usr/lib/libkorganizer.so.1
#6  0x00007f7ffbe63858 in QWidget::event (this=0x12ddbc0, e=0x7fff09dcd670)
    at kernel/qwidget.cpp:4808
#7  0x00007f7ffbdc733a in QApplication::internalNotify (this=0x7fff09dcdeb0, 
    receiver=0x12ddbc0, e=0x7fff09dcd670) at kernel/qapplication.cpp:2638
#8  0x00007f7ffbdc9be3 in QApplication::notify (this=0x7fff09dcdeb0, 
    receiver=0x12ddbc0, e=0x7fff09dcd670) at kernel/qapplication.cpp:2526
#9  0x00007f7ffd4fd6bd in KApplication::notify (this=0x7fff09dcdeb0, 
    receiver=0x12ddbc0, event=0x7fff09dcd670)
    at /build/buildd/kdelibs-3.5.10/./kdecore/kapplication.cpp:550
#10 0x00007f7ffbd58280 in QApplication::sendSpontaneousEvent (
    receiver=0x12ddbc0, event=0x7fff09dcd670) at kernel/qapplication.h:526
#11 0x00007f7ffbd47a7c in QETWidget::translatePaintEvent (this=0x12ddbc0, 
    event=0x7fff09dcdc00) at kernel/qapplication_x11.cpp:5787
#12 0x00007f7ffbd550f6 in QApplication::x11ProcessEvent (this=0x7fff09dcdeb0, 
    event=0x7fff09dcdc00) at kernel/qapplication_x11.cpp:3505
#13 0x00007f7ffbd6c106 in QEventLoop::processEvents (this=0x696e70, flags=4)
    at kernel/qeventloop_x11.cpp:195
#14 0x00007f7ffbde15bf in QEventLoop::enterLoop (this=0x696e70)
    at kernel/qeventloop.cpp:201
#15 0x00007f7ffbde12ab in QEventLoop::exec (this=0x696e70)
    at kernel/qeventloop.cpp:148
#16 0x00007f7ffbdc8e00 in QApplication::exec (this=0x7fff09dcdeb0)
    at kernel/qapplication.cpp:2761
#17 0x0000000000419299 in ?? ()
#18 0x00007f7ff85f41c4 in __libc_start_main () from /lib/libc.so.6
#19 0x0000000000418a59 in ?? ()
#20 0x00007fff09dce188 in ?? ()
#21 0x0000000000000000 in ?? ()
------------------------------------------------

But it also crashes when "calendar" is selected and I minimize and maximize the window.

Then the output on command line looks like this:
------------------------------------------------
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
*** glibc detected *** kontact: free(): invalid pointer: 0x000000000136a120 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f191336808a]
/lib/libc.so.6(cfree+0x8c)[0x7f191336bc1c]
/usr/lib/libqt-mt.so.3(_ZN7QGArray10deleteDataEPNS_10array_dataE+0x19)[0x7f1916e2e839]
/usr/lib/libkorganizer.so.1(_ZN12KOAgendaItem10paintEventEP11QPaintEvent+0xc1)[0x7f190ffee281]
/usr/lib/libqt-mt.so.3(_ZN7QWidget5eventEP6QEvent+0x5ca)[0x7f1916b81858]
/usr/lib/libqt-mt.so.3(_ZN12QApplication14internalNotifyEP7QObjectP6QEvent+0x25e)[0x7f1916ae533a]
/usr/lib/libqt-mt.so.3(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xd75)[0x7f1916ae7be3]
/usr/lib/libkdecore.so.4(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x19d)[0x7f191821b6bd]
/usr/lib/libqt-mt.so.3(_ZN12QApplication20sendSpontaneousEventEP7QObjectP6QEvent+0x5e)[0x7f1916a76280]
/usr/lib/libqt-mt.so.3(_ZN9QETWidget19translatePaintEventEPK7_XEvent+0x3d4)[0x7f1916a65a7c]
/usr/lib/libqt-mt.so.3(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xc78)[0x7f1916a730f6]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop13processEventsEj+0x110)[0x7f1916a8a106]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop9enterLoopEv+0x73)[0x7f1916aff5bf]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop4execEv+0x2f)[0x7f1916aff2ab]
/usr/lib/libqt-mt.so.3(_ZN12QApplication4execEv+0x22)[0x7f1916ae6e00]
kontact(_ZN7QWidget6createEmbb+0xb99)[0x419299]
/lib/libc.so.6(__libc_start_main+0xf4)[0x7f19133121c4]
kontact(_ZN7QWidget17setUpdatesEnabledEb+0x39)[0x418a59]
======= Memory map: ========
00400000-0043a000 r-xp 00000000 08:02 472202                             /usr/bin/kontact
0063a000-0063c000 rw-p 0003a000 08:02 472202                             /usr/bin/kontact
0063c000-01403000 rw-p 0063c000 00:00 0                                  [heap]
7f1908000000-7f1908021000 rw-p 7f1908000000 00:00 0
7f1908021000-7f190c000000 ---p 7f1908021000 00:00 0
7f190c035000-7f190c042000 r-xp 00000000 08:02 469688                     /usr/lib/libkcal_resourceremote.so.1.0.0
7f190c042000-7f190c242000 ---p 0000d000 08:02 469688                     /usr/lib/libkcal_resourceremote.so.1.0.0
7f190c242000-7f190c244000 rw-p 0000d000 08:02 469688                     /usr/lib/libkcal_resourceremote.so.1.0.0
7f190c244000-7f190c247000 r-xp 00000000 08:02 563086                     /usr/lib/kde3/kcal_remote.so
7f190c247000-7f190c446000 ---p 00003000 08:02 563086                     /usr/lib/kde3/kcal_remote.so
7f190c446000-7f190c447000 rw-p 00002000 08:02 563086                     /usr/lib/kde3/kcal_remote.so
7f190c447000-7f190c44a000 r-xp 00000000 08:02 563084                     /usr/lib/kde3/kcal_local.so
7f190c44a000-7f190c649000 ---p 00003000 08:02 563084                     /usr/lib/kde3/kcal_local.so
7f190c649000-7f190c64a000 rw-p 00002000 08:02 563084                     /usr/lib/kde3/kcal_local.so
7f190c64a000-7f190c64d000 r-xp 00000000 08:02 565274                     /usr/lib/kde3/kabc_file.so
7f190c64d000-7f190c84c000 ---p 00003000 08:02 565274                     /usr/lib/kde3/kabc_file.so
7f190c84c000-7f190c84d000 rw-p 00002000 08:02 565274                     /usr/lib/kde3/kabc_file.so
7f190c84d000-7f190c858000 r-xp 00000000 08:02 565149                     /usr/lib/kde3/libkorganizerpart.so
7f190c858000-7f190ca57000 ---p 0000b000 08:02 565149                     /usr/lib/kde3/libkorganizerpart.so
7f190ca57000-7f190ca59000 rw-p 0000a000 08:02 565149                     /usr/lib/kde3/libkorganizerpart.so
7f190ca59000-7f190cad4000 r--p 00000000 08:02 655760                     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
7f190cad4000-7f190cae3000 r-xp 00000000 08:02 563817                     /usr/lib/qt3/plugins/inputmethods/libqxim.so
7f190cae3000-7f190cce3000 ---p 0000f000 08:02 563817                     /usr/lib/qt3/plugins/inputmethods/libqxim.so
7f190cce3000-7f190cce4000 rw-p 0000f000 08:02 563817                     /usr/lib/qt3/plugins/inputmethods/libqxim.so
7f190cce4000-7f190cd0b000 r-xp 00000000 08:02 563816                     /usr/lib/qt3/plugins/inputmethods/libqsimple.so
7f190cd0b000-7f190cf0b000 ---p 00027000 08:02 563816                     /usr/lib/qt3/plugins/inputmethods/libqsimple.so
7f190cf0b000-7f190cf0c000 rw-p 00027000 08:02 563816                     /usr/lib/qt3/plugins/inputmethods/libqsimple.so
7f190cf0c000-7f190cfee000 r-xp 00000000 08:02 472807                     /usr/lib/libscim-1.0.so.8.2.3
7f190cfee000-7f190d1ee000 ---p 000e2000 08:02 472807                     /usr/lib/libscim-1.0.so.8.2.3
7f190d1ee000-7f190d204000 rw-p 000e2000 08:02 472807                     /usr/lib/libscim-1.0.so.8.2.3
7f190d204000-7f190d206000 r-xp 00000000 08:02 472808                     /usr/lib/libscim-x11utils-1.0.so.8.2.3
7f190d206000-7f190d405000 ---p 00002000 08:02 472808                     /usr/lib/libscim-x11utils-1.0.so.8.2.3
7f190d405000-7f190d406000 rw-p 00001000 08:02 472808                     /usr/lib/libscim-x11utils-1.0.so.8.2.3
7f190d406000-7f190d42a000 r-xp 00000000 08:02 566262                     /usr/lib/qt3/plugins/inputmethods/libqscim.so
7f190d42a000-7f190d62a000 ---p 00024000 08:02 566262                     /usr/lib/qt3/plugins/inputmethods/libqscim.so
7f190d62a000-7f190d62c000 rw-p 00024000 08:02 566262                     /usr/lib/qt3/plugins/inputmethods/libqscim.so
7f190d62c000-7f190d631000 r-xp 00000000 08:02 563815                     /usr/lib/qt3/plugins/inputmethods/libqimsw-none.so
7f190d631000-7f190d831000 ---p 00005000 08:02 563815                     /usr/lib/qt3/plugins/inputmethods/libqimsw-none.so
7f190d831000-7f190d832000 rw-p 00005000 08:02 563815                     /usr/lib/qt3/plugins/inputmethods/libqimsw-none.so
7f190d832000-7f190d84b000 r-xp 00000000 08:02 566261                     /usr/lib/qt3/plugins/inputmethods/im-scim-bridge.so
7f190d84b000-7f190da4b000 ---p 00019000 08:02 566261                     /usr/lib/qt3/plugins/inputmethods/im-scim-bridge.so
7f190da4b000-7f190da4c000 rw-p 00019000 08:02 566261                     /usr/lib/qt3/plugins/inputmethods/im-scim-bridge.so
7f190da4c000-7f190da59000 r-xp 00000000 08:02 563814                     /usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so
7f190da59000-7f190dc59000 ---p 0000d000 08:02 563814                     /usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so
7f190dc59000-7f190dc5a000 rw-p 0000d000 08:02 563814                     /usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so
7f190dc5a000-7f190dccb000 r-xp 00000000 08:02 563096                     /usr/lib/kde3/libakregator_mk4storage_KCrash: Application 'kontact' crashing...
------------------------------------------------

And the back tracking:
------------------------------------------------
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f191cab86f0 (LWP 16731)]
[KCrash handler]
#5  0x00007f1913326095 in raise () from /lib/libc.so.6
#6  0x00007f1913327af0 in abort () from /lib/libc.so.6
#7  0x00007f1913360a7b in __libc_message () from /lib/libc.so.6
#8  0x00007f191336808a in _int_free () from /lib/libc.so.6
#9  0x00007f191336bc1c in free () from /lib/libc.so.6
#10 0x00007f1916e2e839 in QGArray::deleteData (this=0x7fff24ae8b10, 
    p=0x136a120) at tools/qgarray.cpp:829
#11 0x00007f190ffee281 in KOAgendaItem::paintEvent ()
   from /usr/lib/libkorganizer.so.1
#12 0x00007f1916b81858 in QWidget::event (this=0x12e16c0, e=0x7fff24ae9380)
    at kernel/qwidget.cpp:4808
#13 0x00007f1916ae533a in QApplication::internalNotify (this=0x7fff24ae9bc0, 
    receiver=0x12e16c0, e=0x7fff24ae9380) at kernel/qapplication.cpp:2638
#14 0x00007f1916ae7be3 in QApplication::notify (this=0x7fff24ae9bc0, 
    receiver=0x12e16c0, e=0x7fff24ae9380) at kernel/qapplication.cpp:2526
#15 0x00007f191821b6bd in KApplication::notify (this=0x7fff24ae9bc0, 
    receiver=0x12e16c0, event=0x7fff24ae9380)
    at /build/buildd/kdelibs-3.5.10/./kdecore/kapplication.cpp:550
#16 0x00007f1916a76280 in QApplication::sendSpontaneousEvent (
    receiver=0x12e16c0, event=0x7fff24ae9380) at kernel/qapplication.h:526
#17 0x00007f1916a65a7c in QETWidget::translatePaintEvent (this=0x12e16c0, 
    event=0x7fff24ae9910) at kernel/qapplication_x11.cpp:5787
#18 0x00007f1916a730f6 in QApplication::x11ProcessEvent (this=0x7fff24ae9bc0, 
    event=0x7fff24ae9910) at kernel/qapplication_x11.cpp:3505
#19 0x00007f1916a8a106 in QEventLoop::processEvents (this=0x696e70, flags=4)
    at kernel/qeventloop_x11.cpp:195
#20 0x00007f1916aff5bf in QEventLoop::enterLoop (this=0x696e70)
    at kernel/qeventloop.cpp:201
#21 0x00007f1916aff2ab in QEventLoop::exec (this=0x696e70)
    at kernel/qeventloop.cpp:148
#22 0x00007f1916ae6e00 in QApplication::exec (this=0x7fff24ae9bc0)
    at kernel/qapplication.cpp:2761
#23 0x0000000000419299 in ?? ()
#24 0x00007f19133121c4 in __libc_start_main () from /lib/libc.so.6
#25 0x0000000000418a59 in ?? ()
#26 0x00007fff24ae9e98 in ?? ()
#27 0x0000000000000000 in ?? ()
------------------------------------------------
Comment 1 Urs Joss 2008-09-18 20:48:35 UTC
Same phenomenon over here (on Gentoo, with KDE compiled from source).

I don't think it's really kontakt related as the same issues also occur if I run korganizer stand alone.
Comment 2 Stefan Endrullis 2008-09-19 10:05:02 UTC
OK, your right. KOrganizer itself crashes when I click on "Next 3 Days" for example. Both are not usable anymore :(

I've searched for a related bug report for korganizer. But there are sooo many open bugs concerning korganizer/kontact and crashes. OMG!

I'm a bit disappointed. Seems there's no developer anymore who cares for KDE 3.5 programs. I don't understand that. Since KDE 3.5 is frozen in months it should become more stable because of only bug fixes but instead it's going to be more unstable with every further release. I receive always the same impression: The KDE 4 developers want us to migrate to KDE 4! But please don't force us until KDE 4 is missing lots of KDE 3 features. I'm rather willing to migrate to alternatives to KDE programs.

I'm still a KDE 3.5 fan because of the unique configuration options but I regard with horror the current trend of KDE. When years old feature requests (bug #77486, bug #33857) are marked as resolved without implementing it, just to get rid of them, and "stable releases" become much more unstable then then it should be a signal to change something. My personal conclusion: I'm searching for another organizer now. Sorry for my last comment. Normally such things should not be part of comments to bugs, but I suppose this bug is also going to be marked as fixed even if it's not fixed in reality. :[
Comment 3 Michael 2008-10-01 17:56:21 UTC
Created attachment 27639 [details]
korganizer.kcrash
Comment 4 Michael 2008-10-01 17:59:10 UTC
Sorry, I'm not used to bugzilla. I have the same problem, gentoo 64bit, kontact and korganizer 3.5.10. Above you can find my krcrash-log.

CFLAGS="-march=nocona -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
Comment 5 Daniel Quinn 2008-10-31 23:19:45 UTC
I think that this bug may be related to #172488
Comment 6 FiNeX 2008-11-19 20:25:34 UTC
Changed severity to "crash". I hope to have selected only the right bugs (>100) :-)
Comment 7 Christophe Marin 2008-12-08 21:01:25 UTC
*** Bug 172488 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Marin 2008-12-08 21:02:08 UTC
*** Bug 173432 has been marked as a duplicate of this bug. ***
Comment 9 Sergio Martins 2009-02-02 05:47:09 UTC
Looking at a valgrind report of one of the dups it looks like an invalid read inside libical.

Can you upgrade to a recent libical and see what happens?
Comment 10 Stefan Endrullis 2009-02-03 10:27:54 UTC
I'm using libical 0.27-1 now, but the problem remains the same.
Comment 11 Stefan Endrullis 2009-02-03 19:25:03 UTC
And same issue with libical 0.33-1.

Back trace:
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f843e3246f0 (LWP 9137)]
[KCrash handler]
#5  0x00007f8431a2ca46 in KOAgendaItem::paintEvent ()
   from /usr/kde3/lib/libkorganizer.so.1
#6  0x00007f8438899835 in QWidget::event (this=0x3079940, e=0x7fff4635e030)
    at kernel/qwidget.cpp:4808
#7  0x00007f84388074a5 in QApplication::internalNotify (
    this=<value optimized out>, receiver=0x3079940, e=0x7fff4635e030)
    at kernel/qapplication.cpp:2638
#8  0x00007f843880827a in QApplication::notify (this=0x7fff4635e7a0, 
    receiver=0x3079940, e=0x7fff4635e030) at kernel/qapplication.cpp:2526
#9  0x00007f8439a20c22 in KApplication::notify (this=0x7fff4635e7a0, 
    receiver=0x3079940, event=0x7fff4635e030)
    at /build/buildd/kdelibs-kde3-3.5.10/./kdecore/kapplication.cpp:550
#10 0x00007f843879bacd in QETWidget::translatePaintEvent (this=0x3079940, 
    event=<value optimized out>) at kernel/qapplication.h:526
#11 0x00007f84387a4d79 in QApplication::x11ProcessEvent (this=0x7fff4635e7a0, 
    event=0x7fff4635e500) at kernel/qapplication_x11.cpp:3546
#12 0x00007f84387b782a in QEventLoop::processEvents (this=0x2266830, flags=4)
    at kernel/qeventloop_x11.cpp:195
#13 0x00007f843881dec1 in QEventLoop::enterLoop (this=0x7fff4635d8c0)
    at kernel/qeventloop.cpp:201
#14 0x00007f843881dd82 in QEventLoop::exec (this=0x7fff4635d8c0)
    at kernel/qeventloop.cpp:148
#15 0x0000000000418cd5 in ?? ()
#16 0x00007f84350be466 in __libc_start_main () from /lib/libc.so.6
#17 0x00000000004181d9 in ?? ()
#18 0x00007fff4635eb68 in ?? ()
#19 0x000000000000001c in ?? ()
#20 0x0000000000000001 in ?? ()
#21 0x00007fff46360a93 in ?? ()
#22 0x0000000000000000 in ?? ()
Comment 12 Michael 2009-02-04 15:26:21 UTC
I think this bug is connected with bug #170273

http://bugs.kde.org/show_bug.cgi?id=170273
Comment 13 Stefan Endrullis 2009-02-04 15:50:09 UTC
That might be. It looks like the paintEvent() method is "responsible" (it's the first visible method in the back trace) for the crash in both bugs.

But I'm wondering why I'm able to click on the buttons "next 3 days", etc. in kontact but not in korganizer.
Comment 14 Sergio Martins 2009-02-08 16:55:35 UTC
Stefan, it would be great if you provided a valgrind report.

1. Install valgrind
2. run: valgrind korganizer --nofork &> report.txt
3. Make korganizer crash
Comment 15 Christophe Marin 2011-09-24 21:16:52 UTC
No feedback. Closing.