Bug 381066 - Konversation crashes with a segmentation fault
Summary: Konversation crashes with a segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: 1.7.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-06-10 14:36 UTC by Fabian Niepelt
Modified: 2020-12-02 18:20 UTC (History)
5 users (show)

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 Fabian Niepelt 2017-06-10 14:36:37 UTC
Application: konversation (1.7.2)

Qt Version: 5.7.1
Frameworks Version: 5.34.0
Operating System: Linux 4.11.3-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:
Started Konversation. Automatically connected to snoonet and freenode. Joined 2 rooms on snoonet and 3 rooms on freenode. Did not send a message, only read.

I have no specific action that triggers the crash, it can happen while writing or not doing anything with the application at.

I reported the bug at my distribution's bugtracker (https://bugzilla.opensuse.org/show_bug.cgi?id=1041130) and was advised to report this behaviour upstream.

The crash can be reproduced every time.

-- Backtrace:
Application: Konversation (konversation), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7d77251100 (LWP 13620))]

Thread 10 (Thread 0x7f7d3fae0700 (LWP 13632)):
#0  0x00007f7d6e48a5ed in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55ddcb115c00) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ddcb115bb0, cond=0x55ddcb115bd8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55ddcb115bd8, mutex=0x55ddcb115bb0) at pthread_cond_wait.c:655
#3  0x00007f7d4a4b52fb in cnd_wait (mtx=0x55ddcb115bb0, cond=0x55ddcb115bd8) at ../../include/c11/threads_posix.h:159
#4  util_queue_thread_func (input=input@entry=0x55ddcafe0500) at u_queue.c:158
#5  0x00007f7d4a4b5037 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d3fae0700) at pthread_create.c:456
#7  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 9 (Thread 0x7f7d402e1700 (LWP 13631)):
#0  0x00007f7d6e48a5ed in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55ddcb115c00) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ddcb115bb0, cond=0x55ddcb115bd8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55ddcb115bd8, mutex=0x55ddcb115bb0) at pthread_cond_wait.c:655
#3  0x00007f7d4a4b52fb in cnd_wait (mtx=0x55ddcb115bb0, cond=0x55ddcb115bd8) at ../../include/c11/threads_posix.h:159
#4  util_queue_thread_func (input=input@entry=0x55ddcb01cc80) at u_queue.c:158
#5  0x00007f7d4a4b5037 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d402e1700) at pthread_create.c:456
#7  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 8 (Thread 0x7f7d40ae2700 (LWP 13630)):
#0  0x00007f7d6e48a5ed in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55ddcb115c00) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ddcb115bb0, cond=0x55ddcb115bd8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55ddcb115bd8, mutex=0x55ddcb115bb0) at pthread_cond_wait.c:655
#3  0x00007f7d4a4b52fb in cnd_wait (mtx=0x55ddcb115bb0, cond=0x55ddcb115bd8) at ../../include/c11/threads_posix.h:159
#4  util_queue_thread_func (input=input@entry=0x55ddcb08bd20) at u_queue.c:158
#5  0x00007f7d4a4b5037 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d40ae2700) at pthread_create.c:456
#7  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 7 (Thread 0x7f7d412e3700 (LWP 13629)):
#0  0x00007f7d6e48a5ed in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55ddcb115c00) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ddcb115bb0, cond=0x55ddcb115bd8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55ddcb115bd8, mutex=0x55ddcb115bb0) at pthread_cond_wait.c:655
#3  0x00007f7d4a4b52fb in cnd_wait (mtx=0x55ddcb115bb0, cond=0x55ddcb115bd8) at ../../include/c11/threads_posix.h:159
#4  util_queue_thread_func (input=input@entry=0x55ddcafe0500) at u_queue.c:158
#5  0x00007f7d4a4b5037 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d412e3700) at pthread_create.c:456
#7  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 6 (Thread 0x7f7d41ce9700 (LWP 13628)):
#0  0x00007f7d6e48a5ed in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55ddcb01b000) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ddcb01afb0, cond=0x55ddcb01afd8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55ddcb01afd8, mutex=0x55ddcb01afb0) at pthread_cond_wait.c:655
#3  0x00007f7d4a4b52fb in cnd_wait (mtx=0x55ddcb01afb0, cond=0x55ddcb01afd8) at ../../include/c11/threads_posix.h:159
#4  util_queue_thread_func (input=input@entry=0x55ddcafa5e90) at u_queue.c:158
#5  0x00007f7d4a4b5037 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d41ce9700) at pthread_create.c:456
#7  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 5 (Thread 0x7f7d4262b700 (LWP 13627)):
#0  0x00007f7d6e48a5ed in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55ddcb1192b0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ddcb119260, cond=0x55ddcb119288) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55ddcb119288, mutex=0x55ddcb119260) at pthread_cond_wait.c:655
#3  0x00007f7d4a4b52fb in cnd_wait (mtx=0x55ddcb119260, cond=0x55ddcb119288) at ../../include/c11/threads_posix.h:159
#4  util_queue_thread_func (input=input@entry=0x55ddcb09eeb0) at u_queue.c:158
#5  0x00007f7d4a4b5037 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d4262b700) at pthread_create.c:456
#7  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 4 (Thread 0x7f7d5a002700 (LWP 13624)):
#0  0x00007f7d6ff53dfd in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f7d6a6d27e0 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7d6a68e7cb in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7d6a68ec90 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7d6a68edfc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f7d70b96afb in QEventDispatcherGlib::processEvents (this=0x7f7d4c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f7d70b3dd5a in QEventLoop::exec (this=this@entry=0x7f7d5a001cf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007f7d70960afa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#8  0x00007f7d709657cc in QThreadPrivate::start (arg=0x55ddcae93350) at thread/qthread_unix.cpp:368
#9  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d5a002700) at pthread_create.c:456
#10 0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 3 (Thread 0x7f7d5b41a700 (LWP 13623)):
#0  0x00007f7d6a68e1f8 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f7d6a68ec1b in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7d6a68edfc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7d70b96afb in QEventDispatcherGlib::processEvents (this=0x7f7d540008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f7d70b3dd5a in QEventLoop::exec (this=this@entry=0x7f7d5b419cc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f7d70960afa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007f7d70fa9e05 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f7d709657cc in QThreadPrivate::start (arg=0x7f7d7121ad20) at thread/qthread_unix.cpp:368
#8  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d5b41a700) at pthread_create.c:456
#9  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7f7d623cc700 (LWP 13622)):
#0  0x00007f7d6ff5808d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f7d6c83b387 in poll (__timeout=-1, __nfds=1, __fds=0x7f7d623cbbf8) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x55ddcade3110, cond=cond@entry=0x55ddcade3150, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:479
#3  0x00007f7d6c83d17a in xcb_wait_for_event (c=0x55ddcade3110) at xcb_in.c:693
#4  0x00007f7d651857e9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#5  0x00007f7d709657cc in QThreadPrivate::start (arg=0x55ddcadf6160) at thread/qthread_unix.cpp:368
#6  0x00007f7d6e4844e7 in start_thread (arg=0x7f7d623cc700) at pthread_create.c:456
#7  0x00007f7d6ff61a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7f7d77251100 (LWP 13620)):
[KCrash Handler]
#6  0x00007f7d70b47df7 in QMetaObject::cast (this=0x7f7d721a0f80 <QAction::staticMetaObject>, obj=obj@entry=0x55ddcbb04090) at kernel/qmetaobject.cpp:366
#7  0x00007f7d70b47e35 in QMetaObject::cast (this=<optimized out>, obj=obj@entry=0x55ddcbb04090) at kernel/qmetaobject.cpp:355
#8  0x00007f7d74ff24df in qobject_cast<QAction*> (object=0x55ddcbb04090) at /usr/include/qt5/QtCore/qobject.h:495
#9  KActionConflictDetector::eventFilter (this=0x55ddcae49fd0, watched=0x55ddcbb04090, event=0x55ddcbb1dbe0) at /usr/src/debug/kxmlgui-5.34.0/src/kactionconflictdetector.cpp:44
#10 0x00007f7d70b3f6fc in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=this@entry=0x55ddcadc5ab0, receiver=receiver@entry=0x55ddcbb04090, event=event@entry=0x55ddcbb1dbe0) at kernel/qcoreapplication.cpp:1081
#11 0x00007f7d71ad58e8 in QApplicationPrivate::notify_helper (this=this@entry=0x55ddcadc5ab0, receiver=receiver@entry=0x55ddcbb04090, e=e@entry=0x55ddcbb1dbe0) at kernel/qapplication.cpp:3774
#12 0x00007f7d71adcf84 in QApplication::notify (this=0x7ffe361587d0, receiver=0x55ddcbb04090, e=0x55ddcbb1dbe0) at kernel/qapplication.cpp:3556
#13 0x00007f7d70b3fb68 in QCoreApplication::notifyInternal2 (receiver=0x55ddcbb04090, event=event@entry=0x55ddcbb1dbe0) at kernel/qcoreapplication.cpp:988
#14 0x00007f7d70b41d2d in QCoreApplication::sendEvent (event=0x55ddcbb1dbe0, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#15 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55ddca9be480) at kernel/qcoreapplication.cpp:1649
#16 0x00007f7d70b422b8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503
#17 0x00007f7d70b966c3 in postEventSourceDispatch (s=0x55ddcae490c0) at kernel/qeventdispatcher_glib.cpp:276
#18 0x00007f7d6a68eb37 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f7d6a68ed68 in ?? () from /usr/lib64/libglib-2.0.so.0
#20 0x00007f7d6a68edfc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f7d70b96adf in QEventDispatcherGlib::processEvents (this=0x55ddcae4c7c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#22 0x00007f7d70b3dd5a in QEventLoop::exec (this=this@entry=0x7ffe361586c0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#23 0x00007f7d70b4632c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#24 0x000055ddc95329b0 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konversation-1.7.2/src/main.cpp:157

Reported using DrKonqi
Comment 1 Tore Havn 2017-06-13 21:17:29 UTC
Same problem happens for me.

Application: Konversation 1.7.2
Qt version: 5.7.1
Frameworks version: 5.35.0
Kernel version: 4.4.0-79-generic x86_64
Distribution: KDE neon 5.10

Description:
This has actually been happening for a few months, but I had mostly decided to blame my filesystem (btrfs), which was experiencing problems in general. Those have been fixed, and the problem persists.

I have configured it to automatically connect to multiple servers and channels at startup (5 servers and ~20 channels). I usually leave my computer on during the night, and every morning Konversation has segfaulted. Restarting it would only help for about an hour or so before segfaulting again.

I recently emptied all my old irc logs and this seems to have made Konversation last a few hours more, but this morning it had once again segfaulted.

The program is usually segfaults while it is minimized or I'm sleeping, so no user action is taken to make it happen. There's no pattern in usage before it segfaults, as far as I can tell.

-- Backtrace (drkonqi): --

Application: Konversation (konversation), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6856bff8c0 (LWP 4719))]

Thread 4 (Thread 0x7f6850cca700 (LWP 4723)):
#0  0x00007f685d197a79 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f685d152929 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f685d1532bb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f685d15349c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6862a8675b in QEventDispatcherGlib::processEvents (this=0x7f68480008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f6862a310ba in QEventLoop::exec (this=this@entry=0x7f6850cc9d00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007f6862860f64 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#7  0x00007f6862865b48 in QThreadPrivate::start (arg=0x2c52f20) at thread/qthread_unix.cpp:368
#8  0x00007f68607a46ba in start_thread (arg=0x7f6850cca700) at pthread_create.c:333
#9  0x00007f6861e6982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f68520e2700 (LWP 4722)):
#0  0x00007f6861e5db5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f685d15338c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f685d15349c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6862a8675b in QEventDispatcherGlib::processEvents (this=0x7f68440008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f6862a310ba in QEventLoop::exec (this=this@entry=0x7f68520e1cd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f6862860f64 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007f6862c94735 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f6862865b48 in QThreadPrivate::start (arg=0x7f6862d08d60) at thread/qthread_unix.cpp:368
#8  0x00007f68607a46ba in start_thread (arg=0x7f68520e2700) at pthread_create.c:333
#9  0x00007f6861e6982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f68542a5700 (LWP 4721)):
#0  0x00007f6861e5db5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f685f22fc62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f685f2318d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f68567fdd79 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f6862865b48 in QThreadPrivate::start (arg=0x2be13e0) at thread/qthread_unix.cpp:368
#5  0x00007f68607a46ba in start_thread (arg=0x7f68542a5700) at pthread_create.c:333
#6  0x00007f6861e6982d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f6856bff8c0 (LWP 4719)):
[KCrash Handler]
#6  0x00007f68628ec19f in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=<optimized out>) at /usr/include/c++/5/bits/atomic_base.h:396
#7  QAtomicOps<int>::load<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/arch/qatomic_cxx11.h:227
#8  QBasicAtomicInteger<int>::load (this=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:99
#9  QtPrivate::RefCount::ref (this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:55
#10 QString::operator= (this=this@entry=0x7ffd70b1a270, other=...) at tools/qstring.cpp:1814
#11 0x00000000005124af in InputFilter::parseClientCommand (this=this@entry=0x3124810, prefix=..., command=..., parameterList=..., messageTags=...) at /workspace/build/src/irc/inputfilter.cpp:584
#12 0x000000000051d8f8 in InputFilter::parseLine (this=this@entry=0x3124810, line=...) at /workspace/build/src/irc/inputfilter.cpp:127
#13 0x00000000004c9a64 in Server::processIncomingData (this=0x3124700) at /workspace/build/src/irc/server.cpp:1341
#14 0x0000000000630979 in Server::qt_static_metacall (_o=0x3124700, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /workspace/build/obj-x86_64-linux-gnu/src/moc_server.cpp:749
#15 0x00007f6862a5de89 in QMetaObject::activate (sender=sender@entry=0x3124768, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3740
#16 0x00007f6862a5e837 in QMetaObject::activate (sender=sender@entry=0x3124768, m=m@entry=0x7f6862c78700 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3602
#17 0x00007f6862ad6b50 in QTimer::timeout (this=this@entry=0x3124768) at .moc/moc_qtimer.cpp:198
#18 0x00007f6862a6a7a8 in QTimer::timerEvent (this=0x3124768, e=<optimized out>) at kernel/qtimer.cpp:254
#19 0x00007f6862a5ed53 in QObject::event (this=0x3124768, e=<optimized out>) at kernel/qobject.cpp:1285
#20 0x00007f686339cecc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x3124768, e=0x7ffd70b1a930) at kernel/qapplication.cpp:3799
#21 0x00007f68633a48c6 in QApplication::notify (this=0x7ffd70b1acd0, receiver=0x3124768, e=0x7ffd70b1a930) at kernel/qapplication.cpp:3556
#22 0x00007f6862a330c8 in QCoreApplication::notifyInternal2 (receiver=0x3124768, event=event@entry=0x7ffd70b1a930) at kernel/qcoreapplication.cpp:988
#23 0x00007f6862a8568e in QCoreApplication::sendEvent (event=0x7ffd70b1a930, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#24 QTimerInfoList::activateTimers (this=0x2c19bb0) at kernel/qtimerinfo_unix.cpp:644
#25 0x00007f6862a85bc1 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#26 0x00007f685d153197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f685d1533f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f685d15349c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f6862a8673f in QEventDispatcherGlib::processEvents (this=0x2c175e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f6862a310ba in QEventLoop::exec (this=this@entry=0x7ffd70b1ab80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#31 0x00007f6862a396cc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#32 0x000000000045d267 in main (argc=1, argv=<optimized out>) at /workspace/build/src/main.cpp:157
Comment 2 Peter Simonsson 2017-06-14 05:15:50 UTC
(In reply to Tore Havn from comment #1)
> Same problem happens for me.
> 
> Application: Konversation 1.7.2
> Qt version: 5.7.1
> Frameworks version: 5.35.0
> Kernel version: 4.4.0-79-generic x86_64
> Distribution: KDE neon 5.10
> 
> Description:
> This has actually been happening for a few months, but I had mostly decided
> to blame my filesystem (btrfs), which was experiencing problems in general.
> Those have been fixed, and the problem persists.
> 
> I have configured it to automatically connect to multiple servers and
> channels at startup (5 servers and ~20 channels). I usually leave my
> computer on during the night, and every morning Konversation has segfaulted.
> Restarting it would only help for about an hour or so before segfaulting
> again.
> 
> I recently emptied all my old irc logs and this seems to have made
> Konversation last a few hours more, but this morning it had once again
> segfaulted.
> 
> The program is usually segfaults while it is minimized or I'm sleeping, so
> no user action is taken to make it happen. There's no pattern in usage
> before it segfaults, as far as I can tell.
> 
> Thread 1 (Thread 0x7f6856bff8c0 (LWP 4719)):
> [KCrash Handler]
> #6  0x00007f68628ec19f in std::__atomic_base<int>::load
> (__m=std::memory_order_relaxed, this=<optimized out>) at
> /usr/include/c++/5/bits/atomic_base.h:396
> #7  QAtomicOps<int>::load<int> (_q_value=...) at
> ../../include/QtCore/../../src/corelib/arch/qatomic_cxx11.h:227
> #8  QBasicAtomicInteger<int>::load (this=<optimized out>) at
> ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:99
> #9  QtPrivate::RefCount::ref (this=<optimized out>) at
> ../../include/QtCore/../../src/corelib/tools/qrefcount.h:55
> #10 QString::operator= (this=this@entry=0x7ffd70b1a270, other=...) at
> tools/qstring.cpp:1814
> #11 0x00000000005124af in InputFilter::parseClientCommand
> (this=this@entry=0x3124810, prefix=..., command=..., parameterList=...,
> messageTags=...) at /workspace/build/src/irc/inputfilter.cpp:584
> #12 0x000000000051d8f8 in InputFilter::parseLine (this=this@entry=0x3124810,
> line=...) at /workspace/build/src/irc/inputfilter.cpp:127
> #13 0x00000000004c9a64 in Server::processIncomingData (this=0x3124700) at

This isn't the same bug... This should have been fixed already see bug 378854.
Comment 3 wintonian 2017-06-14 14:22:11 UTC
Same issues as the original reporter with the same servers open. However I am using Fedora 25 and have more rooms open.

I updated to ver. konversation.x86_64 1.7.2-1.fc25 and the issue remains.

/var/log/messages keeps reporting the following at about the same time as the crash:

QXcbConnection: XCB error: 3 (BadWindow), sequence: 60229, resource id: 50331711, major code: 18 (ChangeProperty), minor code: 0


====Backtrace====

Application: Konversation (konversation), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f88d5899940 (LWP 4904))]

Thread 4 (Thread 0x7f88c35ef700 (LWP 4908)):
#0  0x00007f88e14f9f3d in poll () from /lib64/libc.so.6
#1  0x00007f88da934166 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f88da93427c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f88e23006eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f88e22b168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f88e210e5e3 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f88e21129ca in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#7  0x00007f88e00f773a in start_thread () from /lib64/libpthread.so.0
#8  0x00007f88e1505e7f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f88c8fe4700 (LWP 4907)):
#0  0x00007f88da979894 in g_mutex_unlock () from /lib64/libglib-2.0.so.0
#1  0x00007f88da933690 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#2  0x00007f88da93408b in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x00007f88da93427c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007f88e23006eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f88e22b168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f88e210e5e3 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00007f88e250dfb9 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#8  0x00007f88e21129ca in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f88e00f773a in start_thread () from /lib64/libpthread.so.0
#10 0x00007f88e1505e7f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f88cafc1700 (LWP 4906)):
#0  0x00007f88e14f9f3d in poll () from /lib64/libc.so.6
#1  0x00007f88de4e1d10 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f88de4e3aa9 in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f88cec12d69 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f88e21129ca in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f88e00f773a in start_thread () from /lib64/libpthread.so.0
#6  0x00007f88e1505e7f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f88d5899940 (LWP 4904)):
[KCrash Handler]
#6  0x00007f88e218c8af in QString::operator=(QString const&) () from /lib64/libQt5Core.so.5
#7  0x00005615693195a7 in InputFilter::parseClientCommand(QString const&, QString const&, QStringList&, QHash<QString, QString>) ()
#8  0x0000561569324968 in InputFilter::parseLine(QString const&) ()
#9  0x00005615692d0554 in Server::processIncomingData() ()
#10 0x0000561569437fc9 in Server::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#11 0x00007f88e22d9721 in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#12 0x00007f88e22e5c08 in QTimer::timerEvent(QTimerEvent*) () from /lib64/libQt5Core.so.5
#13 0x00007f88e22da79b in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#14 0x00007f88e2b7eecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007f88e2b86671 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f88e22b26fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#17 0x00007f88e22ffceb in QTimerInfoList::activateTimers() () from /lib64/libQt5Core.so.5
#18 0x00007f88e2300241 in timerSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#19 0x00007f88da933e52 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#20 0x00007f88da9341d0 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#21 0x00007f88da93427c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#22 0x00007f88e23006cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#23 0x00007f88e22b168a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#24 0x00007f88e22b918c in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#25 0x0000561569263767 in main ()
Comment 4 Kishore Gopalakrishnan 2017-06-14 16:38:30 UTC
Is this bug related to https://bugs.kde.org/show_bug.cgi?id=378854 ?
Comment 5 wintonian 2017-06-14 16:47:34 UTC
Possibly, but I tried (and installed) HexChat with exactly the same results as reported at red Hat; https://bugzilla.redhat.com/show_bug.cgi?id=1461502.

Interestingly I am currently using an older kernel i.e. 4.10.5-200.fc25.x86_64, and not had any crashes yet.
Comment 6 wintonian 2017-06-14 16:56:37 UTC
Okey I spoke too soon - it's just crashed again :(
Comment 7 Christoph Feck 2017-06-14 23:41:10 UTC
Please do not mix unrelated bug reports.

The crash reported here looks caused by conflicting shortcut settings. It should not crash, though, but show a dialog instead.

To debug this, try changing locale/language or (if you had reconfigured shortcuts) starting with a clean ~/.local/share/kxmlgui5/konversation/konversationui.rc configuration.
Comment 8 Fabian Niepelt 2017-06-15 09:06:37 UTC
I don't have a ~/.local/share/kxmlgui5/konversation/konversationui.rc , so I'll try launching Konversation with LANG=C and report back.
Comment 9 Fabian Niepelt 2017-06-15 10:07:12 UTC
Crashes even with LANG=C. I also tried setting my shortcuts to Defaults, but that didn't solve the probleme either.
Comment 10 Kai Wb. 2017-06-29 08:10:54 UTC
I've a similar looking crash. I just have to idle for a while with a couple of Freenode and one Snoonet channels open and eventually it'll crash (most often, when Konversation is in the background, sometimes when it does get focus).

My system:
- Debian GNU/Linux, Testing
- Qt: 5.7.1 (5.7.1+dfsg-3+b1)
- Konversation: 1.7.2 (1.7.2-1)

My backtrace is:
> Application: Konversation (konversation), signal: Segmentation fault
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [Current thread is 1 (Thread 0x7f44a27b2fc0 (LWP 7509))]
> 
> Thread 4 (Thread 0x7f449d882700 (LWP 7512)):
> #0  0x00007f44ae92363d in poll () at ../sysdeps/unix/syscall-template.S:84
> #1  0x00007f44a9b9cc16 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f4494002e70, timeout=<optimized out>, context=0x7f4494000990) at ././glib/gmain.c:4271
> #2  g_main_context_iterate (context=context@entry=0x7f4494000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ././glib/gmain.c:3967
> #3  0x00007f44a9b9cd2c in g_main_context_iteration (context=0x7f4494000990, may_block=may_block@entry=1) at ././glib/gmain.c:4033
> #4  0x00007f44af53b06b in QEventDispatcherGlib::processEvents (this=0x7f44940008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
> #5  0x00007f44af4e49ca in QEventLoop::exec (this=this@entry=0x7f449d881c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
> #6  0x00007f44af3120f3 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
> #7  0x00007f44af316da8 in QThreadPrivate::start (arg=0x55c9e7fff270) at thread/qthread_unix.cpp:368
> #8  0x00007f44ad272494 in start_thread (arg=0x7f449d882700) at pthread_create.c:333
> #9  0x00007f44ae92ca8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
> 
> Thread 3 (Thread 0x7f449ecc3700 (LWP 7511)):
> #0  0x00007f44ae92363d in poll () at ../sysdeps/unix/syscall-template.S:84
> #1  0x00007f44a9b9cc16 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f449001c830, timeout=<optimized out>, context=0x7f4490000990) at ././glib/gmain.c:4271
> #2  g_main_context_iterate (context=context@entry=0x7f4490000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ././glib/gmain.c:3967
> #3  0x00007f44a9b9cd2c in g_main_context_iteration (context=0x7f4490000990, may_block=may_block@entry=1) at ././glib/gmain.c:4033
> #4  0x00007f44af53b06b in QEventDispatcherGlib::processEvents (this=0x7f44900008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
> #5  0x00007f44af4e49ca in QEventLoop::exec (this=this@entry=0x7f449ecc2c50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
> #6  0x00007f44af3120f3 in QThread::exec (this=this@entry=0x7f44af7c1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507
> #7  0x00007f44af74c6d5 in QDBusConnectionManager::run (this=0x7f44af7c1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
> #8  0x00007f44af316da8 in QThreadPrivate::start (arg=0x7f44af7c1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
> #9  0x00007f44ad272494 in start_thread (arg=0x7f449ecc3700) at pthread_create.c:333
> #10 0x00007f44ae92ca8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
> 
> Thread 2 (Thread 0x7f44a067f700 (LWP 7510)):
> #0  0x00007f44ae92363d in poll () at ../sysdeps/unix/syscall-template.S:84
> #1  0x00007f44abcf5150 in poll (__timeout=-1, __nfds=1, __fds=0x7f44a067eb80) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
> #2  _xcb_conn_wait (c=c@entry=0x55c9e7f87940, cond=cond@entry=0x55c9e7f87980, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:479
> #3  0x00007f44abcf6ee9 in xcb_wait_for_event (c=0x55c9e7f87940) at ../../src/xcb_in.c:693
> #4  0x00007f44a23a3b69 in QXcbEventReader::run (this=0x55c9e7f920c0) at qxcbconnection.cpp:1343
> #5  0x00007f44af316da8 in QThreadPrivate::start (arg=0x55c9e7f920c0) at thread/qthread_unix.cpp:368
> #6  0x00007f44ad272494 in start_thread (arg=0x7f44a067f700) at pthread_create.c:333
> #7  0x00007f44ae92ca8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
> 
> Thread 1 (Thread 0x7f44a27b2fc0 (LWP 7509)):
> [KCrash Handler]
> #6  0x00007f44af39d00f in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=<optimized out>) at /usr/include/c++/6/bits/atomic_base.h:396
> #7  QAtomicOps<int>::load<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/arch/qatomic_cxx11.h:227
> #8  QBasicAtomicInteger<int>::load (this=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:99
> #9  QtPrivate::RefCount::ref (this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:55
> #10 QString::operator= (this=this@entry=0x7fff3c8d1718, other=...) at tools/qstring.cpp:1814
> #11 0x000055c9e7073667 in InputFilter::parseClientCommand (this=this@entry=0x55c9e847e290, prefix=..., command=..., parameterList=..., messageTags=...) at ./src/irc/inputfilter.cpp:584
> #12 0x000055c9e707ea28 in InputFilter::parseLine (this=this@entry=0x55c9e847e290, line=...) at ./src/irc/inputfilter.cpp:127
> #13 0x000055c9e702ac14 in Server::processIncomingData (this=0x55c9e847e180) at ./src/irc/server.cpp:1341
> #14 0x000055c9e7190f99 in Server::qt_static_metacall (_o=0x55c9e847e180, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./obj-x86_64-linux-gnu/src/konversation_automoc.dir/moc_server_GPKFK6NSEO43KL.cpp:749
> #15 0x00007f44af5125e9 in QMetaObject::activate (sender=sender@entry=0x55c9e847e1e8, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3740
> #16 0x00007f44af512f07 in QMetaObject::activate (sender=sender@entry=0x55c9e847e1e8, m=m@entry=0x7f44af730760 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3602
> #17 0x00007f44af58c780 in QTimer::timeout (this=this@entry=0x55c9e847e1e8) at .moc/moc_qtimer.cpp:198
> #18 0x00007f44af51ef78 in QTimer::timerEvent (this=0x55c9e847e1e8, e=<optimized out>) at kernel/qtimer.cpp:254
> #19 0x00007f44af513453 in QObject::event (this=0x55c9e847e1e8, e=<optimized out>) at kernel/qobject.cpp:1285
> #20 0x00007f44afe55b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #21 0x00007f44afe5d341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #22 0x00007f44af4e69e0 in QCoreApplication::notifyInternal2 (receiver=0x55c9e847e1e8, event=event@entry=0x7fff3c8d1d80) at kernel/qcoreapplication.cpp:988
> #23 0x00007f44af539fee in QCoreApplication::sendEvent (event=0x7fff3c8d1d80, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
> #24 QTimerInfoList::activateTimers (this=0x55c9e7fc29b0) at kernel/qtimerinfo_unix.cpp:644
> #25 0x00007f44af53a511 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
> #26 0x00007f44a9b9ca17 in g_main_dispatch (context=0x7f44980016f0) at ././glib/gmain.c:3234
> #27 g_main_context_dispatch (context=context@entry=0x7f44980016f0) at ././glib/gmain.c:3899
> #28 0x00007f44a9b9cc80 in g_main_context_iterate (context=context@entry=0x7f44980016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ././glib/gmain.c:3972
> #29 0x00007f44a9b9cd2c in g_main_context_iteration (context=0x7f44980016f0, may_block=may_block@entry=1) at ././glib/gmain.c:4033
> #30 0x00007f44af53b04f in QEventDispatcherGlib::processEvents (this=0x55c9e7fc7400, flags=...) at kernel/qeventdispatcher_glib.cpp:423
> #31 0x00007f44af4e49ca in QEventLoop::exec (this=this@entry=0x7fff3c8d1fd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
> #32 0x00007f44af4ed13c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
> #33 0x000055c9e6fbe269 in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:157

Let me know, if you need something else.
Comment 11 Christoph Feck 2017-07-15 00:17:58 UTC
Comment #10 is bug 378854.
Comment 12 Kai Wb. 2017-07-17 10:40:06 UTC
(In reply to Christoph Feck from comment #11)
> Comment #10 is bug 378854.

Thanks for the pointer!
Comment 13 Justin Zobel 2020-12-02 06:38:55 UTC
Thank you for the many reports.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thank you.
Comment 14 Fabian Niepelt 2020-12-02 18:20:27 UTC
This is not happening to me anymore so I'm marking it as resolved.