Bug 53778 - importing a vcard (1.0) as list crashes kaddressbook
Summary: importing a vcard (1.0) as list crashes kaddressbook
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-31 22:11 UTC by Moritz Moeller-Herrmann
Modified: 2009-08-05 15:49 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 Moritz Moeller-Herrmann 2003-01-31 22:11:24 UTC
Version:           3.1 (using KDE 3.1.0)
Installed from:    SuSE
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-4GB

Importing a vcard-1.0 address list of the following format:
"""
BEGIN:VCARD
VERSION:1.0
REV:20030131T214940
FN:A
N:A;
TEL;HOME:06214015804
X-SLOT:32
END:VCARD

BEGIN:VCARD
VERSION:1.0
REV:20030131T214940
FN:Al
N:Al;
TEL;HOME:01749107742
X-SLOT:53
[...]
"""

crashes kaddressbook repeatably. I did File->Import->List

The file was not recognized as vcard file, when I tried import vcard.

Are you interested in a backtrace without debugging information? If you need the complete responsible file (addressbook.vcf), mail me to get it confidentially.
Comment 1 Tobias Koenig 2003-02-02 00:47:49 UTC
File->Import->List is for importing comma separated files (cvs) and not 
vcards. 
File->Import->VCard won't work, since KAddressBook doesn't support 
vcard versions < 2.1 
 
Comment 2 Tobias Koenig 2003-02-02 00:53:17 UTC
hmm, I can't reproduce a crash here when importing the vcard file via 
File->Import->List (even if you shouldn't do so ;)) 
 
Comment 3 Moritz Moeller-Herrmann 2003-02-08 13:08:10 UTC
The UI does not tell you that only CVCARDS of any specific version can be imported. 
Either call it "Import VCARD-2.1 and above" or give a reasobale error message. At the 
moment this is a bug 
 
 
Also the crash exists, here is the backtrace, my addresbook has been sent by private 
mail. 
 
(no debugging symbols found)...(no debugging symbols found)...[New Thread 1024 
(LWP 1938)] 
(no debugging symbols found)...0x412e38c9 in wait4 () from /lib/libc.so.6 
#0  0x412e38c9 in wait4 () from /lib/libc.so.6 
#1  0x4135ec90 in __DTOR_END__ () from /lib/libc.so.6 
#2  0x4113ba93 in waitpid () from /lib/libpthread.so.0 
#3  0x40889b0d in KCrash::defaultCrashHandler(int) () 
   from /opt/kde3/lib/libkdecore.so.4 
#4  0x4113912b in pthread_sighandler () from /lib/libpthread.so.0 
#5  <signal handler called> 
#6  0x40120415 in KImportDialog::fillTable() () 
   from /opt/kde3/lib/libkdepim.so.1 
#7  0x40120885 in KImportDialog::readFile(int) () 
   from /opt/kde3/lib/libkdepim.so.1 
#8  0x40120206 in KImportDialog::setFile(QString const&) () 
   from /opt/kde3/lib/libkdepim.so.1 
#9  0x4011dd72 in KImportDialog::qt_invoke(int, QUObject*) () 
   from /opt/kde3/lib/libkdepim.so.1 
#10 0x40c11309 in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /usr/lib/libqt-mt.so.3 
#11 0x40c115d5 in QObject::activate_signal(int, QString) () 
   from /usr/lib/libqt-mt.so.3 
#12 0x404c047a in KURLRequester::urlSelected(QString const&) () 
   from /opt/kde3/lib/libkio.so.4 
#13 0x404bf9e3 in KURLRequester::slotOpenDialog() () 
   from /opt/kde3/lib/libkio.so.4 
#14 0x404c0548 in KURLRequester::qt_invoke(int, QUObject*) () 
   from /opt/kde3/lib/libkio.so.4 
#15 0x40c11309 in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /usr/lib/libqt-mt.so.3 
#16 0x40c111a7 in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3 
#17 0x40ef686e in QButton::clicked() () from /usr/lib/libqt-mt.so.3 
#18 0x40c936e6 in QButton::mouseReleaseEvent(QMouseEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#19 0x40c455bc in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3 
#20 0x40bb32e4 in QApplication::internalNotify(QObject*, QEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#21 0x40bb28c3 in QApplication::notify(QObject*, QEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#22 0x4081bfc9 in KApplication::notify(QObject*, QEvent*) () 
   from /opt/kde3/lib/libkdecore.so.4 
#23 0x40b56f26 in QETWidget::translateMouseEvent(_XEvent const*) () 
   from /usr/lib/libqt-mt.so.3 
#24 0x40b54a61 in QApplication::x11ProcessEvent(_XEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#25 0x40b69eda in QEventLoop::processEvents(unsigned) () 
   from /usr/lib/libqt-mt.so.3 
#26 0x40bc6fa6 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3 
#27 0x40bb3571 in QApplication::enter_loop() () from /usr/lib/libqt-mt.so.3 
#28 0x40d75cb1 in QDialog::exec() () from /usr/lib/libqt-mt.so.3 
#29 0x40096826 in KAddressBook::importCSV() () 
   from /opt/kde3/lib/kde3/libkaddressbookpart.so 
#30 0x40098aeb in KAddressBook::qt_invoke(int, QUObject*) () 
   from /opt/kde3/lib/kde3/libkaddressbookpart.so 
#31 0x40c11309 in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /usr/lib/libqt-mt.so.3 
#32 0x40c111a7 in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3 
#33 0x4064abab in KAction::activated() () from /opt/kde3/lib/libkdeui.so.4 
#34 0x4063c03f in KAction::slotActivated() () from /opt/kde3/lib/libkdeui.so.4 
#35 0x4064ada2 in KAction::qt_invoke(int, QUObject*) () 
   from /opt/kde3/lib/libkdeui.so.4 
#36 0x40c11309 in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /usr/lib/libqt-mt.so.3 
#37 0x40ef0242 in QSignal::signal(QVariant const&) () 
   from /usr/lib/libqt-mt.so.3 
#38 0x40c2b5c8 in QSignal::activate() () from /usr/lib/libqt-mt.so.3 
#39 0x40cfeb10 in QPopupMenu::mouseReleaseEvent(QMouseEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#40 0x40c455bc in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3 
#41 0x40bb32e4 in QApplication::internalNotify(QObject*, QEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#42 0x40bb28c3 in QApplication::notify(QObject*, QEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#43 0x4081bfc9 in KApplication::notify(QObject*, QEvent*) () 
   from /opt/kde3/lib/libkdecore.so.4 
#44 0x40b56a56 in QETWidget::translateMouseEvent(_XEvent const*) () 
   from /usr/lib/libqt-mt.so.3 
#45 0x40b54a61 in QApplication::x11ProcessEvent(_XEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#46 0x40b69eda in QEventLoop::processEvents(unsigned) () 
   from /usr/lib/libqt-mt.so.3 
#47 0x40bc6fa6 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3 
#48 0x40bc6e48 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3 
#49 0x40bb3511 in QApplication::exec() () from /usr/lib/libqt-mt.so.3 
#50 0x0804a174 in KMainWindow::canBeRestored(int) () 
#51 0x4125e4a2 in __libc_start_main () from /lib/libc.so.6 
 
Comment 4 Tobias Koenig 2003-02-08 19:25:07 UTC
Ok, i've added the following patches now to CVS HEAD and 3_1_BRANCH: 
 - an error message is shown, if the vcard version is < 2.1 
 - the url dialog in the csv import dialog accepts only *.csv files now 
 
I think that should fixes the bugs 
Comment 5 Tobias Koenig 2009-08-05 15:49:24 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.