| Summary: | vi input mode: Kate 3.14.1 (kubuntu 4.14.1 backport) crashes when saving files | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Stephan Lahl <s.lahl> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | egorov, mitchnull+kde, s.lahl |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/ktexteditor/900337e6864beb09e0eaed935de5ed89398363b8 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | gdb stacktrace | ||
|
Description
Stephan Lahl
2014-10-03 09:12:36 UTC
Happens on arch-linux, too with kate version 5.0.0. Actually , the segfault happens right after typing :w (before even typing q or <ENTER>): --------------------------- katepart: Register '-' set to "=10" katepart: Register " set to point to " '-' katepart: Register '^' set to "" katepart: Command already registered: "s" . Aborting. katepart: ":" katepart: "w" katepart: New text: "w" Segmentation fault (core dumped) --------------------------- Similar segfault happens with search (<ESC>/a for example): --------------------------- katepart: Register '-' set to "=10" katepart: Register " set to point to " '-' katepart: Register '^' set to "" katepart: Command already registered: "s" . Aborting. katepart: "/" katepart: "a" katepart: New text: "a" katepart: Final regex: "a" Segmentation fault (core dumped) --------------------------- Created attachment 91518 [details]
gdb stacktrace
I've built ktexteditor with debug symbols and launch kate under gdb. Looks like a bug in regex which parses range or in the code calling this regex. Stacktrace attached. Ubuntu 15.04 kate 5.0.0 apparently typing anything after ':', '/' or '?' crashes kate in vi-mode. Git commit 900337e6864beb09e0eaed935de5ed89398363b8 by Christoph Cullmann. Committed on 24/07/2017 at 21:32. Pushed by cullmann into branch 'master'. perhaps avoid stringbuild crash M +1 -1 src/vimode/commandrangeexpressionparser.cpp https://commits.kde.org/ktexteditor/900337e6864beb09e0eaed935de5ed89398363b8 |