Skip to content

Instantly share code, notes, and snippets.

@joschi
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joschi/e2463cea4fa81af7787e to your computer and use it in GitHub Desktop.
Save joschi/e2463cea4fa81af7787e to your computer and use it in GitHub Desktop.
`kde-open --interactive` crashes
$ xdg-open --version
xdg-open 1.1.0 rc1
$ kde-open --version
Qt: 4.8.6
KDE Development Platform: 4.13.2
KIO Client: 2.0
$ xdg-open 'https://bugs.freedesktop.org/'
QWidget: Cannot create a QWidget when no GUI is being used
/usr/bin/xdg-open: line 513: 3830 Aborted (core dumped) kde-open --noninteractive "$1"
$ kde-open --noninteractive 'https://bugs.freedesktop.org/'
QWidget: Cannot create a QWidget when no GUI is being used
Aborted (core dumped)
$ kde-open 'https://bugs.freedesktop.org/'
$ echo $?
0
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 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-unknown-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 kde-open...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kde-open --noninteractive http://example.com
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGABRT, Aborted.
0x00007ffff598dd67 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff598dd67 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff598f118 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff6d319ff in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#3 0x00007ffff6d31b89 in ?? () from /usr/lib/libQtCore.so.4
#4 0x00007ffff6d32394 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#5 0x00007ffff622f6bc in QWidgetPrivate::init(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#6 0x00007ffff622f8e4 in QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#7 0x00007ffff558ff55 in KXMessages::KXMessages(char const*, QWidget*) () from /usr/lib/libkdeui.so.5
#8 0x00007ffff5530f30 in KStartupInfo::sendStartup(KStartupInfoId const&, KStartupInfoData const&) () from /usr/lib/libkdeui.so.5
#9 0x00007ffff7a7901f in ?? () from /usr/lib/libkio.so.5
#10 0x00007ffff7a7951b in ?? () from /usr/lib/libkio.so.5
#11 0x00007ffff7a79fc7 in KRun::run(KService const&, KUrl::List const&, QWidget*, bool, QString const&, QByteArray const&) () from /usr/lib/libkio.so.5
#12 0x00007ffff7a7bf63 in KRun::run(QString const&, KUrl::List const&, QWidget*, QString const&, QString const&, QByteArray const&) () from /usr/lib/libkio.so.5
#13 0x00007ffff7a7c0b3 in KRun::KRunPrivate::runExecutable(QString const&) () from /usr/lib/libkio.so.5
#14 0x00007ffff7a7c932 in KRun::init() () from /usr/lib/libkio.so.5
#15 0x00007ffff7a73eb0 in KRun::slotTimeout() () from /usr/lib/libkio.so.5
#16 0x00007ffff6e5230a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0x00007ffff6e564c1 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007ffff61def0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007ffff61e548d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007ffff6e3e58d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0x00007ffff6e6dd63 in ?? () from /usr/lib/libQtCore.so.4
#22 0x00007ffff6e6b071 in ?? () from /usr/lib/libQtCore.so.4
#23 0x00007ffff276fb84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007ffff276fdc8 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007ffff276fe6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007ffff6e6b2a5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0x00007ffff6e3d15f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0x00007ffff6e3d455 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x00007ffff6e42719 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#30 0x0000000000403e33 in _start ()
(gdb) quit
A debugging session is active.
Inferior 1 [process 4943] will be killed.
Quit anyway? (y or n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment