Bug 378520

Summary: Konsole freezes when pressing TAB or BACKSPACE
Product: [Applications] konsole Reporter: skaumo
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: grave CC: egmont, Kakadu.hafanana
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: konsole.freezing.log
Gdb log in the moment of freeze
Gdb log using `thread apply all bt`

Description skaumo 2017-04-06 22:28:54 UTC
- Start console (assuming BASH)
- Type "cd foldern[TAB]"
- Konsole freezes

- Start console (assuming BASH)
- Type [BACKSPACE]
- Konsole freezes immediately


Reproducible: always.
Comment 1 Kurt Hindenburg 2017-04-18 02:35:32 UTC
Need more info - does this work OK in another terminal? xterm/gnome-terminal/etc?

I don't quite see how it could be Konsole.

Also are you running master git branch?
Comment 2 skaumo 2017-04-18 13:58:48 UTC
Other terminals are OK.


Just recently switched from more stable versions of Konsole. Never had this issue before. Running master branch.


BTW, looks like it only freezes for about 25s, then it works again.
Please find strace logs attached. They might give some hints?


Look for the line with "-------------- about 25s later" in the log file. Seems to freeze during some futex call...
Comment 3 skaumo 2017-04-18 13:59:38 UTC
Created attachment 105078 [details]
konsole.freezing.log
Comment 4 Egmont Koblinger 2017-04-18 18:33:15 UTC
I'd guess it's related to ringing the bell.
Comment 5 Kurt Hindenburg 2017-04-19 03:29:14 UTC
Oh that would make sense about the bell - can you disable that bell in your shell and try again?
Comment 6 skaumo 2017-04-26 14:09:45 UTC
The audio notification for the bell event was disabled. I turned it on, and it looks like when Konsole resumes working, it's exactly when the bell rings.

Anyway, the issue happens with either the bell enabled or not. Even if all notifications are disabled.
Comment 7 Kakadu.hafanana 2017-07-17 21:14:49 UTC
I have the same issue with similar strace output. It seems that issue reprodces after first or second hit on TAB and doesn't reproduces after that.

konsole from ppa kubuntu-ci/unstable
Comment 8 Kakadu.hafanana 2017-08-25 19:59:15 UTC
Created attachment 107519 [details]
Gdb log in the moment of freeze
Comment 9 Kakadu.hafanana 2017-08-25 20:06:54 UTC
Created attachment 107520 [details]
Gdb log using `thread apply all bt`
Comment 10 Kakadu.hafanana 2017-08-25 21:37:37 UTC
The issue is resolved for me. The problem was that I'm not using KDE session but Openbox one. The notification code that runs after TAG pressed checks that plasma running using a timeout, so Konsole is hanging. The solution was to remove file `/usr/share/dbus-1/services/org.kde.plasma.Notifications.service` from the PC.

Many thanks to Jos van den Oever and a user called Argonel from the FreeNode IRC for the solution.
Comment 11 Christoph Feck 2017-08-26 11:21:10 UTC

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