https://bugs.kde.org/show_bug.cgi?id=520131

            Bug ID: 520131
           Summary: Kmail crashes on quicksearch
    Classification: Applications
           Product: kmail2
      Version First 6.7.0
       Reported In:
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: search
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION

I have an inbox with about 35000 Mails. When I change from a different folder
to the inbox and directly start to search in the quicksearch I get a crash. It
does not crash when I wait until all mail in the folder is ready (e.g it no
longer shows Processed XXXXX Messages of XXXXX in the statusbar)

STEPS TO REPRODUCE
1.  change into a big folder
2.  start a search without waiting for the folder to be ready ()
3.  -> crash

OBSERVED RESULT
Kmail crashes

EXPECTED RESULT
Kmail should not crash

SOFTWARE/OS VERSIONS
Operating System: KDE neon User Edition
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.10.2
Kernel Version: 6.17.0-22-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 24 GiB of RAM (23.4 GiB usable)
Graphics Processor: Intel® HD Graphics 620

ADDITIONAL INFORMATION
kf.windowsystem.wayland: QWidgetWindow(0x5555596014a0,
name="QListViewClassWindow") is not an XDG toplevel, cannot export
ASSERT: "mModelForItemFunctions" in file
/workspace/build/messagelist/src/core/model.cpp, line 1245

Thread 1 "kmail" received signal SIGABRT, Aborted.
Download failed: Invalid argument.  Continuing without source file
./nptl/./nptl/pthread_kill.c.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at
./nptl/pthread_kill.c:44
warning: 44     ./nptl/pthread_kill.c: No such file or directory
(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)
at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at
./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at
./nptl/pthread_kill.c:89
#3  0x00007fffe8c4527e in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#4  0x00007fffe8c288ff in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007fffe9961a31 in qAbort () at
/workspace/build/src/corelib/global/qassert.cpp:46
#6  qt_maybe_message_fatal<QString&> (message=..., context=<optimized out>,
msgType=QtFatalMsg) at /workspace/build/src/corelib/global/qlogging.cpp:2166
#7  qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef
__va_list_tag __va_list_tag *)
    (msgType=msgType@entry=QtFatalMsg, context=...,
msg=msg@entry=0x7fffe9675c00 "ASSERT: \"%s\" in file %s, line %d",
ap=ap@entry=0x7fffffffc958) at
/workspace/build/src/corelib/global/qlogging.cpp:412
#8  0x00007fffe9963310 in QMessageLogger::fatal (this=<optimized out>,
msg=0x7fffe9675c00 "ASSERT: \"%s\" in file %s, line %d") at
/workspace/build/src/corelib/global/qlogging.cpp:901
#9  0x00007fffe994dc11 in qt_assert (assertion=<optimized out>, file=<optimized
out>, line=<optimized out>) at
/workspace/build/src/corelib/global/qassert.cpp:113
#10 0x00007fffe80a70d0 in MessageList::Core::ModelPrivate::attachGroup
(this=0x5555558a60d0, ghi=0x55555f93b900) at
/workspace/build/messagelist/src/core/model.cpp:1245
#11 0x00007fffe80a8111 in
MessageList::Core::ModelPrivate::attachMessageToGroupHeader
(this=0x5555558a60d0, mi=0x55555ed275a0) at
/workspace/build/messagelist/src/core/model.cpp:1446
#12 0x00007fffe80ab360 in
MessageList::Core::ModelPrivate::viewItemJobStepInternalForJobPass4
(this=0x5555558a60d0, job=0x555555936490, elapsedTimer=...) at
/workspace/build/messagelist/src/core/model.cpp:2542
#13 0x00007fffe80ae7eb in
MessageList::Core::ModelPrivate::viewItemJobStepInternalForJob
(this=0x5555558a60d0, job=0x555555936490, elapsedTimer=...) at
/workspace/build/messagelist/src/core/model.cpp:3566
#14 0x00007fffe80aebd5 in
MessageList::Core::ModelPrivate::viewItemJobStepInternal (this=0x5555558a60d0)
at /workspace/build/messagelist/src/core/model.cpp:3787
#15 0x00007fffe80af6c4 in MessageList::Core::ModelPrivate::viewItemJobStep
(this=0x5555558a60d0) at /workspace/build/messagelist/src/core/model.cpp:3965
#16 0x00007fffe80a2b8b in operator() (__closure=0x555555b8c020) at
/workspace/build/messagelist/src/core/model.cpp:331
#17 0x00007fffe80b36f3 in operator() (__closure=0x7fffffffd020) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:116
#18 0x00007fffe80b3c64 in QtPrivate::FunctorCallBase::call_internal<void,
QtPrivate::FunctorCall<std::integer_sequence<long unsigned int>,
QtPrivate::List<>, void,
MessageList::Core::Model::Model(MessageList::Core::View*)::<lambda()>
>::call(MessageList::Core::Model::Model(MessageList::Core::View*)::<lambda()>&,
void**)::<lambda()> >(void **, struct {...} &&) (args=0x7fffffffd1c0, fn=...)
    at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:65
#19 0x00007fffe80b3738 in QtPrivate::FunctorCall<std::integer_sequence<long
unsigned int>, QtPrivate::List<>, void,
MessageList::Core::Model::Model(MessageList::Core::View*)::<lambda()>
>::call(struct {...} &, void **) (f=..., arg=0x7fffffffd1c0) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:115
#20 0x00007fffe80b3515 in
QtPrivate::FunctorCallable<MessageList::Core::Model::Model(MessageList::Core::View*)::<lambda()>
>::call<QtPrivate::List<>, void>(struct {...} &, void *, void **)
    (f=..., arg=0x7fffffffd1c0) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:337
#21 0x00007fffe80b2f4c in
QtPrivate::QCallableObject<MessageList::Core::Model::Model(MessageList::Core::View*)::<lambda()>,
QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *,
void **, bool *) (which=1, this_=0x555555b8c010, r=0x55555589ca00,
a=0x7fffffffd1c0, ret=0x0) at
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:547
#22 0x00007fffe98cbee9 in QtPrivate::QSlotObjectBase::call (a=0x7fffffffd1c0,
r=<optimized out>, this=0x555555b8c010, this=<optimized out>, r=<optimized
out>, a=<optimized out>)
    at /workspace/build/src/corelib/kernel/qobjectdefs_impl.h:461
#23 doActivate<false> (sender=0x5555558a6108, signal_index=3,
argv=0x7fffffffd1c0) at /workspace/build/src/corelib/kernel/qobject.cpp:4272
#24 0x00007fffe9876a6e in QMetaObject::activate<void, QTimer::QPrivateSignal>
(ret=0x0, local_signal_index=0, mo=<optimized out>, sender=<optimized out>)
    at /workspace/build/src/corelib/kernel/qobjectdefs.h:319
#25 QTimer::timeout (this=<optimized out>, _t1=...) at
/workspace/build/obj-x86_64-linux-gnu/src/corelib/Core_autogen/include/moc_qtimer.cpp:182
#26 0x00007fffe9860bae in QObject::event (this=0x5555558a6108,
e=0x7fffffffd330) at /workspace/build/src/corelib/kernel/qobject.cpp:1388
#27 0x00007fffeae6dcda in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x5555558a6108, e=0x7fffffffd330) at
/workspace/build/src/widgets/kernel/qapplication.cpp:3305
#28 0x00007fffe99039c8 in QCoreApplication::notifyInternal2
(receiver=0x5555558a6108, event=0x7fffffffd330) at
/workspace/build/src/corelib/kernel/qcoreapplication.cpp:1109
#29 0x00007fffe97d0fda in QTimerInfoList::activateTimers (this=0x5555556bda60)
at /workspace/build/src/corelib/kernel/qtimerinfo_unix.cpp:426
#30 0x00007fffe96baf04 in timerSourceDispatch (source=<optimized out>) at
/workspace/build/src/corelib/kernel/qeventdispatcher_glib.cpp:152
#31 idleTimerSourceDispatch (source=<optimized out>) at
/workspace/build/src/corelib/kernel/qeventdispatcher_glib.cpp:199
#32 0x00007fffe3ca2585 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fffe3d01977 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fffe3ca1a23 in g_main_context_iteration () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fffe96b95b0 in QEventDispatcherGlib::processEvents
(this=0x55555557edf0, flags=...) at
/workspace/build/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#36 0x00007fffe9905a83 in QEventLoop::exec (this=this@entry=0x7fffffffd5a0,
flags=..., flags@entry=...) at /workspace/build/src/corelib/global/qflags.h:77
#37 0x00007fffe99080c8 in QCoreApplication::exec () at
/workspace/build/src/corelib/global/qflags.h:77
#38 0x000055555555a5d3 in main (argc=1, argv=0x7fffffffd928) at
/workspace/build/src/main.cpp:185
(gdb) thread apply all bt

If you need more information just let me know

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to