Bug 70032 - kontact crashes when switching from Mail to Calendar
Summary: kontact crashes when switching from Mail to Calendar
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 19:42 UTC by cjb
Modified: 2004-01-07 16:20 UTC (History)
0 users

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 cjb 2003-12-10 19:42:41 UTC
Version:           unknown (using KDE 3.1.94 (3.2 Beta 2), compiled sources)
Compiler:          gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
OS:          Linux (i686) release 2.4.20-8

on occasion when i switch from Mail to Calendar in kontact, it crashes.  the state of kmail when switching from it is reading an email.  the state of calendar when switching to it is the week view.

here is the back trace:

[New Thread 1101729888 (LWP 358)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x4097b9e1 in KCrash::defaultCrashHandler(int) ()
   from /shared/kde-3.2-beta2/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x43634f5c in KOAgendaView::createDayLabels() ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#4  0x43636c85 in KOAgendaView::fillAgenda() ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#5  0x4363615a in KOAgendaView::showDates(QDate const&, QDate const&) ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#6  0x4365e86a in KOViewManager::updateView(QDate const&, QDate const&) ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#7  0x43655dc2 in CalendarView::updateView(QDate const&, QDate const&) ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#8  0x43655e2b in CalendarView::updateView() ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#9  0x4365e6eb in KOViewManager::showView(KOrg::BaseView*) ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#10 0x4365f23d in KOViewManager::showEventView() ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#11 0x436ce1b5 in ActionManager::showEventView() ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#12 0x436ddf9b in KCalendarIface::process(QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) ()
   from /shared/kde-3.2-beta2/lib/libkorganizer.so.1
#13 0x40a526de in DCOPClient::receive(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) ()
   from /shared/kde-3.2-beta2/lib/libDCOP.so.4
#14 0x40a53126 in DCOPClient::call(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&, bool, int) ()
   from /shared/kde-3.2-beta2/lib/libDCOP.so.4
#15 0x40a53064 in DCOPClient::call(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&, bool) ()
   from /shared/kde-3.2-beta2/lib/libDCOP.so.4
#16 0x41f582ed in KCalendarIface_stub::showEventView() ()
   from /shared/kde-3.2-beta2/lib/kde3/libkontact_korganizerplugin.so
#17 0x41f5365b in KOrganizerPlugin::select() ()
   from /shared/kde-3.2-beta2/lib/kde3/libkontact_korganizerplugin.so
#18 0x0805b43e in Kontact::MainWindow::selectPlugin(Kontact::Plugin*) ()
#19 0x0805c857 in Kontact::MainWindow::qt_invoke(int, QUObject*) ()
#20 0x40d2b0c9 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#21 0x0805e11f in Kontact::SidePaneBase::pluginSelected(Kontact::Plugin*) ()
#22 0x0805e1fc in Kontact::SidePaneBase::qt_emit(int, QUObject*) ()
#23 0x080616d8 in Kontact::IconSidePane::qt_emit(int, QUObject*) ()
#24 0x40d2b0f9 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#25 0x080614ab in Kontact::Navigator::pluginActivated(Kontact::Plugin*) ()
#26 0x40df60b8 in QListBox::mousePressEventEx(QMouseEvent*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#27 0x40df5f96 in QListBox::mousePressEvent(QMouseEvent*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#28 0x40d5fa28 in QWidget::event(QEvent*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#29 0x40ccf775 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#30 0x40ccef35 in QApplication::notify(QObject*, QEvent*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#31 0x408ea8e4 in KApplication::notify(QObject*, QEvent*) ()
   from /shared/kde-3.2-beta2/lib/libkdecore.so.4
#32 0x40c69573 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#33 0x40c66e4c in QApplication::x11ProcessEvent(_XEvent*) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#34 0x40c7c7d3 in QEventLoop::processEvents(unsigned) ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#35 0x40ce2b6b in QEventLoop::enterLoop() ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#36 0x40ce2a28 in QEventLoop::exec() () from /shared/qt-3.2.3/lib/libqt-mt.so.3
#37 0x40ccf9d0 in QApplication::exec() ()
   from /shared/qt-3.2.3/lib/libqt-mt.so.3
#38 0x080586ab in main ()
#39 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6

thank you,
-- christopher
Comment 1 Emmanuel Eckard 2003-12-11 00:48:01 UTC
I think I have seen the same bug. 
Debian (gcc 3.3.2) on a iBook G3 900Mhz.
Trace follows: 

[New Thread 16384 (LWP 30200)]
0x0e8b9fdc in waitpid () from /lib/libpthread.so.0
#0  0x0e8b9fdc in waitpid () from /lib/libpthread.so.0
#1  0x0f5d5ec4 in KCrash::defaultCrashHandler(int) ()
   from /opt/kdecvs/lib/libkdecore.so.4
#2  0x0e8b8a00 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x0ccbede4 in DateNavigator::selectWeek(QDate const&) ()
   from /opt/kdecvs/lib/libkorganizer.so.1
#5  0x0ccbeddc in DateNavigator::selectWeek(QDate const&) ()
   from /opt/kdecvs/lib/libkorganizer.so.1
#6  0x0ccd7a80 in KOViewManager::showWeekView() ()
   from /opt/kdecvs/lib/libkorganizer.so.1
#7  0x0ccd80b0 in KOViewManager::showEventView() ()
   from /opt/kdecvs/lib/libkorganizer.so.1
#8  0x0cd4ad88 in ActionManager::showEventView() ()
   from /opt/kdecvs/lib/libkorganizer.so.1
#9  0x0cd5adf4 in KCalendarIface::process(QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) () from /opt/kdecvs/lib/libkorganizer.so.1
#10 0x0f479b70 in DCOPClient::receive(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) ()
   from /opt/kdecvs/lib/libDCOP.so.4
#11 0x0f47a704 in DCOPClient::call(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&, bool, int) ()
   from /opt/kdecvs/lib/libDCOP.so.4
#12 0x0f47a5a0 in DCOPClient::call(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&, bool) ()
   from /opt/kdecvs/lib/libDCOP.so.4
#13 0xffffffff in ?? ()
Comment 2 jsvrp.gw 2003-12-11 18:14:21 UTC
Can't confirm, using KDE beta 2.
Comment 3 cjb 2003-12-11 19:21:01 UTC
Subject: Re:  kontact crashes when switching from Mail to Calendar

it doesn't do it all the time.  i've been using kontact for about 2 days now 
(open 24 hours a day) and its crashed twice from this bug...

-- christopher

On Thursday 11 December 2003 11:14 am, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=70032
>
>
>
>
> ------- Additional Comments From jsvrp.gw@myrealbox.com  2003-12-11 18:14
> ------- Can't confirm, using KDE beta 2.

Comment 4 Liz Young 2003-12-15 19:10:22 UTC
KDE Version (KDE 3.1.94 (3.2 Beta 2), compiled sources)
Application Integrated PIM solution
Operating System Linux (i686) release 2.4.23 (Slackware 9.1)
Compiler gcc version 3.2.3

Confirming this crash occurs here, too.  Happens when switching from mail to calendar.

[New Thread 16384 (LWP 25567)]0x413825c9 in waitpid ()
   from /lib/libpthread.so.0
#0  0x413825c9 in waitpid () from /lib/libpthread.so.0
#1  0x408d32ed in KCrash::defaultCrashHandler(int) ()
   from /opt/kde/lib/libkdecore.so.4
#2  0x41380c45 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x00010008 in ?? ()
#5  0x42389329 in DateNavigator::selectWeek() ()
   from /opt/kde/lib/libkorganizer.so.1
#6  0x423a33c5 in KOViewManager::showWeekView() ()
   from /opt/kde/lib/libkorganizer.so.1
#7  0x423a3ae9 in KOViewManager::showEventView() ()
   from /opt/kde/lib/libkorganizer.so.1
#8  0x4241dc4d in ActionManager::showEventView() ()
   from /opt/kde/lib/libkorganizer.so.1
#9  0x4242e0f9 in KCalendarIface::process(QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) () from /opt/kde/lib/libkorganizer.so.1
#10 0x409b09ed in DCOPClient::receive(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&) ()
   from /opt/kde/lib/libDCOP.so.4
#11 0x409b15a8 in DCOPClient::call(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&, bool, int) ()
   from /opt/kde/lib/libDCOP.so.4
#12 0x409b14b9 in DCOPClient::call(QCString const&, QCString const&, QCString const&, QMemArray<char> const&, QCString&, QMemArray<char>&, bool) ()
   from /opt/kde/lib/libDCOP.so.4
#13 0x419adab3 in KCalendarIface_stub::showEventView() ()
   from /opt/kde/lib/kde3/libkontact_korganizerplugin.so
#14 0x419a87a7 in KOrganizerPlugin::select() ()
   from /opt/kde/lib/kde3/libkontact_korganizerplugin.so
#15 0x0805ae89 in KUniqueApplication::metaObject() const ()
#16 0x0805bf26 in KUniqueApplication::metaObject() const ()
#17 0x40ca36c0 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#18 0x0805ddaa in QPtrList<KParts::Part>::deleteItem(void*) ()
#19 0x0805dec1 in QPtrList<KParts::Part>::deleteItem(void*) ()
#20 0x080615ff in QPushButton::setIsMenuButton(bool) ()
#21 0x40ca36f5 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#22 0x080612fa in QPushButton::setIsMenuButton(bool) ()
#23 0x40d6e0e3 in QListBox::mousePressEventEx(QMouseEvent*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#24 0x40d6dfb6 in QListBox::mousePressEvent(QMouseEvent*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#25 0x40cd7eab in QWidget::event(QEvent*) () from /usr/lib/qt/lib/libqt-mt.so.3
#26 0x40c485c5 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#27 0x40c47d62 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#28 0x408441be in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde/lib/libkdecore.so.4
#29 0x40be161b in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#30 0x40bdeda4 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#31 0x40bf5387 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#32 0x40c5b896 in QEventLoop::enterLoop() () from /usr/lib/qt/lib/libqt-mt.so.3
#33 0x40c5b738 in QEventLoop::exec() () from /usr/lib/qt/lib/libqt-mt.so.3
#34 0x40c48811 in QApplication::exec() () from /usr/lib/qt/lib/libqt-mt.so.3
#35 0x0805867f in QFrame::paintEvent(QPaintEvent*) ()
#36 0x414c0d06 in __libc_start_main () from /lib/libc.so.6
Comment 5 Daniel Molkentin 2004-01-07 16:20:56 UTC
Subject: kdepim/korganizer

CVS commit by danimo: 

Don't carry around potentially dangeling pointer, fixes #70032. Backport
from osnabrueck_branch.

CCMAIL:70032-done@bugs.kde.org


  M +1 -3      koglobals.cpp   1.16
  M +0 -1      koglobals.h   1.13


--- kdepim/korganizer/koglobals.cpp  #1.15:1.16
@@ -68,6 +68,4 @@ KOGlobals::KOGlobals()
   mOwnInstance->config()->setGroup("General");
 
-  mCalendarSystem = KGlobal::locale()->calendar();
-
   mAlarmClient = new AlarmClient;
 }
@@ -89,5 +87,5 @@ KOGlobals::~KOGlobals()
 const KCalendarSystem *KOGlobals::calendarSystem() const
 {
-  return mCalendarSystem;
+  return KGlobal::locale()->calendar();
 }
 

--- kdepim/korganizer/koglobals.h  #1.12:1.13
@@ -62,5 +62,4 @@ class KOGlobals
     KInstance *mOwnInstance;
 
-    const KCalendarSystem *mCalendarSystem;    
     AlarmClient *mAlarmClient;
 };