Bug 422646 - Crash when running script using qdbus to control terminal
Summary: Crash when running script using qdbus to control terminal
Status: RESOLVED DUPLICATE of bug 415762
Alias: None
Product: yakuake
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-06-08 18:09 UTC by Wyatt Childers
Modified: 2020-07-05 13:11 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 Wyatt Childers 2020-06-08 18:09:29 UTC
Application: yakuake (3.0.5+)

Qt Version: 5.14.2
Frameworks Version: 5.70.0
Operating System: Linux 5.3.0-53-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

-- Information about the crash:
- What I was doing when the application crashed:
I have a script that runs several commands based on qdbus. It does basically the following:

INITIAL_ID=`qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.activeSessionId`

function addSession {
  SESSION_ID=`qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession`
  qdbus org.kde.yakuake /yakuake/tabs setTabTitle $SESSION_ID "$1"
  if [ ! -z "$2" ]; then
    qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal $SESSION_ID "$2"
  fi
}

addSession "A" "cd A/"
addSession "B" "cd B/"
addSession "C" "cd C/"

qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.removeSession $INITIAL_ID

Sometimes when I use it this crash occurs.

-- Backtrace:
Application: Yakuake (yakuake), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcf18bdc300 (LWP 2611))]

Thread 4 (Thread 0x7fcee7884700 (LWP 25795)):
#0  0x00007fcf12f350b4 in __GI___libc_read (fd=24, buf=0x7fcee7883bde, nbytes=10) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fcf07fd1021 in pa_read () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#2  0x00007fcf0bdbda2e in pa_mainloop_prepare () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007fcf0bdbe4a0 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fcf0bdbe560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007fcf0bdcc3c9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fcf08000318 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#7  0x00007fcf0eaf86db in start_thread (arg=0x7fcee7884700) at pthread_create.c:463
#8  0x00007fcf12f4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fcefbdf5700 (LWP 2670)):
#0  0x00007fcf12f350b4 in __GI___libc_read (fd=7, buf=0x7fcefbdf4b60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fcf0cd452b0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcf0cd000b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fcf0cd00570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fcf0cd006dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fcf138a07cb in QEventDispatcherGlib::processEvents (this=0x7fcef4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007fcf1383fd2a in QEventLoop::exec (this=this@entry=0x7fcefbdf4d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007fcf13650757 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#8  0x00007fcf14e58555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007fcf13651c2c in QThreadPrivate::start (arg=0x7fcf150d0da0) at thread/qthread_unix.cpp:342
#10 0x00007fcf0eaf86db in start_thread (arg=0x7fcefbdf5700) at pthread_create.c:463
#11 0x00007fcf12f4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fcf03803700 (LWP 2656)):
#0  0x00007fcf12f39bf9 in __GI___poll (fds=0x7fcf03802ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fcf11016747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fcf1101836a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fcf063d8fd0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fcf13651c2c in QThreadPrivate::start (arg=0x56264207df00) at thread/qthread_unix.cpp:342
#5  0x00007fcf0eaf86db in start_thread (arg=0x7fcf03803700) at pthread_create.c:463
#6  0x00007fcf12f4688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fcf18bdc300 (LWP 2611)):
[KCrash Handler]
#4  0x00005626425ea5a0 in ?? ()
#5  0x00007fcf13875db6 in QObject::disconnect (sender=0x5626423df730, signal=<optimized out>, signal@entry=0x7fcf175f0a72 "2destroyed(QObject*)", receiver=receiver@entry=0x56264240ebd0, method=0x562642a73e49 "_k_associatedWidgetDestroyed(QObject*)", method@entry=0x7fcf175f0978 "1_k_associatedWidgetDestroyed(QObject*)") at kernel/qobject.cpp:3121
#6  0x00007fcf1758157c in KActionCollection::removeAssociatedWidget (this=0x56264240ebd0, widget=<optimized out>, widget@entry=0x5626423df730) at ./src/kactioncollection.cpp:834
#7  0x00007fcf175ca96b in KXMLGUIClient::prepareXMLUnplug (this=this@entry=0x56264240e9f8, w=0x5626423df730) at ./src/kxmlguiclient.cpp:796
#8  0x00007fcf175cf101 in KXMLGUIFactory::removeClient (this=<optimized out>, client=<optimized out>, client@entry=0x56264240e9f8) at ./src/kxmlguifactory.cpp:464
#9  0x00007fceeeff71c4 in Konsole::SessionController::~SessionController (this=0x56264240e9d0, __in_chrg=<optimized out>) at ./src/SessionController.cpp:241
#10 0x00007fceeeff7379 in Konsole::SessionController::~SessionController (this=0x56264240e9d0, __in_chrg=<optimized out>) at ./src/SessionController.cpp:243
#11 0x00007fcf13870ceb in QObjectPrivate::deleteChildren (this=0x5626423365f0) at kernel/qobject.cpp:2123
#12 0x00007fcf1387a2ce in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1107
#13 0x00007fceef021439 in Konsole::ViewManager::~ViewManager (this=0x5626423431f0, __in_chrg=<optimized out>) at ./src/ViewManager.h:63
#14 0x00007fceef29d50e in Konsole::Part::~Part (this=0x562642343440, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ./src/Part.cpp:90
#15 0x00007fceef29d569 in Konsole::Part::~Part (this=0x562642343440, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ./src/Part.cpp:91
#16 0x00007fcf13870ceb in QObjectPrivate::deleteChildren (this=this@entry=0x56264233f680) at kernel/qobject.cpp:2123
#17 0x00007fcf1476d366 in QWidget::~QWidget (this=0x56264220e3c0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1530
#18 0x0000562641971631 in Splitter::~Splitter (this=0x56264220e3c0, __in_chrg=<optimized out>) at ./app/splitter.cpp:31
#19 Splitter::~Splitter (this=0x56264220e3c0, __in_chrg=<optimized out>) at ./app/splitter.cpp:33
#20 0x000056264196d026 in Session::~Session (this=0x562642337bf0, __in_chrg=<optimized out>) at ./app/session.cpp:47
#21 0x000056264196d119 in Session::~Session (this=0x562642337bf0, __in_chrg=<optimized out>) at ./app/session.cpp:50
#22 0x00007fcf138745a5 in QObject::event (this=0x562642337bf0, e=0x562642bfc0d0) at kernel/qobject.cpp:1326
#23 0x00007fcf147309ac in QApplicationPrivate::notify_helper (this=this@entry=0x5626420736b0, receiver=receiver@entry=0x562642337bf0, e=e@entry=0x562642bfc0d0) at kernel/qapplication.cpp:3685
#24 0x00007fcf14737bb0 in QApplication::notify (this=0x7ffde266fa00, receiver=0x562642337bf0, e=0x562642bfc0d0) at kernel/qapplication.cpp:3431
#25 0x00007fcf138414a8 in QCoreApplication::notifyInternal2 (receiver=0x562642337bf0, event=0x562642bfc0d0) at kernel/qcoreapplication.cpp:1075
#26 0x00007fcf1384167e in QCoreApplication::sendEvent (receiver=receiver@entry=0x562642337bf0, event=event@entry=0x562642bfc0d0) at kernel/qcoreapplication.cpp:1470
#27 0x00007fcf13844121 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x562642071570) at kernel/qcoreapplication.cpp:1815
#28 0x00007fcf138446b8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1674
#29 0x00007fcf138a1103 in postEventSourceDispatch (s=0x5626420c8b10) at kernel/qeventdispatcher_glib.cpp:277
#30 0x00007fcf0cd00417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fcf0cd00650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fcf0cd006dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fcf138a07ac in QEventDispatcherGlib::processEvents (this=0x5626420d8e90, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#34 0x00007fcf1383fd2a in QEventLoop::exec (this=this@entry=0x7ffde266f930, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#35 0x00007fcf138494a0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1383
#36 0x0000562641951a5e in main (argc=<optimized out>, argv=<optimized out>) at ./app/main.cpp:87

Possible duplicates by query: bug 421226, bug 421194, bug 421138, bug 421060, bug 421006.

Reported using DrKonqi
Comment 1 Christoph Feck 2020-07-05 13:11:59 UTC

*** This bug has been marked as a duplicate of bug 415762 ***