Bug 289100 - Pegasus Mail Import crashes regularly in kmailcvt
Summary: Pegasus Mail Import crashes regularly in kmailcvt
Status: RESOLVED FIXED
Alias: None
Product: kmail2
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: 2011-12-16 08:35 UTC by Birgit Nietsch
Modified: 2011-12-17 10:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Birgit Nietsch 2011-12-16 08:35:57 UTC
Application: kmailcvt (4.7.2)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic-pae i686
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:

1. started kmailcvt
2. selected Pegasus Import
3. selected local folder as the import target
4. selected OK.

kmailcvt imported my mails and crashed afterwards. 
Not sure if everything has been imported.
This happens every time I'm importing mails from my postbox on our mercury mailserver, which is: daily.

The crash can be reproduced every time.

-- Backtrace:
Application: KMailCVT (kmailcvt), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4d72710 (LWP 2568))]

Thread 2 (Thread 0xb34b7b70 (LWP 2572)):
#0  0xb5418d10 in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0xb69fe7d5 in do_gettime (frac=0xb34b7020, sec=0xb34b7018) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb6ad14b6 in QTimerInfoList::updateCurrentTime (this=0xb2b0067c) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb6ad180a in QTimerInfoList::timerWait (this=0xb2b0067c, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6ad0053 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb34b712c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb6ad00ed in timerSourcePrepare (source=0xb2b00648, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb535e88c in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb535f637 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb535fc2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb6ad0b37 in QEventDispatcherGlib::processEvents (this=0x8f98920, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb6aa11dd in QEventLoop::processEvents (this=0xb34b72b0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb6aa1421 in QEventLoop::exec (this=0xb34b72b0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb69a490b in QThread::exec (this=0x8f93d00) at thread/qthread.cpp:498
#14 0xb6a81e2d in QInotifyFileSystemWatcherEngine::run (this=0x8f93d00) at io/qfilesystemwatcher_inotify.cpp:248
#15 0xb69a77b3 in QThreadPrivate::start (arg=0x8f93d00) at thread/qthread_unix.cpp:331
#16 0xb558ad31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0xb5cc30ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb4d72710 (LWP 2568)):
[KCrash Handler]
#7  0xb65cf579 in count (this=) at ../../include/QtCore/../../src/corelib/tools/qvector.h:246
#8  QListWidgetItem::data (this=0x64, role=148853628) at itemviews/qlistwidget.cpp:713
#9  0x0805e8ab in FilterPMail::import (this=0xbfe9c158, info=0x901e260) at ../../kmailcvt/filter_pmail.cxx:78
#10 0x0805c6f1 in KMailCVT::next (this=0x8cbf780) at ../../kmailcvt/kmailcvt.cpp:93
#11 0xb6fbe517 in KAssistantDialog::qt_metacall (this=0x8cbf780, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbfe9c2c4) at ./kassistantdialog.moc:76
#12 0x0805cca3 in KMailCVT::qt_metacall (this=0x8cbf780, _c=QMetaObject::InvokeMetaMethod, _id=76, _a=0xbfe9c2c4) at ./kmailcvt.moc:69
#13 0xb6aa8b7d in metacall (argv=0xbfe9c2c4, idx=76, cl=QMetaObject::InvokeMetaMethod, object=0x8cbf780) at kernel/qmetaobject.cpp:237
#14 QMetaObject::metacall (object=0x8cbf780, cl=QMetaObject::InvokeMetaMethod, idx=76, argv=0xbfe9c2c4) at kernel/qmetaobject.cpp:232
#15 0xb6ab7a6a in QMetaObject::activate (sender=0x8cbf780, m=0xb72cca48, local_signal_index=5, argv=0x0) at kernel/qobject.cpp:3278
#16 0xb6fd17d5 in KDialog::user2Clicked (this=0x8cbf780) at ./kdialog.moc:234
#17 0xb6fd2010 in KDialog::slotButtonClicked (this=0x8cbf780, button=8192) at ../../kdeui/dialogs/kdialog.cpp:897
#18 0xb6fd2603 in KDialog::qt_metacall (this=0x8cbf780, _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0xbfe9c4f8) at ./kdialog.moc:190
#19 0xb70c3ad2 in KPageDialog::qt_metacall (this=0x8cbf780, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbfe9c4f8) at ./kpagedialog.moc:70
#20 0xb6fbe4ae in KAssistantDialog::qt_metacall (this=0x8cbf780, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbfe9c4f8) at ./kassistantdialog.moc:70
#21 0x0805cca3 in KMailCVT::qt_metacall (this=0x8cbf780, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0xbfe9c4f8) at ./kmailcvt.moc:69
#22 0xb6aa8b7d in metacall (argv=0xbfe9c4f8, idx=69, cl=QMetaObject::InvokeMetaMethod, object=0x8cbf780) at kernel/qmetaobject.cpp:237
#23 QMetaObject::metacall (object=0x8cbf780, cl=QMetaObject::InvokeMetaMethod, idx=69, argv=0xbfe9c4f8) at kernel/qmetaobject.cpp:232
#24 0xb6ab7a6a in QMetaObject::activate (sender=0x8ce1aec, m=0xb6bd81b8, local_signal_index=0, argv=0xbfe9c4f8) at kernel/qobject.cpp:3278
#25 0xb6abdb15 in QSignalMapper::mapped (this=0x8ce1aec, _t1=8192) at .moc/release-shared/moc_qsignalmapper.cpp:101
#26 0xb6abdc62 in QSignalMapper::map (this=0x8ce1aec, sender=0x8cd01e0) at kernel/qsignalmapper.cpp:266
#27 0xb6abde1e in QSignalMapper::map (this=0x8ce1aec) at kernel/qsignalmapper.cpp:257
#28 0xb6abdf50 in QSignalMapper::qt_metacall (this=0x8ce1aec, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfe9c688) at .moc/release-shared/moc_qsignalmapper.cpp:87
#29 0xb6aa8b7d in metacall (argv=0xbfe9c688, idx=8, cl=QMetaObject::InvokeMetaMethod, object=0x8ce1aec) at kernel/qmetaobject.cpp:237
#30 QMetaObject::metacall (object=0x8ce1aec, cl=QMetaObject::InvokeMetaMethod, idx=8, argv=0xbfe9c688) at kernel/qmetaobject.cpp:232
#31 0xb6ab7a6a in QMetaObject::activate (sender=0x8cd01e0, m=0xb6929a28, local_signal_index=2, argv=0xbfe9c688) at kernel/qobject.cpp:3278
#32 0xb66e2e1d in QAbstractButton::clicked (this=0x8cd01e0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#33 0xb63e158d in QAbstractButtonPrivate::emitClicked (this=0x8cd10b8) at widgets/qabstractbutton.cpp:546
#34 0xb63e2bfb in QAbstractButtonPrivate::click (this=0x8cd10b8) at widgets/qabstractbutton.cpp:539
#35 0xb63e2eb6 in QAbstractButton::mouseReleaseEvent (this=0x8cd01e0, e=0xbfe9cc3c) at widgets/qabstractbutton.cpp:1121
#36 0xb6027f98 in QWidget::event (this=0x8cd01e0, event=0xbfe9cc3c) at kernel/qwidget.cpp:8295
#37 0xb63e2159 in QAbstractButton::event (this=0x8cd01e0, e=0xbfe9cc3c) at widgets/qabstractbutton.cpp:1080
#38 0xb6484798 in QPushButton::event (this=0x8cd01e0, e=0xbfe9cc3c) at widgets/qpushbutton.cpp:683
#39 0xb5fcdd54 in notify_helper (e=0xbfe9cc3c, receiver=0x8cd01e0, this=0x8bbcd38) at kernel/qapplication.cpp:4486
#40 QApplicationPrivate::notify_helper (this=0x8bbcd38, receiver=0x8cd01e0, e=0xbfe9cc3c) at kernel/qapplication.cpp:4458
#41 0xb5fd3dbb in QApplication::notify (this=0x8bbcd38, receiver=0x8cd01e0, e=0xbfe9cc3c) at kernel/qapplication.cpp:4047
#42 0xb708e681 in KApplication::notify (this=0xbfe9d458, receiver=0x8cd01e0, event=0xbfe9cc3c) at ../../kdeui/kernel/kapplication.cpp:311
#43 0xb6aa219e in QCoreApplication::notifyInternal (this=0xbfe9d458, receiver=0x8cd01e0, event=0xbfe9cc3c) at kernel/qcoreapplication.cpp:787
#44 0xb5fced15 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#45 QApplicationPrivate::sendMouseEvent (receiver=0x8cd01e0, event=0xbfe9cc3c, alienWidget=0x8cd01e0, nativeWidget=0x8c4a118, buttonDown=0xb6938eb4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#46 0xb605b2c4 in QETWidget::translateMouseEvent (this=0x8c4a118, event=0xbfe9d0bc) at kernel/qapplication_x11.cpp:4568
#47 0xb6059e4d in QApplication::x11ProcessEvent (this=0xbfe9d458, event=0xbfe9d0bc) at kernel/qapplication_x11.cpp:3690
#48 0xb608624c in x11EventSourceDispatch (s=0x8bbf348, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#49 0xb535f25f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#50 0xb535f990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#51 0xb535fc2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#52 0xb6ad0ada in QEventDispatcherGlib::processEvents (this=0x8b9fc40, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#53 0xb6085e3a in QGuiEventDispatcherGlib::processEvents (this=0x8b9fc40, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#54 0xb6aa11dd in QEventLoop::processEvents (this=0xbfe9d3c4, flags=...) at kernel/qeventloop.cpp:149
#55 0xb6aa1421 in QEventLoop::exec (this=0xbfe9d3c4, flags=...) at kernel/qeventloop.cpp:201
#56 0xb6aa619d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#57 0xb5fcb8f4 in QApplication::exec () at kernel/qapplication.cpp:3760
#58 0x080504a5 in main (argc=) at ../../kmailcvt/main.cpp:47

Reported using DrKonqi
Comment 1 Laurent Montel 2011-12-16 13:32:16 UTC
I want to debug it.
But it's necessary to have email from pegassus.
Where I can found a pegassus apps ? or a small tarball of pegasus mail ?
Comment 2 Laurent Montel 2011-12-16 13:34:54 UTC
Git commit 37d1c0f0c55d949abb1f92f75b58c0094d2d0c04 by Montel Laurent.
Committed on 16/12/2011 at 14:33.
Pushed by mlaurent into branch 'master'.

Fix Bug 289100 - Pegasus Mail Import crashes regularly in kmailcvt

BUG: 289100
FIXED-IN: 4.8

M  +0    -1    kmailcvt/filter_pmail.cxx

http://commits.kde.org/kdepim/37d1c0f0c55d949abb1f92f75b58c0094d2d0c04
Comment 3 Laurent Montel 2011-12-16 13:36:30 UTC
Git commit 24bf781bb6f634bdec971aa4e6cf83321ed69de1 by Montel Laurent.
Committed on 16/12/2011 at 14:35.
Pushed by mlaurent into branch 'KDE/4.7'.

Backport fix Bug 289100 - Pegasus Mail Import crashes regularly in kmailcvt

BUG: 289100

M  +0    -1    kmailcvt/filter_pmail.cxx

http://commits.kde.org/kdepim/24bf781bb6f634bdec971aa4e6cf83321ed69de1
Comment 4 Laurent Montel 2011-12-16 13:38:02 UTC
So it was easy.
Backtrace gave me info how to fix it.
It's fixed in 4.8 or if you compile from source I backported to 4.7.x

Thanks for report
(but if you can told me where I can find pegasus...)
I will try to improve import from other mail apps.
Comment 5 Birgit Nietsch 2011-12-17 10:41:48 UTC
Hi Laurent,
thanks for fixing, I will try it out on monday.

About your questions on Pegasus:
You can get the Pegasus Mail Client and the Mercury Mail Server 
from http://www.pmail.com/ if you want to generate test data, but 
unfortunately both will only run on MS Windows. You can try it on 
wine and at least Pegasus will run, but the last time I  tried 
that myself, it totally lacked network connectivity.

Best wishes and seasonal greetings
Birgit