Bug 344520

Summary: Kate segfaults when using reverse find in vi-mode
Product: [Applications] kate Reporter: Teemu Erkkola <teemu.erkkola>
Component: Vi Input ModeAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: felixonmars, gnurou, kdebugs, mikisabate, nickpcrogers
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Backtrace

Description Teemu Erkkola 2015-02-24 10:25:54 UTC
Crash seems to happen in all cases I tried that seemed relevant
- empty/non-empty document
- searched character exists/does not exist behind the cursor


Reproducible: Always

Steps to Reproduce:
1. Start kate
2. Set input mode to vi-mode
3. Focus text area by clicking
4. Hit ? to open reverse find text box
5. Hit any letter/symbol/number

Actual Results:  
Kate segfaults

Expected Results:  
Kate accepts the input and does not segfault
Comment 1 Miquel Sabaté 2015-02-24 13:30:28 UTC
I cannot reproduce this. Could you provide the backtrace ?
Comment 2 Teemu Erkkola 2015-02-24 13:39:49 UTC
Created attachment 91271 [details]
Backtrace
Comment 3 Teemu Erkkola 2015-02-24 14:48:15 UTC
Must be a recent regression: does not happen before upgrade to 14.12.2-2 (arch repository, not sure what the previous version was).
Comment 4 Miquel Sabaté 2015-02-25 14:51:47 UTC
I've tried out Kate from the Archlinux repos and I can reproduce your crash there. I've tried to reproduce this on git and I couldn't. So my guess is that this has already been fixed (even though I couldn't find the precise commit fixing this).

Since you're using Archlinux, note that using kate-git from AUR wouldn't work either because it picks ktexteditor 4.7.0, just like your current version. You could try out ktexteditor-git, and it would most probably work for you then, but it would download the whole KDE Frameworks from git too...

Therefore, I'm marking this bug as fixed, but feel free to re-open it if it still affects you on a Kate based on KTextEditor >= 4.8.0.
Comment 5 Teemu Erkkola 2015-02-25 15:07:39 UTC
Hi, 
Thanks for looking into this. I'll report back if the problem persists when KTextEditor >= 4.8.0 reaches arch/extra. Have a nice day!
Comment 6 Miquel Sabaté 2015-02-25 17:09:14 UTC
*** Bug 344561 has been marked as a duplicate of this bug. ***
Comment 7 Nick Rogers 2015-02-25 17:13:07 UTC
This also happens for normal find.
Comment 8 Miquel Sabaté 2015-03-02 07:35:58 UTC
*** Bug 344700 has been marked as a duplicate of this bug. ***
Comment 9 Miquel Sabaté 2015-03-03 07:23:28 UTC
*** Bug 344767 has been marked as a duplicate of this bug. ***
Comment 10 Miquel Sabaté 2015-03-05 12:27:56 UTC
*** Bug 344861 has been marked as a duplicate of this bug. ***