Bug 397335 - Kontact crashes randomly when closing
Summary: Kontact crashes randomly when closing
Status: RESOLVED UPSTREAM
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 5.7.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-08-10 10:31 UTC by wengahias
Modified: 2018-09-05 02:27 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 wengahias 2018-08-10 10:31:27 UTC
Application: kontact (5.7.3)

Qt Version: 5.9.5
Frameworks Version: 5.47.0
Operating System: Linux 4.15.0-30-generic x86_64
Distribution: Ubuntu 18.04.1 LTS

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

Kontact crahses randomly when closing it with the close window close button.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6824c00080 (LWP 19288))]

Thread 6 (Thread 0x7f66921e8700 (LWP 21446)):
#0  0x00007f6820e81ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7f66921e77e0, expected=0, futex_word=0x7f67d40045f0) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  0x00007f6820e81ed9 in __pthread_cond_wait_common (abstime=0x7f66921e7880, mutex=0x7f67d40045a0, cond=0x7f67d40045c8) at pthread_cond_wait.c:533
#2  0x00007f6820e81ed9 in __pthread_cond_timedwait (cond=0x7f67d40045c8, mutex=0x7f67d40045a0, abstime=0x7f66921e7880) at pthread_cond_wait.c:667
#3  0x00007f681215f652 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x00007f6812135799 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#5  0x00007f6812135cfb in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#6  0x00007f681212e5eb in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#7  0x00007f6820e7b6db in start_thread (arg=0x7f66921e8700) at pthread_create.c:463
#8  0x00007f68213b888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f66d9f5a700 (LWP 19327)):
#0  0x00007f6820e819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5603c659d8e0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f6820e819f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x5603c659d890, cond=0x5603c659d8b8) at pthread_cond_wait.c:502
#2  0x00007f6820e819f3 in __pthread_cond_wait (cond=0x5603c659d8b8, mutex=0x5603c659d890) at pthread_cond_wait.c:655
#3  0x00007f6821cdb59b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f6821cd3c0b in QSemaphore::acquire(int) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f66daf4880c in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/texttospeech/libqttexttospeech_flite.so
#6  0x00007f6821cda16d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f6820e7b6db in start_thread (arg=0x7f66d9f5a700) at pthread_create.c:463
#8  0x00007f68213b888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f67a4ff9700 (LWP 19319)):
#0  0x00007f6820e819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f680bf4dfb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f6820e819f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f680bf4df68, cond=0x7f680bf4df90) at pthread_cond_wait.c:502
#2  0x00007f6820e819f3 in __pthread_cond_wait (cond=0x7f680bf4df90, mutex=0x7f680bf4df68) at pthread_cond_wait.c:655
#3  0x00007f680bc575f4 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f680bc57639 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f6820e7b6db in start_thread (arg=0x7f67a4ff9700) at pthread_create.c:463
#6  0x00007f68213b888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f67de7fc700 (LWP 19300)):
#0  0x00007f6820e819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f67de7fb738) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f6820e819f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f67de7fb6e8, cond=0x7f67de7fb710) at pthread_cond_wait.c:502
#2  0x00007f6820e819f3 in __pthread_cond_wait (cond=0x7f67de7fb710, mutex=0x7f67de7fb6e8) at pthread_cond_wait.c:655
#3  0x00007f6812126999 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x00007f68121269c7 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#5  0x00007f68121014db in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#6  0x00007f68120fdda8 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#7  0x00007f681211a77b in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#8  0x00007f68121324d6 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#9  0x00007f681212e5eb in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#10 0x00007f6820e7b6db in start_thread (arg=0x7f67de7fc700) at pthread_create.c:463
#11 0x00007f68213b888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f67e5e40700 (LWP 19291)):
#0  0x00007f68213abbf9 in __GI___poll (fds=0x7f67e001b7e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f681b0b5439 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f681b0b554c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6821f1190b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f6821eb69ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f6821cd522a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f68201fad45 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f6821cda16d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f6820e7b6db in start_thread (arg=0x7f67e5e40700) at pthread_create.c:463
#9  0x00007f68213b888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f6824c00080 (LWP 19288)):
[KCrash Handler]
#6  0x00007f6822acd4e0 in vtable for QSurface () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#7  0x00007f6822c649ab in QWidgetPrivate::deleteTLSysExtra() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f6822c697f8 in QWidget::destroy(bool, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f6822c70d68 in QWidget::~QWidget() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f6822d6db39 in QLabel::~QLabel() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f681f8e4615 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineWidgets.so.5
#12 0x00007f681f8e4649 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineWidgets.so.5
#13 0x00007f68212da041 in __run_exit_handlers (status=0, listp=0x7f6821682718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#14 0x00007f68212da13a in __GI_exit (status=<optimized out>) at exit.c:139
#15 0x00007f68212b8b9e in __libc_start_main (main=0x5603c466f630, argc=1, argv=0x7ffee4e57f88, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffee4e57f78) at ../csu/libc-start.c:344
#16 0x00005603c4670aea in _start ()

Reported using DrKonqi
Comment 1 wengahias 2018-08-10 10:44:01 UTC
same behaviour when using kmail:

this are the errors i get when starting and closing kmail from the command-line:

---
1 : "Uncaught ReferenceError: qt is not defined"
1 : "Uncaught ReferenceError: qt is not defined"
stringToMailbox: Invalid address
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
sonnet.plugins.hspell: HSpellDict::HSpellDict: Init failed
sonnet.core: Missing trigrams for languages: QSet("en_GB", "en_CA", "de_CH", "en_AU", "de_AT")
*** KMail got signal 11 (Exiting)
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmail path = /usr/bin pid = 23731
KCrash: Arguments: /usr/bin/kmail 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

[1]+  Angehalten              kmail
---
Comment 2 Christoph Feck 2018-09-05 02:27:55 UTC
The crash happens because QtWebEngine keeps a global QLabel widget. It should be destroyed before the application destructor is run.

I suggest to report it to Qt developers via https://bugreports.qt.io/