Bug#329144: korganizer: recursive todo items cause crash
Subject: korganizer: recursive todo items cause crash
Package: korganizer
Version: 4:3.3.2-3
Severity: normal
*** Please type your report below this line ***
The problem can be reproduced by the following procedure:
1. Open the Todo List
2. Create two To-do items: "Item A" and "Item B"
3. Make "Item A" a sub-Todo item of "Item B" by drag'n'drop
"Item A" over "Item B"
4. Make "Item A" an independent item by drag'n'drop "Item A"
over the unoccupied space at the end of the list
5. Make "Item B" a sub-Todo item of "Item A" by drag'n'drop
"Item B" over "Item A"
6. Quit and restart korganizer
Speculation:
The underlying data-structures are not updated by the "make independent"
action, but the "make sub-Todo item" actions are. Because of this, the
above procedure causes the two todo items to become dependent on each
other.
KDE Crash Handler:
The backtrace of the KDE Crash Handler suggests a recursive call of the
method KOTodoView::insertTodoItem():
[...]
#35 0x401240fd in KOTodoView::insertTodoItem ()
from /usr/lib/libkorganizer.so.1
#36 0x401240fd in KOTodoView::insertTodoItem ()
from /usr/lib/libkorganizer.so.1
#37 0x401240fd in KOTodoView::insertTodoItem ()
from /usr/lib/libkorganizer.so.1
#38 0x401240fd in KOTodoView::insertTodoItem ()
from /usr/lib/libkorganizer.so.1
#39 0x401240fd in KOTodoView::insertTodoItem ()
from /usr/lib/libkorganizer.so.1
[...]
Workaround:
To work around the problem, I edited the file [1] and removed one of the
"RELATED-TO" lines, which were causing the recursion.
I also noticed, that the problem does not occur, if you make the
sub-Todo item idenpendent via the menu-item "Make Sub-To-Do
Independent". Only loosing the dependency via drag'n'drop seems to cause
the problem.
[1] .kde/share/apps/korganizer/std.ics
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Versions of packages korganizer depends on:
ii kdelibs4 4:3.3.2-6.1 KDE core libraries
ii ktnef 4:3.3.2-3 KDE TNEF viewer
ii libart-2.0-2 2.3.17-1 Library of functions for 2D
graphi
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries
an
ii libgcc1 1:3.4.3-13 GCC support library
ii libice6 4.3.0.dfsg.1-14 Inter-Client Exchange library
ii libidn11 0.5.13-1.0 GNU libidn library,
implementation
ii libkcal2a 4:3.3.2-3 KDE calendaring library
ii libkdepim1 4:3.3.2-3 KDE PIM library
ii libkgantt0 4:3.3.2-3 KDE gantt charting library
ii libkpimexchange1 4:3.3.2-3 KDE PIM Exchange library
ii libkpimidentities1 4:3.3.2-3 KDE PIM user identity information
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libqt3c102-mt 3:3.3.4-3 Qt GUI Library (Threaded runtime
v
ii libsm6 4.3.0.dfsg.1-14 X Window System Session
Management
ii libstdc++5 1:3.3.5-13 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-14 X Window System protocol client
li
ii libxext6 4.3.0.dfsg.1-14 X Window System miscellaneous
exte
ii libxrender1 0.8.3-7 X Rendering Extension client
libra
ii perl 5.8.4-8 Larry Wall's Practical Extraction
ii xlibs 4.3.0.dfsg.1-14 X Keyboard Extension (XKB)
configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information
Reply to: