Summary: | Konsole segfaults when sending `exit` to multiple tabs | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Isaac <isalgueiro> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | ninjalj, tterranigma, undying.k |
Priority: | NOR | Keywords: | drkonqi |
Version: | 19.08.0 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=410582 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
attachment-22032-0.html
New backtrace New crash information added by DrKonqi |
Description
Isaac
2019-09-03 15:18:37 UTC
There was another report I can't find ATM that was the same - I can't reproduce here. Maybe is because how I start konsole? I use the tabs-from-file flag to open konsole with SSH as start command. Sorry if the flag name is not exactly that, I'm not on my PC and writing this off the top of my head... OK, so here's my complete workflow on this, just in case anything in how I'm launching Konsole is causing this segfault: 1. I have a "tabs file" in a vault with something like this: title: Server1;; command: sshpass -p supersecretpassword1 ssh user1@server1 title: Server2;; command: sshpass -p supersecretpassword2 ssh user2@server2 title: Server3;; command: sshpass -p supersecretpassword3 ssh user3@server3 title: Server4;; command: sshpass -p supersecretpassword4 ssh user4@server4 title: Server5;; command: sshpass -p supersecretpassword5 ssh user5@server5 title: Server6;; command: sshpass -p supersecretpassword6 ssh user6@server6 2. An alias to execute `konsole --tabs-from-file /path/to/that/tabs/file/from/1 &` 3. When I execute that alias, a new Konsole window opens up with 7 tabs, the 6 ssh sessions and a local shell (BTW no idea why it opens this extra local tab) 4. In this new window I do Edit / Copy input to / All tabs in current window 5. Everything works fine except when I run `exit`. Before hitting this bug (sorry, can't tell exactly in what Konsole version started this bug :( ) Konsole just closed normally. Now I'm getting segafults almost every time I `exit`. Hope this helps! Let me know if you want me to do any other test on this. I have the exact issue. It could only reproduce it when using ssh. Here is the command I use to open multiple tabs: for i in {1..25}; do konsole --new-tab --workdir "$PWD" -e gcloud compute ssh provisioner-$i & sleep 1; qdbus org.kde.konsole /Sessions/$i setTitle 1 $i; done The gcloud utility is just a convenience to login with ssh on instances running on Google Cloud. After all tabs are opened and ssh connection is established, I select from Konsole's menu `Edit->Copy Input to->All Tabs in Current Window`. Then, I press Ctrl-D or type exit and the tabs start closing in a snap. But before closing them all Konsole crashes. This has also happened to me when not using the 'copy input to` function. I just enter a tab and start hitting Ctrl-D repeatedly to close the tabs. Then Konsole crashes. I am afraid to actually close any tab unless I am completely done with all 25 tabs since it has happened to me that closing even one tab can crash Konsole. BTW, these bug reports also seem relevant: https://bugs.kde.org/show_bug.cgi?id=371599 https://bugs.kde.org/show_bug.cgi?id=410582 https://bugs.kde.org/show_bug.cgi?id=376200 Created attachment 122649 [details] attachment-22032-0.html I’ll try to tackle this on Monday Em sáb, 14 de set de 2019 às 12:15, Nikolaos Kakouros < bugzilla_noreply@kde.org> escreveu: > https://bugs.kde.org/show_bug.cgi?id=411561 > > --- Comment #5 from Nikolaos Kakouros <tterranigma@gmail.com> --- > BTW, these bug reports also seem relevant: > > https://bugs.kde.org/show_bug.cgi?id=371599 > https://bugs.kde.org/show_bug.cgi?id=410582 > https://bugs.kde.org/show_bug.cgi?id=376200 > > -- > You are receiving this mail because: > You are the assignee for the bug. Don't know if this can help, but I had two konsole windows opened as background jobs and both got closed because of ssh idle timeout. Job 1 had 6 opened ssh tabs and segfaulted. Job 2 had 2 opened ssh tabs and exited normally. KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = konsole path = /usr/bin pid = 8118 KCrash: Arguments: /usr/bin/konsole --tabs-from-file /home/isalgueiro/Vaults/xxx/konsole_sessions/1.tabs KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit sock_file=/run/user/1000/kdeinit5__0 QSocketNotifier: Invalid socket 8 and type 'Read', disabling... QSocketNotifier: Invalid socket 9 and type 'Read', disabling... [1]+ Stopped konsole --tabs-from-file ~/Vaults/xxx/konsole_sessions/1.tabs [2] Done konsole --tabs-from-file ~/Vaults/xxx/konsole_sessions/2.tabs I'm attaching this new backtrace Created attachment 122819 [details]
New backtrace
Created attachment 124488 [details]
New crash information added by DrKonqi
konsole (19.12.0) using Qt 5.13.2
- What I was doing when the application crashed:
I'm using tmux. Have opened multiple tabs then executed "kill $(pidof tmux)" and got segfault
-- Backtrace (Reduced):
#6 0x00007fa0a30be4be in QWidget::setFocus(Qt::FocusReason) () from /usr/lib64/libQt5Widgets.so.5
[...]
#8 0x00007fa0a3c81c02 in Konsole::TabbedViewContainer::activeViewChanged(Konsole::TerminalDisplay*) () from /usr/lib64/libkonsoleprivate.so.19
#9 0x00007fa0a3d30709 in Konsole::TabbedViewContainer::currentTabChanged(int) () from /usr/lib64/libkonsoleprivate.so.19
[...]
#11 0x00007fa0a3254d7e in QTabWidget::currentChanged(int) () from /usr/lib64/libQt5Widgets.so.5
#12 0x00007fa0a3257151 in QTabWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Widgets.so.5
Hi All This is fixed for me in konsole 21.04.0 and Qt 5.12.2 Regards, Isaac Sorry, is Qt 5.15.2. *** This bug has been marked as a duplicate of bug 431827 *** |