https://bugs.kde.org/show_bug.cgi?id=3D386394 Bug ID: 386394 Summary: Crash in auto-indenter Product: frameworks-ktexteditor Version: 5.38.0 Platform: Fedora RPMs OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: general Assignee: kwrite-bugs-null@kde.org Reporter: mwoehlke.floss@gmail.com Target Milestone: --- I'm experiencing a reproducible crash when trying to edit a Javascript file. GDB and the bug reporting wizard are having problems generating a stack tra= ce. Valgrind reports: =3D=3D4284=3D=3D Invalid read of size 8 =3D=3D4284=3D=3D at 0x35816C79: ??? =3D=3D4284=3D=3D by 0xA387305: ??? (in /usr/lib64/libQt5Qml.so.5.7.1) =3D=3D4284=3D=3D by 0xA3EF7D6: QV4::Runtime::callActivationProperty(QV4::ExecutionEngine*, int, QV4::CallData*) (in /usr/lib64/libQt5Qml.so.5.7.1) =3D=3D4284=3D=3D by 0x2F6CA9F1: ??? =3D=3D4284=3D=3D by 0xA387305: ??? (in /usr/lib64/libQt5Qml.so.5.7.1) =3D=3D4284=3D=3D by 0xA3EF7D6: QV4::Runtime::callActivationProperty(QV4::ExecutionEngine*, int, QV4::CallData*) (in /usr/lib64/libQt5Qml.so.5.7.1) =3D=3D4284=3D=3D by 0x2F6C9DA0: ??? =3D=3D4284=3D=3D by 0xA387305: ??? (in /usr/lib64/libQt5Qml.so.5.7.1) =3D=3D4284=3D=3D by 0xA2ED235: QJSValue::call(QList const&= ) (in /usr/lib64/libQt5Qml.so.5.7.1) =3D=3D4284=3D=3D by 0x4F67E2D: KateIndentScript::indent(KTextEditor::ViewPrivate*, KTextEditor::Cursor con= st&, QChar, int) (kateindentscript.cpp:75) =3D=3D4284=3D=3D by 0x50258BD: KateAutoIndent::scriptIndent(KTextEditor::ViewPrivate*, KTextEditor::Cursor const&, QChar) (kateautoindent.cpp:278) =3D=3D4284=3D=3D by 0x5026935: KateAutoIndent::userTypedChar(KTextEditor::ViewPrivate*, KTextEditor::Cursor const&, QChar) (kateautoindent.cpp:453) =3D=3D4284=3D=3D Address 0xb5bd04d8 is not stack'd, malloc'd or (recen= tly) free'd To reproduce: - Open https://raw.githubusercontent.com/Kitware/vaui/84ba21ecce5fb64388b1510b50c8= cbb8c9bda3e1/web_external/Viewer/ImageViewerWidgetWrapper/VauiGeoJSImageVie= wer.js - Move the caret to the end of line 36 (`var pendingNext =3D false;`) - Press enter Curiously, if I paste the file contents into an empty document and set HL to 'javascript', no crash... --=20 You are receiving this mail because: You are watching all bug changes.=