| Summary: | KDevelop crashed openning a project with css | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Edward Kigwana <ekigwana> |
| Component: | Language Support: CSS | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | kde |
| Priority: | NOR | Keywords: | drkonqi |
| Version First Reported In: | 4.90.90 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kdev-css/96a011ddc8443fd336105fb72f05d670af571e96 | Version Fixed/Implemented In: | 5.0.0 |
| Sentry Crash Report: | |||
|
Description
Edward Kigwana
2016-01-20 18:44:54 UTC
still actual in 4.90.92 with following backtrace: https://gist.github.com/raw/a361e1a5657966dd41da28a36bfbe913 Can reproduce. More complete backtrace: [kdevelop(30566)/(kdevcsssupport) [31m[34mCss::LanguageSupport::createParseJob(73)[0m: "/home/kfunk/devel/src/nw.js/test/sanity/issue4143-chrome-sockets-permission/index.tpl" [kdevelop(30566)/(kdevcsssupport) [31m[34mCss::ParseJob::run(81)[0m: parsing "/home/kfunk/devel/src/nw.js/test/sanity/issue4143-chrome-sockets-permission/index.tpl" Thread 13 "Queue(0xd40bd0)" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffa48da700 (LWP 30702)] 0x00007fff95e20107 in yyFlexLexer::yy_init_buffer (this=0x7fffa48d8ba8, b=0x7fff9016eb40, file=...) at tokenizer.cpp:2499 2499 tokenizer.cpp: No such file or directory. (gdb) bt 20 #0 0x00007fff95e20107 in yyFlexLexer::yy_init_buffer (this=0x7fffa48d8ba8, b=0x7fff9016eb40, file=...) at tokenizer.cpp:2499 #1 0x00007fff95e200b6 in yyFlexLexer::yyrestart (this=0x7fffa48d8ba8, input_file=...) at tokenizer.cpp:2371 #2 0x00007fff95e201ef in yyFlexLexer::yyrestart (this=0x7fffa48d8ba8, input_file=0x0) at tokenizer.cpp:2382 #3 0x00007fff95e20b91 in Css::Tokenizer::restart (this=0x7fffa48d8ba8, tokenStream=0x7fff9014c010, contents="") at tokenizer.flex:181 #4 0x00007fff95e20c30 in Css::Tokenizer::Tokenizer (this=0x7fffa48d8ba8, tokenStream=0x7fff9014c010, contents=0x7fff90142648 "") at tokenizer.flex:165 #5 0x00007fff95e09f4f in Css::Parser::tokenize (this=0x7fff90122810, contents="") at /home/kfunk/devel/src/kf5/kdev-css/parser/css.g:616 #6 0x00007fff95e216c0 in Css::ParseSession::createParser (this=0x7fff90195cc0) at /home/kfunk/devel/src/kf5/kdev-css/parser/parsesession.cpp:111 #7 0x00007fff95e216f6 in Css::ParseSession::parse (this=0x7fff90195cc0, ast=0x7fffa48d9688) at /home/kfunk/devel/src/kf5/kdev-css/parser/parsesession.cpp:117 #8 0x00007fff95e53be2 in Css::ParseJob::run (this=0x3077e10) at /home/kfunk/devel/src/kf5/kdev-css/parsejob.cpp:119 #9 0x00007fffee06a995 in ThreadWeaver::IdDecorator::run (this=0x3077ca0, self=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/iddecorator.cpp:69 #10 0x00007fffee06b8b2 in ThreadWeaver::Executor::run (this=0x7fffee28a750 <ThreadWeaver::Private::defaultExecutor>, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/executor.cpp:52 #11 0x00007fffee06a430 in ThreadWeaver::Private::DefaultExecutor::execute (this=0x7fffee28a750 <ThreadWeaver::Private::defaultExecutor>, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/job_p.cpp:70 #12 0x00007fffee06bb5f in ThreadWeaver::ExecuteWrapper::executeWrapped (this=0x3077c08, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:64 #13 0x00007fffee06a37c in ThreadWeaver::Private::DebugExecuteWrapper::execute (this=0x3077c08, job=..., th=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/job_p.cpp:58 #14 0x00007fffee06bb5f in ThreadWeaver::ExecuteWrapper::executeWrapped (this=0x3077c30, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:64 #15 0x00007fffee06bae5 in ThreadWeaver::ExecuteWrapper::execute (this=0x3077c30, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:57 #16 0x00007fffee06bb5f in ThreadWeaver::ExecuteWrapper::executeWrapped (this=0x2fe50d0, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:64 #17 0x00007fffee06bae5 in ThreadWeaver::ExecuteWrapper::execute (this=0x2fe50d0, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:57 #18 0x00007fffee068965 in ThreadWeaver::Job::execute (this=0x3077e20, self=..., th=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/job.cpp:83 #19 0x00007fffee06e490 in ThreadWeaver::Collection::execute (this=0x3077e20, job=..., thread=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/collection.cpp:151 (More stack frames follow...) Can someone run it through valgrind/asan please? Git commit 96a011ddc8443fd336105fb72f05d670af571e96 by Kevin Funk. Committed on 04/08/2016 at 12:35. Pushed by kfunk into branch '5.0'. Fix crash in tokenizer yyrestart(NULL) will crash later, trying to derefence the nullptr passed on to yyrestart. Use a predefined macro from flex (YY_NEW_FILE) to reset the scanner instead. I'm not an flex expert at all, but this seems to fix the problem at hand. FIXED-IN: 5.0.0 M +1 -1 parser/tokenizer.flex http://commits.kde.org/kdev-css/96a011ddc8443fd336105fb72f05d670af571e96 |