Bug 236548 - KAddressBook crashed guessing the import encoding
Summary: KAddressBook crashed guessing the import encoding
Status: RESOLVED WORKSFORME
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 236544 236549 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-06 11:57 UTC by Christopher Yeleighton
Modified: 2010-05-16 15:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Microsoft Outlook contact (1.84 KB, text/plain)
2010-05-16 12:28 UTC, Christopher Yeleighton
Details
Outlook CSV map (602 bytes, application/x-desktop)
2010-05-16 12:32 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2010-05-06 11:57:53 UTC
Application that crashed: kaddressbook
Version of the application: 4.3
KDE Version: 4.3.5 (KDE 4.3.5) "release 3"
Qt Version: 4.5.3
Operating System: Linux 2.6.31.12-0.2-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

What I was doing when the application crashed:
I asked KAddressBook to guess the encoding of an imported CSV file and it crashed.  The input file was in Windows-1250.

 -- Backtrace:
Application: Książka adresowa (kaddressbook), signal: Segmentation fault
[KCrash Handler]
#5  ref (this=<value optimized out>) at /usr/include/QtCore/qatomic_x86_64.h:121
#6  QString (this=<value optimized out>) at /usr/include/QtCore/qstring.h:712
#7  QList<QString>::append (this=<value optimized out>) at /usr/include/QtCore/qlist.h:428
#8  0x00007ffd3deca64b in operator<< (str=<value optimized out>, this=<value optimized out>) at /usr/include/QtCore/qstringlist.h:87
#9  CSVImportDialog::fillTable (str=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdepim-4.3.5/kaddressbook/xxport/csvimportdialog.cpp:503
#10 0x00007ffd3ded005c in codecChanged (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.5/kaddressbook/xxport/csvimportdialog.cpp:995
#11 CSVImportDialog::qt_metacall (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.5/build/kaddressbook/xxport/csvimportdialog.moc:95
#12 0x00007ffd4ea61fbc in QMetaObject::activate (sender=0x631e10, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#13 0x00007ffd4f928c15 in QComboBox::activated(QString const&) () from /usr/lib64/libQtGui.so.4
#14 0x00007ffd4f92b616 in ?? () from /usr/lib64/libQtGui.so.4
#15 0x00007ffd4f92cac7 in ?? () from /usr/lib64/libQtGui.so.4
#16 0x00007ffd4f931849 in QComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#17 0x00007ffd50270f55 in KComboBox::qt_metacall (this=0x7fffb0e568b0, _c=50338032, _id=1, _a=0xffffffffffffffff) at /usr/src/debug/kdelibs-4.3.5/build/kdeui/kcombobox.moc:100
#18 0x00007ffd4ea61fbc in QMetaObject::activate (sender=0x1ddf970, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#19 0x00007ffd4fbb1c12 in ?? () from /usr/lib64/libQtGui.so.4
#20 0x00007ffd4f92a5eb in ?? () from /usr/lib64/libQtGui.so.4
#21 0x00007ffd4ea4c127 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x245abd0, event=0x7fffb0e57360) at kernel/qcoreapplication.cpp:726
#22 0x00007ffd4f5cc27c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#23 0x00007ffd4f5d33c1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#24 0x00007ffd501c7016 in KApplication::notify (this=0x7fffb0e5c160, receiver=0x245abd0, event=0x7fffb0e57360) at /usr/src/debug/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#25 0x00007ffd4ea4cddc in QCoreApplication::notifyInternal (this=0x7fffb0e5c160, receiver=0x245abd0, event=0x7fffb0e57360) at kernel/qcoreapplication.cpp:610
#26 0x00007ffd4f5d2c90 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib64/libQtGui.so.4
#27 0x00007ffd4f63911e in ?? () from /usr/lib64/libQtGui.so.4
#28 0x00007ffd4f637d9a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#29 0x00007ffd4f65fb6c in ?? () from /usr/lib64/libQtGui.so.4
#30 0x00007ffd48aaadee in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007ffd48aae7b8 in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007ffd48aae8e0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007ffd4ea753a3 in QEventDispatcherGlib::processEvents (this=0x613430, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#34 0x00007ffd4f65f31e in ?? () from /usr/lib64/libQtGui.so.4
#35 0x00007ffd4ea4b712 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#36 0x00007ffd4ea4bae4 in QEventLoop::exec (this=0x7fffb0e591c0, flags=) at kernel/qeventloop.cpp:201
#37 0x00007ffd4fa297ee in QDialog::exec() () from /usr/lib64/libQtGui.so.4
#38 0x00007ffd3dec8c75 in CSVXXPort::importContacts (this=0x9d3760) at /usr/src/debug/kdepim-4.3.5/kaddressbook/xxport/csv_xxport.cpp:90
#39 0x00007ffd509b58eb in XXPortManager::slotImport (this=0x9680f0, identifier=<value optimized out>, data=...) at /usr/src/debug/kdepim-4.3.5/kaddressbook/xxportmanager.cpp:87
#40 0x00007ffd509b5d24 in XXPortManager::qt_metacall (this=0x9680f0, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb0e59500)
    at /usr/src/debug/kdepim-4.3.5/build/kaddressbook/xxportmanager.moc:79
#41 0x00007ffd4ea61fbc in QMetaObject::activate (sender=0x9d3760, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#42 0x00007ffd4d42227a in KAB::XXPort::importActivated (this=0x7fffb0e568b0, _t1=<value optimized out>, _t2=<value optimized out>)
    at /usr/src/debug/kdepim-4.3.5/build/kaddressbook/interfaces/xxport.moc:108
#43 0x00007ffd4d422fea in KAB::XXPort::slotImportActivated (this=0x9d3760, data=<value optimized out>) at /usr/src/debug/kdepim-4.3.5/kaddressbook/interfaces/xxport.cpp:131
#44 0x00007ffd4d42310c in KAB::XXPort::qt_metacall (this=0x9d3760, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb0e59700)
    at /usr/src/debug/kdepim-4.3.5/build/kaddressbook/interfaces/xxport.moc:88
#45 0x00007ffd3dec8b65 in CSVXXPort::qt_metacall (this=0x7fffb0e568b0, _c=50338032, _id=1, _a=0xffffffffffffffff) at /usr/src/debug/kdepim-4.3.5/build/kaddressbook/xxport/csv_xxport.moc:67
#46 0x00007ffd4ea61fbc in QMetaObject::activate (sender=0x9c67e0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#47 0x00007ffd4ea64ab5 in QSignalMapper::mapped (this=0x7fffb0e568b0, _t1=<value optimized out>) at .moc/release-shared/moc_qsignalmapper.cpp:102
#48 0x00007ffd4ea65d2a in QSignalMapper::map (this=0x9c67e0, sender=0x9d0f80) at kernel/qsignalmapper.cpp:268
#49 0x00007ffd4ea65f50 in QSignalMapper::qt_metacall (this=0x9c67e0, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb0e59890) at .moc/release-shared/moc_qsignalmapper.cpp:81
#50 0x00007ffd4ea61fbc in QMetaObject::activate (sender=0x9d0f80, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#51 0x00007ffd4f5c6457 in QAction::triggered(bool) () from /usr/lib64/libQtGui.so.4
#52 0x00007ffd4f5c789f in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQtGui.so.4
#53 0x00007ffd4f99761d in ?? () from /usr/lib64/libQtGui.so.4
#54 0x00007ffd4f99d52a in ?? () from /usr/lib64/libQtGui.so.4
#55 0x00007ffd5029903e in KMenu::mouseReleaseEvent (this=0xa48be0, e=0x30018f0) at /usr/src/debug/kdelibs-4.3.5/kdeui/widgets/kmenu.cpp:456
#56 0x00007ffd4f61acf0 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#57 0x00007ffd4f99fceb in QMenu::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#58 0x00007ffd4f5cc2ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#59 0x00007ffd4f5d33c1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#60 0x00007ffd501c7016 in KApplication::notify (this=0x7fffb0e5c160, receiver=0xa48be0, event=0x7fffb0e5a2b0) at /usr/src/debug/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#61 0x00007ffd4ea4cddc in QCoreApplication::notifyInternal (this=0x7fffb0e5c160, receiver=0xa48be0, event=0x7fffb0e5a2b0) at kernel/qcoreapplication.cpp:610
#62 0x00007ffd4f5d2c90 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib64/libQtGui.so.4
#63 0x00007ffd4f63911e in ?? () from /usr/lib64/libQtGui.so.4
#64 0x00007ffd4f637d9a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#65 0x00007ffd4f65fb6c in ?? () from /usr/lib64/libQtGui.so.4
#66 0x00007ffd48aaadee in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#67 0x00007ffd48aae7b8 in ?? () from /usr/lib64/libglib-2.0.so.0
#68 0x00007ffd48aae8e0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#69 0x00007ffd4ea753a3 in QEventDispatcherGlib::processEvents (this=0x613430, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#70 0x00007ffd4f65f31e in ?? () from /usr/lib64/libQtGui.so.4
#71 0x00007ffd4ea4b712 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#72 0x00007ffd4ea4bae4 in QEventLoop::exec (this=0x7fffb0e5c110, flags=) at kernel/qeventloop.cpp:201
#73 0x00007ffd4ea4dc99 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#74 0x0000000000406979 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.3.5/kaddressbook/main.cpp:122
Warning: the current language does not match this frame.
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Christopher Yeleighton 2010-05-06 11:59:30 UTC
*** Bug 236544 has been marked as a duplicate of this bug. ***
Comment 2 Christopher Yeleighton 2010-05-06 12:05:26 UTC
*** Bug 236549 has been marked as a duplicate of this bug. ***
Comment 3 Tobias Koenig 2010-05-16 10:17:35 UTC
Hej,

can you provide an example document for reproducing the bug, please?

Ciao,
Tobias
Comment 4 Christopher Yeleighton 2010-05-16 12:28:40 UTC
Created attachment 43628 [details]
Microsoft Outlook contact

This file is an excerpt of Microsoft Outlook exported contacts.  It contains one header line and one record.  It is TAB-delimited and encoded in CP1250.
Comment 5 Christopher Yeleighton 2010-05-16 12:32:45 UTC
Created attachment 43629 [details]
Outlook CSV map

This is the CSV map I use to import Outlook contacts.
Comment 6 Tobias Koenig 2010-05-16 15:12:04 UTC
Hej,

I have tried it with KAddressBook from 4.4.3 and SVN trunk (the upcoming 4.5) and couldn't reproduce the crash. We have reimplemented large parts of the CSV import dialog in 4.4, so that might be the reason for not crashing anymore.
I'll close the bug for now, feel free to reopen if you can reproduce it in 4.4.3 or 4.5.

Ciao,
Tobias