[kdevelop] [Bug 358270] KDevelop crashed openning a project with css

2016-08-04 Thread Kevin Funk via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358270

Kevin Funk  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||http://commits.kde.org/kdev
   ||-css/96a011ddc8443fd336105f
   ||b72f05d670af571e96
   Version Fixed In||5.0.0
 Status|CONFIRMED   |RESOLVED

--- Comment #4 from Kevin Funk  ---
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-1parser/tokenizer.flex

http://commits.kde.org/kdev-css/96a011ddc8443fd336105fb72f05d670af571e96

-- 
You are receiving this mail because:
You are watching all bug changes.


[kdevelop] [Bug 358270] KDevelop crashed openning a project with css

2016-08-04 Thread Milian Wolff via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358270

--- Comment #3 from Milian Wolff  ---
Can someone run it through valgrind/asan please?

-- 
You are receiving this mail because:
You are watching all bug changes.


[kdevelop] [Bug 358270] KDevelop crashed openning a project with css

2016-08-04 Thread Kevin Funk via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358270

Kevin Funk  changed:

   What|Removed |Added

 Status|UNCONFIRMED |CONFIRMED
 Ever confirmed|0   |1

--- Comment #2 from Kevin Funk  ---
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)]
0x7fff95e20107 in yyFlexLexer::yy_init_buffer (this=0x7fffa48d8ba8,
b=0x7fff9016eb40, file=...) at tokenizer.cpp:2499
2499tokenizer.cpp: No such file or directory.
(gdb) bt 20
#0  0x7fff95e20107 in yyFlexLexer::yy_init_buffer (this=0x7fffa48d8ba8,
b=0x7fff9016eb40, file=...) at tokenizer.cpp:2499
#1  0x7fff95e200b6 in yyFlexLexer::yyrestart (this=0x7fffa48d8ba8,
input_file=...) at tokenizer.cpp:2371
#2  0x7fff95e201ef in yyFlexLexer::yyrestart (this=0x7fffa48d8ba8,
input_file=0x0) at tokenizer.cpp:2382
#3  0x7fff95e20b91 in Css::Tokenizer::restart (this=0x7fffa48d8ba8,
tokenStream=0x7fff9014c010, contents="") at tokenizer.flex:181
#4  0x7fff95e20c30 in Css::Tokenizer::Tokenizer (this=0x7fffa48d8ba8,
tokenStream=0x7fff9014c010, contents=0x7fff90142648 "") at tokenizer.flex:165
#5  0x7fff95e09f4f in Css::Parser::tokenize (this=0x7fff90122810,
contents="") at /home/kfunk/devel/src/kf5/kdev-css/parser/css.g:616
#6  0x7fff95e216c0 in Css::ParseSession::createParser (this=0x7fff90195cc0)
at /home/kfunk/devel/src/kf5/kdev-css/parser/parsesession.cpp:111
#7  0x7fff95e216f6 in Css::ParseSession::parse (this=0x7fff90195cc0,
ast=0x7fffa48d9688) at
/home/kfunk/devel/src/kf5/kdev-css/parser/parsesession.cpp:117
#8  0x7fff95e53be2 in Css::ParseJob::run (this=0x3077e10) at
/home/kfunk/devel/src/kf5/kdev-css/parsejob.cpp:119
#9  0x7fffee06a995 in ThreadWeaver::IdDecorator::run (this=0x3077ca0,
self=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/iddecorator.cpp:69
#10 0x7fffee06b8b2 in ThreadWeaver::Executor::run (this=0x7fffee28a750
, job=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/executor.cpp:52
#11 0x7fffee06a430 in ThreadWeaver::Private::DefaultExecutor::execute
(this=0x7fffee28a750 , job=...,
thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/job_p.cpp:70
#12 0x7fffee06bb5f in ThreadWeaver::ExecuteWrapper::executeWrapped
(this=0x3077c08, job=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:64
#13 0x7fffee06a37c in ThreadWeaver::Private::DebugExecuteWrapper::execute
(this=0x3077c08, job=..., th=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/job_p.cpp:58
#14 0x7fffee06bb5f in ThreadWeaver::ExecuteWrapper::executeWrapped
(this=0x3077c30, job=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:64
#15 0x7fffee06bae5 in ThreadWeaver::ExecuteWrapper::execute
(this=0x3077c30, job=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:57
#16 0x7fffee06bb5f in ThreadWeaver::ExecuteWrapper::executeWrapped
(this=0x2fe50d0, job=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:64
#17 0x7fffee06bae5 in ThreadWeaver::ExecuteWrapper::execute
(this=0x2fe50d0, job=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/executewrapper.cpp:57
#18 0x7fffee068965 in ThreadWeaver::Job::execute (this=0x3077e20, self=...,
th=0x7fff9c002e20) at /home/kfunk/devel/src/kf5/threadweaver/src/job.cpp:83
#19 0x7fffee06e490 in ThreadWeaver::Collection::execute (this=0x3077e20,
job=..., thread=0x7fff9c002e20) at
/home/kfunk/devel/src/kf5/threadweaver/src/collection.cpp:151
(More stack frames follow...)

-- 
You are receiving this mail because:
You are watching all bug changes.


[kdevelop] [Bug 358270] KDevelop crashed openning a project with css

2016-08-04 Thread mva
https://bugs.kde.org/show_bug.cgi?id=358270

Vadim A. Misbakh-Soloviov (mva)  changed:

   What|Removed |Added

 CC||k...@mva.name

--- Comment #1 from Vadim A. Misbakh-Soloviov (mva)  ---
still actual in 4.90.92 with following backtrace:
https://gist.github.com/raw/a361e1a5657966dd41da28a36bfbe913

-- 
You are receiving this mail because:
You are watching all bug changes.


[kdevelop] [Bug 358270] KDevelop crashed openning a project with css

2016-03-11 Thread Kevin Funk via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=358270

Kevin Funk  changed:

   What|Removed |Added

  Component|general |Language Support: CSS

-- 
You are receiving this mail because:
You are watching all bug changes.