Bug 452262

Summary: Konsole fails on long escaped urls
Product: [Applications] konsole Reporter: TeXHaPb <staryx>
Component: emulationAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: matan, ninjalj
Priority: NOR    
Version: 21.12.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: v22.04.0
Sentry Crash Report:

Description TeXHaPb 2022-04-04 13:09:23 UTC
SUMMARY
***
If you try to print long url with ESC symbols, Konsole just hangs
***


STEPS TO REPRODUCE
1. Run command printf '\e]8;;http://example.com/s/readall/app/discover#/?qwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwerty\e\\kde\e]8;;\e\\\n'
2. Konsole hangs.
3. If you reduce url - all is good

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Matan Ziv-Av 2022-04-05 20:58:29 UTC
I expect that this is the same as https://bugs.kde.org/show_bug.cgi?id=432804 which is fixed in https://invent.kde.org/utilities/konsole/-/commit/96a18a9b7f651e27da99f8b483d84fdb9a1a1e62

But in fact, I cannot reproduce this bug. The printf does not hang konsole, though it does not print kde, as it does with the patch.
Comment 2 ninjalj 2022-11-04 00:52:48 UTC
Whether it hangs depends on the shell used and shell configuration. On ksh you may need to type ESC + \ to unhang konsole. bash invoked as sh seems to hang harder: I've not found a way to unhang it.