Bug 110382 - Adding birthday resources, korganizer crashes
Summary: Adding birthday resources, korganizer crashes
Status: RESOLVED FIXED
Alias: None
Product: kresources
Classification: Miscellaneous
Component: birthdays (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Reinhold Kainhofer
URL:
Keywords:
: 108352 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-08 10:09 UTC by Oliver Zimmermann
Modified: 2006-07-25 12:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Zimmermann 2005-08-08 10:09:18 UTC
Version:           3.4.2 (using KDE 3.4.2 Level "a" , SUSE 9.3 UNSUPPORTED)
Compiler:          gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
OS:                Linux (i686) release 2.6.11.4-21.8-smp

When adding the birthday resource to Korganizer and clicking "OK", it crashes. Not crash/backtrace window pops up.

Also when opening the resource for editing it, the same happens.
Comment 1 Bram Schoenmakers 2005-09-01 16:51:05 UTC
Are you able to provide us a backtrace? I was not, but I can reproduce the crash you describe, assuming it's the same cause.

OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)
QLayout::addChildLayout: layout already has a parent
*** glibc detected *** free(): invalid pointer: 0x0815d988 ***
DCOP: unregister 'korganizer'

I have the same kind of crash with Krita the last couple of days, so maybe the cause of this problem has to be found elsewhere.
Comment 2 qaz 2005-09-05 13:15:25 UTC
same crash here,
after upgrading kde to 3.4 on debian unstable
korganizer also refuses to display some(most) of my resources no matter how ofter i try to add them again or reload them
however, konsolekalender does display them correctly
Comment 3 qaz 2005-09-05 17:41:01 UTC
oops i was wrong, my fault, please ignore my comments about korganizer refusing to display some events
a filter was hiding my events

Comment 4 Felix Berger 2005-10-01 21:23:15 UTC
Here is a backtrace from gdb with run --nofork:

(gdb) bt
#0  0x4036a861 in kill () from /lib/libc.so.6
#1  0x41a572a9 in pthread_kill () from /lib/libpthread.so.0
#2  0x41a57660 in raise () from /lib/libpthread.so.0
#3  0x4036a616 in raise () from /lib/libc.so.6
#4  0x4036b981 in abort () from /lib/libc.so.6
#5  0x4039d980 in __fsetlocking () from /lib/libc.so.6
#6  0x403a3309 in malloc_usable_size () from /lib/libc.so.6
#7  0x403a3da1 in free () from /lib/libc.so.6
#8  0x402e3511 in operator delete () from /usr/lib/libstdc++.so.6
#9  0x40dfa027 in QLayoutItem::~QLayoutItem () from /usr/lib/libqt-mt.so.3
#10 0x40e49ed0 in QPtrList<QGridBox>::deleteItem ()
   from /usr/lib/libqt-mt.so.3
#11 0x41103598 in QGList::clear () from /usr/lib/libqt-mt.so.3
#12 0x40e49771 in QGridLayoutData::~QGridLayoutData ()
   from /usr/lib/libqt-mt.so.3
#13 0x40e4986b in QGridLayout::~QGridLayout () from /usr/lib/libqt-mt.so.3
#14 0x40e9400d in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3
#15 0x41df2000 in KCal::ResourceKABCConfig::~ResourceKABCConfig ()
   from /usr/lib/kde3/kcal_kabc.so
#16 0x40e9400d in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3
#17 0x40f0e1dc in QGroupBox::~QGroupBox () from /usr/lib/libqt-mt.so.3
#18 0x40e9400d in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3
#19 0x41188d40 in QFrame::~QFrame () from /usr/lib/libqt-mt.so.3
#20 0x40e9400d in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3
#21 0x40fd82f2 in QDialog::~QDialog () from /usr/lib/libqt-mt.so.3
#22 0x4089457f in KDialogBase::~KDialogBase () from /usr/lib/libkdeui.so.4
#23 0x4012937f in ResourceView::editResource ()
   from /usr/lib/libkorganizer.so.1
#24 0x4015c2e8 in ResourceView::qt_invoke () from /usr/lib/libkorganizer.so.1
#25 0x40e5d2f7 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#26 0x40e5d796 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#27 0x41184749 in QButton::clicked () from /usr/lib/libqt-mt.so.3
#28 0x40eeea76 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#29 0x40e944ab in QWidget::event () from /usr/lib/libqt-mt.so.3
#30 0x40e00b95 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#31 0x40e01938 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#32 0x40b156fc in KApplication::notify () from /usr/lib/libkdecore.so.4
#33 0x40d9dfb8 in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#34 0x40d9c921 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#35 0x40daf698 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#36 0x40e1673b in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#37 0x40e16654 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#38 0x40e005cf in QApplication::exec () from /usr/lib/libqt-mt.so.3
#39 0x080517f8 in ?? ()
#40 0xbffff68c in ?? ()
#41 0xbffff7a8 in ?? ()
#42 0x00000000 in ?? ()
#43 0x00000000 in ?? ()
#44 0x41a5597e in pthread_mutex_unlock () from /lib/libpthread.so.0
#45 0x40357413 in __libc_start_main () from /lib/libc.so.6
#46 0x0804fd51 in ?? ()
Comment 5 Felix Berger 2005-10-02 14:42:18 UTC
*** Bug 108352 has been marked as a duplicate of this bug. ***
Comment 6 Frank Lin 2005-10-15 19:22:13 UTC
how to reproduce it?
1. add birthday resource
2. click either ok or cancel when that dialog appears
3. crash !

My bt:
#0  0xb6081027 in raise () from /lib/tls/libc.so.6
#1  0xb6082747 in abort () from /lib/tls/libc.so.6
#2  0xb60b45c9 in __libc_message () from /lib/tls/libc.so.6
#3  0xb60bd026 in malloc_printerr () from /lib/tls/libc.so.6
#4  0xb60bbd0d in _int_free () from /lib/tls/libc.so.6
#5  0xb60baa7b in free () from /lib/tls/libc.so.6
#6  0xb62254a1 in operator delete () from /usr/lib/./libstdc++.so.5
#7  0xb679395a in QLayoutItem::~QLayoutItem () from /usr/lib/qt/lib/libqt-mt.so.3
#8  0xb67e5668 in QPtrList<QGridBox>::deleteItem () from /usr/lib/qt/lib/libqt-mt.so.3
#9  0xb6ab584e in QGList::clear () from /usr/lib/qt/lib/libqt-mt.so.3
#10 0xb67dd1f2 in QGridLayoutData::~QGridLayoutData () from /usr/lib/qt/lib/libqt-mt.so.3
#11 0xb67e0a88 in QGridLayout::~QGridLayout () from /usr/lib/qt/lib/libqt-mt.so.3
#12 0xb682c7fd in QWidget::~QWidget () from /usr/lib/qt/lib/libqt-mt.so.3
#13 0xb47dc9bb in KCal::ResourceKABCConfig::~ResourceKABCConfig ()
   from /opt/kde/lib/kde3/kcal_kabc.so
#14 0xb682c7fd in QWidget::~QWidget () from /usr/lib/qt/lib/libqt-mt.so.3
#15 0xb68af291 in QGroupBox::~QGroupBox () from /usr/lib/qt/lib/libqt-mt.so.3
#16 0xb682c7fd in QWidget::~QWidget () from /usr/lib/qt/lib/libqt-mt.so.3
#17 0xb6b2980b in QFrame::~QFrame () from /usr/lib/qt/lib/libqt-mt.so.3
#18 0xb682c7fd in QWidget::~QWidget () from /usr/lib/qt/lib/libqt-mt.so.3
#19 0xb6985eae in QDialog::~QDialog () from /usr/lib/qt/lib/libqt-mt.so.3
#20 0xb714f894 in KDialogBase::~KDialogBase () from /opt/kde/lib/libkdeui.so.4
#21 0xb49b1420 in ResourceView::editResource () from /opt/kde/lib/libkorganizer.so.1
#22 0xb49b24cb in ResourceView::qt_invoke () from /opt/kde/lib/libkorganizer.so.1
#23 0xb67fc11c in QObject::activate_signal () from /usr/lib/qt/lib/libqt-mt.so.3
#24 0xb67fbf44 in QObject::activate_signal () from /usr/lib/qt/lib/libqt-mt.so.3
#25 0xb6b24d4e in QButton::clicked () from /usr/lib/qt/lib/libqt-mt.so.3
#26 0xb688e55a in QButton::mouseReleaseEvent () from /usr/lib/qt/lib/libqt-mt.so.3
#27 0xb6832267 in QWidget::event () from /usr/lib/qt/lib/libqt-mt.so.3
#28 0xb679f7df in QApplication::internalNotify () from /usr/lib/qt/lib/libqt-mt.so.3
#29 0xb679eed4 in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
#30 0xb6dd6585 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#31 0xb6735300 in QETWidget::translateMouseEvent () from /usr/lib/qt/lib/libqt-mt.so.3
#32 0xb6732f8e in QApplication::x11ProcessEvent () from /usr/lib/qt/lib/libqt-mt.so.3
#33 0xb6749e64 in QEventLoop::processEvents () from /usr/lib/qt/lib/libqt-mt.so.3
#34 0xb67b1b38 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
#35 0xb67b19e8 in QEventLoop::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#36 0xb679fa31 in QApplication::exec () from /usr/lib/qt/lib/libqt-mt.so.3
Comment 7 Martin Steigerwald 2005-11-04 22:19:24 UTC
Hello, 

I can confirm this crash here using kdepim 4:3.4.2-2 on Debian etch/sid combo. 

Shell output is:
martin@deepdance:~ -> korganizer
martin@deepdance:~ -> QLayout::addChildLayout: layout already has a parent
*** glibc detected *** free(): invalid pointer: 0x08347450 ***


I do not know exactly how to make a gdb backtrace, but I will learn it, if you need it. Anyway the packages version of KOrganizer does not seem to contain debugging symbols.


This is last lines of strace output (tell me when you need more):
access("/home/martin/.ICEauthority", R_OK) = 0
open("/home/martin/.ICEauthority", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0600, st_size=197, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe3000
read(4, "\0\3ICE\0\0\0003local/deepdance:/tmp/.I"..., 4096) = 197
close(4)                                = 0
munmap(0xb7fe3000, 4096)                = 0
write(3, "\0\4\1\0\3\0\0\0\20\0\0\0\0\0\0\0\16\266\325`\22:\277\224"..., 32) = 32
read(3, "\0\10\0\2\2\0\0\0", 8)         = 8
read(3, "\3\0KDE\0\0\0\3\0002.0\0\0\0", 16) = 16
getsockopt(3, SOL_SOCKET, SO_PEERCRED, ";9\0\0\350\3\0\0\350\3\0\0", [12]) = 0
getuid32()                              = 1000
write(3, "\1\2\1\0I\0\0\0\0\0\0\0", 12) = 12
write(3, "\0\0\0\0\0\0\0\vDCOPServer\0\0\0\0\1\0\0\0\0\25regi"..., 53) = 53
write(3, "\0\0\0\20anonymous-20241\0", 20) = 20
read(3, "\2\3\0\0028\0\0\0", 8)         = 8
read(3, "%\2\0\0", 4)                   = 4
read(3, "\0\0\0\vDCOPServer\0\0\0\0\0\0\0\0\tQCString\0"..., 56) = 56
write(3, "\1\2\1\0a\0\0\0%\2\0\0", 12)  = 12
write(3, "\0\0\0\20anonymous-20241\0\0\0\0\vDCOPServ"..., 82) = 82
write(3, "\0\0\0\vkorganizer\0", 15)    = 15
read(3, "\2\3\0\0024\0\0\0", 8)         = 8
read(3, "%\2\0\0", 4)                   = 4
read(3, "\0\0\0\vDCOPServer\0\0\0\0\20anonymous-202"..., 52) = 52
write(3, "\1\2\1\0m\0\0\0\2\0\0\0", 12) = 12
write(3, "\0\0\0\20anonymous-20241\0\0\0\0\vkorganiz"..., 72) = 72
write(3, "\0\0\0\r/home/martin\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 37) = 37
read(3, "\2\5\0\2\'\0\0\0", 8)          = 8
read(3, "\2\0\0\0", 4)                  = 4
read(3, "\0\0\0\vkorganizer\0\0\0\0\20anonymous-202"..., 39) = 39
read(3, "\2\6\0\0027\0\0\0", 8)         = 8
read(3, "\2\0\0\0", 4)                  = 4
read(3, "\0\0\0\vkorganizer\0\0\0\0\20anonymous-202"..., 55) = 55
close(3)                                = 0
exit_group(0)                           = ?
martin@deepdance:~ -> QLayout::addChildLayout: layout already has a parent
*** glibc detected *** free(): invalid pointer: 0x082f9368 ***

Regards, Martin
Comment 8 Martin Steigerwald 2006-02-26 14:24:57 UTC
Hello,

I am not able to reproduce this any longer with KOrganizer from KDEPIM 3.5.1. I can add a birthday resource without crash and now it even reminds me of birth days ;-).

So from my experience this bug has been fixed in the meanwhile. Nice work!

Regards, 
Martin
Comment 9 Andreas Kling 2006-07-25 12:41:55 UTC
Cannot reproduce with 3.5.4, and valgrind has no complaints. Closing as per comment #8