https://bugs.kde.org/show_bug.cgi?id=363269
Bug ID: 363269 Summary: Crash when projects contains *.txt file that is actually a binary file Product: kdevelop Version: git master Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: Build tools: CMake Assignee: kdevelop-bugs-n...@kde.org Reporter: m.cenc...@gmail.com For some reason the project I'm working on have a few zip files with *.txt filename extension. KDevelop is incorrectly trying to parse these as cmake files (LanguageController incorrectly detects it by matching only filename extension), and then cmake parser crashes in lexer. Not all binary *.txt files causes the crash. Unfortunately I cannot attach the one that triggers the error. *** Error in `/usr/bin/kdevelop': free(): invalid next size (fast): 0x00007fff900c8da0 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7ffff4dea725] /lib/x86_64-linux-gnu/libc.so.6(+0x7ff4a)[0x7ffff4df2f4a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ffff4df6abc] /usr/lib/x86_64-linux-gnu/libkdevcmakecommon.so(+0xe34e)[0x7fffc2d9734e] /usr/lib/x86_64-linux-gnu/libkdevcmakecommon.so(+0xc6db)[0x7fffc2d956db] /usr/lib/x86_64-linux-gnu/libkdevcmakecommon.so(cmListFileLexer_Scan+0x37)[0x7fffc2d97863] /usr/lib/x86_64-linux-gnu/libkdevcmakecommon.so(_ZN16CMakeListsParser13readCMakeFileERK7QString+0x242)[0x7fffc2d98733] /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/25/kdevcmakemanager.so(+0x46784)[0x7fffc2b42784] /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5(_ZN12ThreadWeaver11IdDecorator3runE14QSharedPointerINS_12JobInterfaceEEPNS_6ThreadE+0x60)[0x7fffead6e650] /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5(_ZN12ThreadWeaver8Executor3runERK14QSharedPointerINS_12JobInterfaceEEPNS_6ThreadE+0x50)[0x7fffead6ec90] /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5(_ZN12ThreadWeaver3Job7executeERK14QSharedPointerINS_12JobInterfaceEEPNS_6ThreadE+0x40)[0x7fffead6d7e0] /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5(_ZN12ThreadWeaver6Thread3runEv+0x8a)[0x7fffead6d28a] /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(+0xa584e)[0x7ffff556b84e] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76fa)[0x7fffee3406fa] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ffff4e79b5d] Reproducible: Sometimes Steps to Reproduce: 1. create cmake project 2. put there some zip files 3. rename the zip files to have *.txt extension 4. let the background parser do its job Actual Results: Crash Expected Results: No crash -- You are receiving this mail because: You are watching all bug changes.