Bug 344520 - Kate segfaults when using reverse find in vi-mode
Summary: Kate segfaults when using reverse find in vi-mode
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: Vi Input Mode (show other bugs)
Version: 5.0.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 344561 344700 344767 344861 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-24 10:25 UTC by Teemu Erkkola
Modified: 2015-03-05 12:27 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Backtrace (12.71 KB, text/plain)
2015-02-24 13:39 UTC, Teemu Erkkola
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***