Bug 74950 - deleting non-existent user cause crash
Summary: deleting non-existent user cause crash
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 14:00 UTC by Jan Trmal
Modified: 2004-02-12 00:14 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 Jan Trmal 2004-02-11 14:00:51 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice) 
OS:          Linux

When I delete all contacts in Kopete window, I can still choose "Delete contact". Kopete asks me, if I am realy sure to delete contact 'some totaly weird characters' and in case i chose "Yes", crashes (SIGSEGV). This cras is fully reproducable for me... This bug not work when you start kopete with empty list.

Backtrace
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 31761)]

0x4195b5b8 in waitpid () from /lib/libpthread.so.0
#0  0x4195b5b8 in waitpid () from /lib/libpthread.so.0
#1  0x410c0a0c in lt_dlfree () from /usr/kde/3.2/lib/libkdecore.so.4
#2  0x4195a383 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x413683a2 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#5  0x41367795 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#6  0x40f4365c in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#7  0x4136915a in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#8  0x41368fd8 in QApplication::sendPostedEvents() ()
   from /usr/qt/3/lib/libqt-mt.so.3
#9  0x413147be in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#10 0x4137b606 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#11 0x4137b4a8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#12 0x413685f1 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#13 0x080616aa in KIconLoader::unknown() ()
#14 0x41ab3dcc in __libc_start_main () from /lib/libc.so.6
Comment 1 Matt Rogers 2004-02-11 22:27:31 UTC
sorry, that stacktrace doesn't help us much. You'll have to recompile with debugging symbols (running USE="debug" FEATURES="nostrip" emerge kdenetwork will do the trick) and try to reproduce again that way in order for us to get anything that's usable. 
Comment 2 Jan Trmal 2004-02-11 22:39:47 UTC
OK, re-emerging now. Does Kopete check length of its contact list after every deletion and possibly disable/hide choice of deletion another contact if the contact list is empty? This bug seems to be of that nature. Anyway as soon as the emerge will finish, I'll let you know.
Comment 3 Richard Smith 2004-02-11 23:31:43 UTC
I can reproduce this. Mine!
Comment 4 Jan Trmal 2004-02-11 23:34:30 UTC
[New Thread 16384 (LWP 7635)]
0x419635b8 in waitpid () from /lib/libpthread.so.0
#0  0x419635b8 in waitpid () from /lib/libpthread.so.0
#1  0x410c8a0c in lt_dlfree () from /usr/kde/3.2/lib/libkdecore.so.4
#2  0x41962383 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x0035002c in ?? ()
#5  0x4136f795 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#6  0x40f4b65c in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#7  0x4137115a in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#8  0x41370fd8 in QApplication::sendPostedEvents() ()
   from /usr/qt/3/lib/libqt-mt.so.3
#9  0x4131c7be in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#10 0x41383606 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#11 0x413834a8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#12 0x413705f1 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#13 0x08063c3b in main (argc=-512, argv=0xfffffe00) at main.cpp:95
#14 0x41abbdcc in __libc_start_main () from /lib/libc.so.6

Compiled with "nostrip" feature enabled. I can't see any big change :)
Comment 5 Richard Smith 2004-02-12 00:12:58 UTC
CVS commit by lilachaze: 

Make sure that deleted contacts and groups can't be in the selection list,
and make sure the UI stays up-to-date with changes in the selection.
CCMAIL: 74950@bugs.kde.org


  M +21 -3     kopete/contactlist/kopetecontactlistview.cpp   1.71
  M +8 -1      kopete/contactlist/kopetecontactlistview.h   1.20
  M +13 -0     libkopete/kopetecontactlist.cpp   1.121



Comment 6 Richard Smith 2004-02-12 00:14:35 UTC
CVS commit by lilachaze: 

Make sure that deleted contacts and groups can't be in the selection list,
and make sure the UI stays up-to-date with changes in the selection.
[BACKPORT]
CCMAIL: 74950-done@bugs.kde.org


  M +21 -3     kopete/contactlist/kopetecontactlistview.cpp   1.63.2.1
  M +8 -1      kopete/contactlist/kopetecontactlistview.h   1.19.2.1
  M +7 -0      libkopete/kopetecontactlist.cpp   1.117.2.1