KMail problem

Dwayne MacKinnon dmk at ncf.ca
Mon Jan 7 21:24:58 GMT 2019


Hi all,

I've checked bugs.kde.org. I can't find anything quite like this. Before I 
submit a bug report I thought I'd check folks' opinions here.

I've narrowed down what happens: kmail only crashes when I attempt to open an 
email in a new window (which is my standard way of doing things.)

I can reply to an email. I can receive emails no problem. I can see any email 
under kmail's preview pane functionality (which I strongly dislike and 
normally keep turned off.) I'm writing this on one of my affected boxes using 
kmail.

I recompiled just about everything in my ports tree and used language similar 
to what Tobias put below to add debugging to kmail, kdepim, kf5  and qt5 
ports. 

I did this twice, on two different systems, and ran kmail under gdb. I got two 
very different crash reports (well, they agree on where the break happens, but 
the details differ wildly.)

Any suggestions on how I should proceed would be greatly appreciated.

Cheers,
DMK

On Monday, December 17, 2018 1:53:43 A.M. EST Tobias C. Berner wrote:
> Hi Dwayne
> 
> There was a similar report in #kde-devel in IRC recently. There is probably
> an open PR upstream for this.
> 
> 
> You can add somethin like this for Qt5
> 
> 
> # Build Qt with debug flags
> .if ${.CURDIR:M*/qt5-*} && ! ${.CURDIR:M*www/qt5-webkit*} && !
> ${.CURDIR:M*www/qt5-webengine*}
> WITH_DEBUG=     yes
> .endif
> And analogously for KF5. You neee to exclude the two www as your machine
> wont survive the build otherwise =)
> 
> There are also environment variables you can set to make akonadi more
> verbose.
> 
> Mfg Tobias
> 
> Am Mo., 17. Dez. 2018, 05:02 hat Dwayne MacKinnon <dmk at ncf.ca> geschrieben:
> > Hi all,
> > 
> > This weekend I upgraded to FreeBSD 12.0-RELEASE, wiped out all my ports,
> > upgraded my poudriere jail and then rebuilt everything. Most things are
> > ok.
> > However, I have a major problem with KMail 5.10.0 now. Every time I try to
> > open one of my imap emails it segfaults and dies.
> > 
> > Unfortunately Dr. Konqui had no useful information.
> > 
> > Anyone else see this? And can someone tweak my memory as to how to build
> > with useful crash dumps? is it WITH_DEBUG=YES in make.conf or something
> > like that?
> > 
> > Thanks,
> > DMK

-------------- next part --------------
Starting program: /usr/local/bin/kmail 
[New LWP 100884]
[New Thread 81367c000 (LWP 100884/kmail)]
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-dwayne'
org.kde.pim.messagelist: Requested invariant for storage row index  2059  not found in history
org.kde.pim.messagelist: Requested invariant for storage row index  2059  not found in history
org.kde.pim.messagelist: Could not find invariant to invalidate at current row  2059


[New Thread 81b5ab500 (LWP 101174/kmail)]
[28992:325566464:0107/155302.161663:ERROR:proxy_config_service_linux.cc(974)] base::SetNonBlocking failed: Inappropriate ioctl for device
[New Thread 8199e9100 (LWP 101167/kmail)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 81367c000 (LWP 100884/kmail)]
KMReaderWin::viewer (this=0x0) at /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/kmreaderwin.cpp:219
219     /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/kmreaderwin.cpp: No such file or directory.
        in /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/kmreaderwin.cpp
(gdb) 
(gdb) 
(gdb) bt
#0  KMReaderWin::viewer (this=0x0) at /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/kmreaderwin.cpp:219
#1  0x0000000800495a30 in KMMainWidget::slotItemsFetchedForActivation (this=0x8136b2680, command=0x81dc83e10)
    at /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/kmmainwidget.cpp:2589
#2  0x00000008004b6349 in _ZN9QtPrivate11FunctorCallINS_11IndexesListIJLi0EEEENS_4ListIJP9KMCommandEEEvM12KMMainWidgetFvS5_EE4callES9_PS7_PPv
    (f=not implemented: member type in c_val_print
) at qobjectdefs_impl.h:152
#3  0x00000008004b62b3 in _ZN9QtPrivate15FunctionPointerIM12KMMainWidgetFvP9KMCommandEE4callINS_4ListIJS3_EEEvEEvS5_PS1_PPv (f=not implemented: member type in c_val_print
)
    at qobjectdefs_impl.h:185
#4  0x00000008004b61d6 in _ZN9QtPrivate11QSlotObjectIM12KMMainWidgetFvP9KMCommandENS_4ListIJS3_EEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb (which=1, this_=0x81dbe2aa0, r=0x8136b2680, a=0x7fffffffc370, ret=0x0) at qobjectdefs_impl.h:414
#5  0x0000000802ff23b6 in QtPrivate::QSlotObjectBase::call (this=0x81dbe2aa0, r=0x8136b2680, a=0x7fffffffc370) at qobjectdefs_impl.h:394
#6  0x00000008030319a5 in QMetaObject::activate (sender=0x81dc83e10, signalOffset=3, local_signal_index=1, argv=0x7fffffffc370)
    at kernel/qobject.cpp:3759
#7  0x000000080303104d in QMetaObject::activate (sender=0x81dc83e10, m=0x800698ab0, local_signal_index=1, argv=0x7fffffffc370)
    at kernel/qobject.cpp:3631
#8  0x000000080065014f in KMCommand::completed (this=0x81dc83e10, _t1=0x81dc83e10) at moc_kmcommands.cpp:200
#9  0x00000008004437ca in KMCommand::slotPostTransfer (this=0x81dc83e10, result=OK)
    at /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/kmcommands.cpp:289
#10 0x000000080045ba88 in _ZN9QtPrivate11FunctorCallINS_11IndexesListIJLi0EEEENS_4ListIJN9KMCommand6ResultEEEEvMS4_FvS5_EE4callES8_PS4_PPv (
    f=not implemented: member type in c_val_print
) at qobjectdefs_impl.h:152
#11 0x000000080045b9f3 in _ZN9QtPrivate15FunctionPointerIM9KMCommandFvNS1_6ResultEEE4callINS_4ListIJS2_EEEvEEvS4_PS1_PPv (f=not implemented: member type in c_val_print
)
    at qobjectdefs_impl.h:185
#12 0x000000080045b916 in _ZN9QtPrivate11QSlotObjectIM9KMCommandFvNS1_6ResultEENS_4ListIJS2_EEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb
    (which=1, this_=0x81dbe2ae0, r=0x81dc83e10, a=0x7fffffffc920, ret=0x0) at qobjectdefs_impl.h:414
#13 0x0000000802ff23b6 in QtPrivate::QSlotObjectBase::call (this=0x81dbe2ae0, r=0x81dc83e10, a=0x7fffffffc920) at qobjectdefs_impl.h:394
#14 0x00000008030319a5 in QMetaObject::activate (sender=0x81dc83e10, signalOffset=3, local_signal_index=0, argv=0x7fffffffc920)
    at kernel/qobject.cpp:3759
#15 0x000000080303104d in QMetaObject::activate (sender=0x81dc83e10, m=0x800698ab0, local_signal_index=0, argv=0x7fffffffc920)
    at kernel/qobject.cpp:3631
#16 0x0000000800650108 in KMCommand::messagesTransfered (this=0x81dc83e10, _t1=KMCommand::OK) at moc_kmcommands.cpp:193
#17 0x000000080044406b in KMCommand::slotJobFinished (this=0x81dc83e10)
    at /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/kmcommands.cpp:394
#18 0x000000080045d4fe in _ZN9QtPrivate11FunctorCallINS_11IndexesListIJEEENS_4ListIJEEEvM9KMCommandFvvEE4callES7_PS5_PPv (f=not implemented: member type in c_val_print
)
---Type <return> to continue, or q <return> to quit---
    at qobjectdefs_impl.h:152
#19 0x000000080045d473 in _ZN9QtPrivate15FunctionPointerIM9KMCommandFvvEE4callINS_4ListIJEEEvEEvS3_PS1_PPv (f=not implemented: member type in c_val_print
) at qobjectdefs_impl.h:185
#20 0x000000080045d396 in _ZN9QtPrivate11QSlotObjectIM9KMCommandFvvENS_4ListIJEEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb (which=1, 
    this_=0x81c63a160, r=0x81dc83e10, a=0x7fffffffcee0, ret=0x0) at qobjectdefs_impl.h:414
#21 0x0000000802ff23b6 in QtPrivate::QSlotObjectBase::call (this=0x81c63a160, r=0x81dc83e10, a=0x7fffffffcee0) at qobjectdefs_impl.h:394
#22 0x00000008030319a5 in QMetaObject::activate (sender=0x81c63a100, signalOffset=3, local_signal_index=3, argv=0x7fffffffcee0)
    at kernel/qobject.cpp:3759
#23 0x000000080303104d in QMetaObject::activate (sender=0x81c63a100, m=0x801529678, local_signal_index=3, argv=0x7fffffffcee0)
    at kernel/qobject.cpp:3631
#24 0x00000008014cb7a7 in KJob::result (this=0x81c63a100, _t1=0x81c63a100, _t2=<incomplete type>) at moc_kjob.cpp:573
#25 0x00000008014cb72d in KJob::finishJob (this=0x81c63a100, emitResult=true)
    at /wrkdirs/usr/ports/devel/kf5-kcoreaddons/work/kcoreaddons-5.53.0/src/lib/jobs/kjob.cpp:109
#26 0x00000008014cc32a in KJob::emitResult (this=0x81c63a100)
    at /wrkdirs/usr/ports/devel/kf5-kcoreaddons/work/kcoreaddons-5.53.0/src/lib/jobs/kjob.cpp:293
#27 0x0000000802ff23b6 in QtPrivate::QSlotObjectBase::call (this=0x81c63a1c0, r=0x81c63a100, a=0x7fffffffcfd8) at qobjectdefs_impl.h:394
#28 0x000000080304184b in QSingleShotTimer::timerEvent (this=0x818b88f70) at kernel/qtimer.cpp:318
#29 0x0000000803029712 in QObject::event (this=0x818b88f70, e=0x7fffffffdff8) at kernel/qobject.cpp:1230
#30 0x0000000801b14f3f in QApplicationPrivate::notify_helper (this=0x81372d000, receiver=0x818b88f70, e=0x7fffffffdff8)
    at kernel/qapplication.cpp:3752
#31 0x0000000801b16cdc in QApplication::notify (this=0x7fffffffe5b0, receiver=0x818b88f70, e=0x7fffffffdff8) at kernel/qapplication.cpp:3109
#32 0x0000000802fdd3bd in QCoreApplication::notifyInternal2 (receiver=0x818b88f70, event=0x7fffffffdff8) at kernel/qcoreapplication.cpp:1061
#33 0x0000000802fdde98 in QCoreApplication::sendEvent (receiver=0x818b88f70, event=0x7fffffffdff8) at kernel/qcoreapplication.cpp:1451
#34 0x000000080307c85b in QTimerInfoList::activateTimers (this=0x81372ac60) at kernel/qtimerinfo_unix.cpp:643
#35 0x000000080307f892 in timerSourceDispatch (source=0x81372ac00) at kernel/qeventdispatcher_glib.cpp:182
#36 0x000000080c317b77 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#37 0x000000080c317f03 in g_main_context_pending () from /usr/local/lib/libglib-2.0.so.0
#38 0x000000080c317fb4 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#39 0x000000080307e7e4 in QEventDispatcherGlib::processEvents (this=0x8136ab320, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:422
#40 0x000000081590750d in QXcbGlibEventDispatcher::processEvents (this=0x8136ab320, flags={i = 36}) at qxcbeventdispatcher.cpp:143
#41 0x0000000802fd889b in QEventLoop::processEvents (this=0x7fffffffe370, flags={i = 36}) at kernel/qeventloop.cpp:138
#42 0x0000000802fd8aac in QEventLoop::exec (this=0x7fffffffe370, flags={i = 0}) at kernel/qeventloop.cpp:225
#43 0x0000000802fddc28 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1364
---Type <return> to continue, or q <return> to quit---
#44 0x00000008024644d6 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1779
#45 0x0000000801b16489 in QApplication::exec () at kernel/qapplication.cpp:2909
#46 0x0000000000204905 in main (argc=1, argv=0x7fffffffe658) at /wrkdirs/usr/ports/deskutils/kmail/work/kmail-18.12.0/src/main.cpp:172
(gdb) 

-------------- next part --------------
[dwayne at Chiron ~]$ gdb /usr/local/bin/kmail
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/local/bin/kmail 
(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)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 101473]
[New Thread 812045000 (LWP 101473/kmail)]
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-dwayne'
org.kde.pim.mailtransport: "1758842799"
org.kde.pim.mailtransport: "1596298894"
org.kde.pim.mailtransport: 
org.kde.pim.mailtransport: 
[New Thread 81974b500 (LWP 101675/kmail)]
[61901:302272512:0107/161232.999898:ERROR:proxy_config_service_linux.cc(974)] base::SetNonBlocking failed: Inappropriate ioctl for device
[New Thread 81802fc00 (LWP 101671/kmail)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 812045000 (LWP 101473/kmail)]
0x00000008003b6a94 in KMReaderWin::viewer () from /usr/local/lib/libkmailprivate.so.5
Current language:  auto; currently minimal
(gdb) bt
#0  0x00000008003b6a94 in KMReaderWin::viewer () from /usr/local/lib/libkmailprivate.so.5
#1  0x000000080040c52a in KMMainWidget::slotItemsFetchedForActivation ()
   from /usr/local/lib/libkmailprivate.so.5
#2  0x00000008022580be in QMetaObject::activate () from /usr/local/lib/qt5/libQt5Core.so.5
#3  0x000000080050a7e1 in KMail::FolderShortcutActionManager::qt_metacall ()
   from /usr/local/lib/libkmailprivate.so.5
#4  0x00000008003d62bd in non-virtual thunk to KMKernel::expunge(long long, bool) ()
   from /usr/local/lib/libkmailprivate.so.5
#5  0x00000008022580be in QMetaObject::activate () from /usr/local/lib/qt5/libQt5Core.so.5
#6  0x000000080050a79d in KMail::FolderShortcutActionManager::qt_metacall ()
   from /usr/local/lib/libkmailprivate.so.5
#7  0x00000008003d6b5f in non-virtual thunk to KMKernel::expunge(long long, bool) ()
   from /usr/local/lib/libkmailprivate.so.5
#8  0x00000008022580be in QMetaObject::activate () from /usr/local/lib/qt5/libQt5Core.so.5
#9  0x0000000800fd994d in KJob::finishJob () from /usr/local/lib/libKF5CoreAddons.so.5
#10 0x000000080226066c in QTimer::timeout () from /usr/local/lib/qt5/libQt5Core.so.5
#11 0x0000000802251436 in QObject::event () from /usr/local/lib/qt5/libQt5Core.so.5
#12 0x000000080147dee1 in QApplicationPrivate::notify_helper () from /usr/local/lib/qt5/libQt5Widgets.so.5
#13 0x000000080147f27d in QApplication::notify () from /usr/local/lib/qt5/libQt5Widgets.so.5
#14 0x0000000802226ef1 in QCoreApplication::notifyInternal2 () from /usr/local/lib/qt5/libQt5Core.so.5
#15 0x000000080227af10 in QTimerInfoList::activateTimers () from /usr/local/lib/qt5/libQt5Core.so.5
#16 0x000000080227c63d in QEventDispatcherGlib::qt_metacall () from /usr/local/lib/qt5/libQt5Core.so.5
#17 0x000000080aeaab77 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#18 0x000000080aeaaf03 in g_main_context_pending () from /usr/local/lib/libglib-2.0.so.0
#19 0x000000080aeaafb4 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#20 0x000000080227bda6 in QEventDispatcherGlib::processEvents () from /usr/local/lib/qt5/libQt5Core.so.5
#21 0x0000000802222a3e in QEventLoop::exec () from /usr/local/lib/qt5/libQt5Core.so.5
#22 0x00000008022274ee in QCoreApplication::exec () from /usr/local/lib/qt5/libQt5Core.so.5
#23 0x0000000000205273 in ?? ()
#24 0x000000000020311b in ?? ()
#25 0x000000080022d000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#26 0x0000000000000000 in ?? ()
(gdb) 
(gdb) 



More information about the kde-freebsd mailing list