Bug 387448 - [Wayland] Konversation crash - QVector<KWayland::Client::ConnectionThread*>::reallocData (this=this@entry=0x7fffde8016b0 <KWayland::Client::ConnectionThread::Private::connections>, asize=21845
Summary: [Wayland] Konversation crash - QVector<KWayland::Client::ConnectionThread*>::...
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: 1.7.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2017-11-29 19:58 UTC by Germano Massullo
Modified: 2020-12-02 09:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Germano Massullo 2017-11-29 19:58:33 UTC
[user@machine ~]$ WAYLAND_DEBUG=1
[user@machine ~]$ gdb konversation
GNU gdb (GDB) Fedora 8.0.1-30.fc26
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from konversation...Reading symbols from /usr/lib/debug/usr/bin/konversation.debug...done.
done.
(gdb) run
Starting program: /usr/bin/konversation 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
QObject::connect: invalid null parameter
[New Thread 0x7fffdd61d700 (LWP 12578)]
[New Thread 0x7fffd7fff700 (LWP 12579)]
[New Thread 0x7fffc9c54700 (LWP 12580)]
[New Thread 0x7fffc9312700 (LWP 12581)]
[New Thread 0x7fffc8b11700 (LWP 12582)]
[New Thread 0x7fffc8310700 (LWP 12583)]
[New Thread 0x7fffc7b0f700 (LWP 12584)]
[New Thread 0x7fffc730e700 (LWP 12585)]
[New Thread 0x7fffc6b0d700 (LWP 12586)]
[New Thread 0x7fffc6240700 (LWP 12587)]
[New Thread 0x7fffc57ed700 (LWP 12588)]
[New Thread 0x7fffc4fec700 (LWP 12589)]
[New Thread 0x7fffb7fff700 (LWP 12590)]
[New Thread 0x7fffb77fe700 (LWP 12591)]


The Wayland connection broke. Did the Wayland compositor die?
[Thread 0x7fffc6240700 (LWP 12587) exited]
[Thread 0x7fffc57ed700 (LWP 12588) exited]
[Thread 0x7fffc4fec700 (LWP 12589) exited]
[Thread 0x7fffb7fff700 (LWP 12590) exited]
[Thread 0x7fffb77fe700 (LWP 12591) exited]
[Thread 0x7fffc6b0d700 (LWP 12586) exited]
[Thread 0x7fffc730e700 (LWP 12585) exited]
[Thread 0x7fffc8310700 (LWP 12583) exited]
[Thread 0x7fffc8b11700 (LWP 12582) exited]
[Thread 0x7fffc7b0f700 (LWP 12584) exited]
[Thread 0x7fffc9312700 (LWP 12581) exited]
[Thread 0x7fffc9c54700 (LWP 12580) exited]
[Thread 0x7fffdd61d700 (LWP 12578) exited]

Thread 1 "konversation" received signal SIGSEGV, Segmentation fault.
QVector<KWayland::Client::ConnectionThread*>::reallocData (this=this@entry=0x7fffde8016b0 <KWayland::Client::ConnectionThread::Private::connections>, asize=21845, 
    aalloc=<optimized out>, options=..., options@entry=...) at /usr/include/qt5/QtCore/qvector.h:556
556                     x->size = asize;
(gdb) thread apply all backtrace

Thread 3 (Thread 0x7fffd7fff700 (LWP 12579)):
#0  0x00007ffff0f4ad2d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffea4e0579 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fffd0003070, timeout=<optimized out>, context=0x7fffd0000990) at gmain.c:4271
#2  g_main_context_iterate (context=context@entry=0x7fffd0000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3967
#3  0x00007fffea4e068c in g_main_context_iteration (context=0x7fffd0000990, may_block=may_block@entry=1) at gmain.c:4033
#4  0x00007ffff1d7247f in QEventDispatcherGlib::processEvents (this=0x7fffd00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007ffff1d2022a in QEventLoop::exec (this=this@entry=0x7fffd7ffec70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007ffff1b7199a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#7  0x00007ffff1b75c72 in QThreadPrivate::start (arg=0x555555fa3b80) at thread/qthread_unix.cpp:368
#8  0x00007fffefb4836d in start_thread (arg=0x7fffd7fff700) at pthread_create.c:456
#9  0x00007ffff0f56e1f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7fffe641b940 (LWP 12574)):
#0  QVector<KWayland::Client::ConnectionThread*>::reallocData (this=this@entry=0x7fffde8016b0 <KWayland::Client::ConnectionThread::Private::connections>, asize=21845, 
    aalloc=<optimized out>, options=..., options@entry=...) at /usr/include/qt5/QtCore/qvector.h:556
#1  0x00007fffde59d825 in QVector<KWayland::Client::ConnectionThread*>::detach (this=0x7fffde8016b0 <KWayland::Client::ConnectionThread::Private::connections>)
    at /usr/include/qt5/QtCore/qvector.h:383
#2  QVector<KWayland::Client::ConnectionThread*>::erase (this=this@entry=0x7fffde8016b0 <KWayland::Client::ConnectionThread::Private::connections>, abegin=0x55555a3772c8, 
    aend=0x55555a3772d0) at /usr/include/qt5/QtCore/qvector.h:756
#3  0x00007fffde59d498 in QVector<KWayland::Client::ConnectionThread*>::remove (i=<optimized out>, this=0x7fffde8016b0 <KWayland::Client::ConnectionThread::Private::connections>)
    at /usr/include/qt5/QtCore/qvector.h:447
#4  QVector<KWayland::Client::ConnectionThread*>::removeOne (t=@0x555555fa9f68: 0x555555f6dfb0, this=0x7fffde8016b0 <KWayland::Client::ConnectionThread::Private::connections>)
    at /usr/include/qt5/QtCore/qvector.h:179
#5  KWayland::Client::ConnectionThread::Private::~Private (this=0x555555fa9f20, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.38.0/src/client/connection_thread.cpp:88
#6  0x00007fffde59d4d5 in QScopedPointerDeleter<KWayland::Client::ConnectionThread::Private>::cleanup (pointer=0x555555fa9f20) at /usr/include/qt5/QtCore/qscopedpointer.h:60
#7  QScopedPointer<KWayland::Client::ConnectionThread::Private, QScopedPointerDeleter<KWayland::Client::ConnectionThread::Private> >::~QScopedPointer (this=0x555555f6dfc0, 
    __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qscopedpointer.h:107
---Type <return> to continue, or q <return> to quit---
#8  KWayland::Client::ConnectionThread::~ConnectionThread (this=0x555555f6dfb0, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.38.0/src/client/connection_thread.cpp:200
#9  0x00007fffde59d4f9 in KWayland::Client::ConnectionThread::~ConnectionThread (this=0x555555f6dfb0, __in_chrg=<optimized out>)
    at /usr/src/debug/kwayland-5.38.0/src/client/connection_thread.cpp:203
#10 0x00007ffff1d50518 in QObjectPrivate::deleteChildren (this=this@entry=0x555555f9fc20) at kernel/qobject.cpp:1992
#11 0x00007ffff1d513f2 in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1022
#12 0x00007fffdc2097e9 in Poller::~Poller (this=0x555555fafaf0, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-integration-5.10.5/src/idletime/poller.h:41
#13 0x00007ffff1d18e27 in QLibraryPrivate::unload (this=this@entry=0x555555f6e250, flag=flag@entry=QLibraryPrivate::NoUnloadSys) at plugin/qlibrary.cpp:562
#14 0x00007ffff1d199e7 in QLibraryStore::cleanup () at plugin/qlibrary.cpp:403
#15 qlibraryCleanup () at plugin/qlibrary.cpp:427
#16 (anonymous namespace)::qlibraryCleanup_dtor_class_::~qlibraryCleanup_dtor_class_ (this=<optimized out>, __in_chrg=<optimized out>) at plugin/qlibrary.cpp:429
#17 0x00007ffff0e81335 in __cxa_finalize (d=0x7ffff1f68f20) at cxa_finalize.c:56
#18 0x00007ffff1b50723 in __do_global_dtors_aux () from /lib64/libQt5Core.so.5
#19 0x00007fffffffd190 in ?? ()
#20 0x00007ffff7de74b3 in _dl_fini () at dl-fini.c:235
Backtrace stopped: frame did not save the PC
(gdb) 
(gdb)
Comment 1 Justin Zobel 2020-12-02 06:36:59 UTC
Thank you for the report.

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 2 Germano Massullo 2020-12-02 08:40:03 UTC
I am not able to reproduce the crash
konversation 1.7.6
Comment 3 Justin Zobel 2020-12-02 09:34:29 UTC
Thanks Germano. I'm going to mark this bug as resolved, if the issue returns feel free to reopen this report.