[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#849877: konsole --version crashes



Package: konsole
Version: 4:16.08.2-2
Severity: normal

When I run "konsole --version", it crashes with the following errors

rajulocal@hogwarts ~ % konsole --version
konsole 16.08.2
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = konsole path = /usr/bin pid = 12566
KCrash: Arguments: /usr/bin/konsole --version
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from
kdeinit
sock_file=/run/user/1000/kdeinit5__0
zsh: suspended (signal)  konsole --version


Here is the backtrace from the popup window

Application: konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f2134ecc940 (LWP 12589))]

Thread 3 (Thread 0x7f2131027700 (LWP 12591)):
[KCrash Handler]
#6  0x00007f214326b3ef in QObject::disconnect (sender=0x55da6ad15e60,
signal=signal@entry=0x0, receiver=receiver@entry=0x7f21240030f0,
method=method@entry=0x0) at kernel/qobject.cpp:2956
#7  0x00007f2146c9ed50 in QObject::disconnect (member=0x0,
receiver=0x7f21240030f0, this=<optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:336
#8  QDBusConnectionPrivate::closeConnection (this=this@entry=0x7f21240030f0) at
qdbusintegrator.cpp:1145
#9  0x00007f2146c8b7e2 in QDBusConnectionManager::run (this=0x7f2146d00d60
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
qdbusconnection.cpp:188
#10 0x00007f214306bda8 in QThreadPrivate::start (arg=0x7f2146d00d60 <(anonymous
namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
thread/qthread_unix.cpp:368
#11 0x00007f213f8d1464 in start_thread (arg=0x7f2131027700) at
pthread_create.c:333
#12 0x00007f21466989df in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7f2132f0a700 (LWP 12590)):
#0  0x00007f214668f56d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f213fcf6150 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f213fcf7ee9 in xcb_wait_for_event () from /usr/lib/x86_64-linux-
gnu/libxcb.so.1
#3  0x00007f2134c2fb69 in ?? () from /usr/lib/x86_64-linux-
gnu/libQt5XcbQpa.so.5
#4  0x00007f214306bda8 in QThreadPrivate::start (arg=0x55da6acba2b0) at
thread/qthread_unix.cpp:368
#5  0x00007f213f8d1464 in start_thread (arg=0x7f2132f0a700) at
pthread_create.c:333
#6  0x00007f21466989df in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7f2134ecc940 (LWP 12589)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f214306cc6b in QWaitConditionPrivate::wait
(time=18446744073709551615, this=0x55da6ad01ff0) at
thread/qwaitcondition_unix.cpp:143
#2  QWaitCondition::wait (this=this@entry=0x55da6ad01fd0,
mutex=mutex@entry=0x55da6ad01fb0, time=time@entry=18446744073709551615) at
thread/qwaitcondition_unix.cpp:215
#3  0x00007f214306b94e in QThread::wait (this=this@entry=0x7f2146d00d60
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>,
time=time@entry=18446744073709551615) at thread/qthread_unix.cpp:698
#4  0x00007f2146c8b546 in QDBusConnectionManager::~QDBusConnectionManager
(this=0x7f2146d00d60 <(anonymous
namespace)::Q_QGS__q_manager::innerFunction()::holder>, __in_chrg=<optimized
out>) at qdbusconnection.cpp:157
#5  0x00007f2146c8b5d9 in (anonymous
namespace)::Q_QGS__q_manager::Holder::~Holder (this=<optimized out>,
__in_chrg=<optimized out>) at qdbusconnection.cpp:76
#6  0x00007f21465e5920 in __run_exit_handlers (status=status@entry=0,
listp=0x7f21469485d8 <__exit_funcs>,
run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at
exit.c:83
#7  0x00007f21465e597a in __GI_exit (status=status@entry=0) at exit.c:105
#8  0x00007f214307b473 in QCommandLineParser::showVersion
(this=this@entry=0x55da6ad2b710) at tools/qcommandlineparser.cpp:1004
#9  0x00007f214307c6fb in QCommandLineParser::process
(this=this@entry=0x55da6ad2b710, arguments=...) at
tools/qcommandlineparser.cpp:596
#10 0x00007f214307c75f in QCommandLineParser::process
(this=this@entry=0x55da6ad2b710, app=...) at tools/qcommandlineparser.cpp:611
#11 0x00007f21469759cb in kdemain (argc=<optimized out>, argv=<optimized out>)
at ./src/main.cpp:116
#12 0x00007f21465d02b1 in __libc_start_main (main=0x55da6a154780 <main>,
argc=2, argv=0x7ffc2d688398, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffc2d688388) at ../csu/libc-start.c:291
#13 0x000055da6a1547ba in _start ()


I am able to reproduce the problem consistently. It crashes everytime I run
konsole --version. However, the popup window that gives the backtrace comes up
sometimes and does not come up some other times. When there is no popup window,
I get the following backtrace from gdb

% gdb konsole
GNU gdb (Debian 7.11.1-2+b1) 7.11.1
...
Reading symbols from konsole...Reading symbols from /usr/lib/debug/.build-
id/2b/559c27a0259b9f5254ac6482a73ecd5f0fce6a.debug...done.
done.
(gdb) set args --version
(gdb) thread apply all backtrace
(gdb) r
Starting program: /usr/bin/konsole --version
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe414b700 (LWP 12929)]
[New Thread 0x7fffe2268700 (LWP 12930)]
konsole 16.08.2

Thread 3 "QDBusConnection" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe2268700 (LWP 12930)]
0x00007ffff44b03ef in QObject::disconnect (sender=0x5555557d31c0,
signal=signal@entry=0x0,
    receiver=receiver@entry=0x7fffd40030f0, method=method@entry=0x0) at
kernel/qobject.cpp:2956
2956    kernel/qobject.cpp: No such file or directory.
(gdb) bt
#0  0x00007ffff44b03ef in QObject::disconnect (sender=0x5555557d31c0,
signal=signal@entry=0x0,
    receiver=receiver@entry=0x7fffd40030f0, method=method@entry=0x0) at
kernel/qobject.cpp:2956
#1  0x00007ffff7edfd50 in QObject::disconnect (member=0x0,
receiver=0x7fffd40030f0, this=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobject.h:336
#2  QDBusConnectionPrivate::closeConnection (this=this@entry=0x7fffd40030f0) at
qdbusintegrator.cpp:1145
#3  0x00007ffff7ecc7e2 in QDBusConnectionManager::run (
    this=0x7ffff7f41d60 <(anonymous
namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at qdbusconnection.cpp:188
#4  0x00007ffff42b0da8 in QThreadPrivate::start (
    arg=0x7ffff7f41d60 <(anonymous
namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at thread/qthread_unix.cpp:368
#5  0x00007ffff0b16464 in start_thread (arg=0x7fffe2268700) at
pthread_create.c:333
#6  0x00007ffff78dd9df in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:105


The crash occurs with dolphin --version but not with konqueror --version.

% dolphin --version
dolphin 16.08.2
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = dolphin path = /usr/bin pid = 12709
KCrash: Arguments: /usr/bin/dolphin --version
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from
kdeinit
sock_file=/run/user/1000/kdeinit5__0
zsh: suspended (signal)  dolphin --version

% konqueror --version
Qt: 4.8.7
KDE Development Platform: 4.14.26
Konqueror: 4.14.25


Initially I reported the problem on debian-kde mailing list
(https://lists.debian.org/debian-kde/2016/12/msg00013.html). Please note that
the thread only contains the second version of the backtrace (the one where
there is no popup window).

As mentioned in that thread, Luigi Toscano discussed the issue with the QtBus
maintainer (Thiago Macieira) who mentioned that this could be due to a race
condition. The crashes may be fixed by applying the patches https://codereview
.qt-project.org/180231  and https://codereview.qt-project.org/180232. These
patches are not currently applied to the Qt packages in Debian as they are
causing some regressions on windows.

I am reporting the bug here so it does not get lost and will be fixed
eventually.


thanks
raju





-- System Information:
Debian Release: stretch/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages konsole depends on:
ii  kio                   5.27.0-2
ii  konsole-kpart         4:16.08.2-2
ii  libc6                 2.24-8
ii  libkf5completion5     5.27.0-1
ii  libkf5configcore5     5.27.0-1
ii  libkf5configgui5      5.27.0-1
ii  libkf5configwidgets5  5.27.0-1
ii  libkf5coreaddons5     5.27.0-1
ii  libkf5crash5          5.27.0-1
ii  libkf5dbusaddons5     5.27.0-1
ii  libkf5i18n5           5.27.0-2
ii  libkf5iconthemes5     5.27.0-1
ii  libkf5kiowidgets5     5.27.0-2
ii  libkf5notifyconfig5   5.27.0-1
ii  libkf5widgetsaddons5  5.27.0-1
ii  libkf5windowsystem5   5.27.0-1
ii  libkf5xmlgui5         5.27.0-1
ii  libqt5core5a          5.7.1+dfsg-1
ii  libqt5gui5            5.7.1+dfsg-1
ii  libqt5widgets5        5.7.1+dfsg-1
ii  libstdc++6            6.2.1-5

konsole recommends no packages.

konsole suggests no packages.

-- no debconf information


Reply to: