Bug 242792 - PHP: crash when parsing binary blob embedded into sources
Summary: PHP: crash when parsing binary blob embedded into sources
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: 4.0.0
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 16:27 UTC by Cassiano Leal
Modified: 2021-01-12 04:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cassiano Leal 2010-06-25 16:27:52 UTC
Version:           4.0.0 (using KDE 4.4.4) 
OS:                Linux

kdevelop crashes while trying to parse a PHP project.

From the beginning of the parsing, gdb throws lots of error messages like these:

** ERROR: "Expected symbol "logicalXorExpression" (current token: "" [1077] at 101:181 - 101:181)" 
** ERROR: "Expected symbol "logicalOrExpression" (current token: "" [1077] at 101:181 - 101:181)" 
** ERROR: "Expected symbol "expr" (current token: "" [1077] at 101:181 - 101:181)" 
** ERROR: "Expected symbol "statement" (current token: "" [1077] at 101:181 - 101:181)" 
** ERROR: "Expected symbol "topStatement" (current token: "" [1077] at 101:181 - 101:181)" 
** ERROR: "Expected symbol "innerStatementList" (current token: "" [1077] at 101:181 - 101:181)" 
** ERROR: "Expected symbol "start" (current token: "" [1077] at 101:181 - 101:181)" 
** ERROR: "Expected token "}"" 
** ERROR: "Expected symbol "encapsVar" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "encaps" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "encapsList" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "scalar" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "varExpressionNormal" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "varExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "unaryExpressionNotPlusminus" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "unaryExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "multiplicativeExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "additiveExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "shiftExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "relationalExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "equalityExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "bitAndExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "bitXorExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "bitOrExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "booleanAndExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "booleanOrExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "conditionalExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "assignmentExpressionEqual" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "printExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "logicalAndExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "logicalXorExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "logicalOrExpression" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "expr" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "statement" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "topStatement" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "innerStatementList" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected symbol "start" (current token: "\" [1077] at 26:457 - 26:457)" 
** ERROR: "Expected token "end heredoc"" 
** ERROR: "Expected symbol "scalar" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "varExpressionNormal" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "varExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "unaryExpressionNotPlusminus" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "unaryExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "multiplicativeExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "additiveExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "shiftExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "relationalExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "equalityExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitXorExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "booleanAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "booleanOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "conditionalExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpressionEqual" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "printExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalXorExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "expr" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "statement" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "topStatement" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "innerStatementList" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "start" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected token "end heredoc"" 
** ERROR: "Expected symbol "scalar" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "varExpressionNormal" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "varExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "unaryExpressionNotPlusminus" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "unaryExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "multiplicativeExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "additiveExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "shiftExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "relationalExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "equalityExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitXorExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "booleanAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "booleanOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "conditionalExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpressionEqual" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "printExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalXorExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "expr" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "statement" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "topStatement" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "innerStatementList" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "start" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected token "}"" 
** ERROR: "Expected symbol "encapsVar" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "encaps" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "encapsList" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "scalar" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "varExpressionNormal" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "varExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "unaryExpressionNotPlusminus" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "unaryExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "multiplicativeExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "additiveExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "shiftExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "relationalExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "equalityExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "bitAndExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "bitXorExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "bitOrExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "booleanAndExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "booleanOrExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "conditionalExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "assignmentExpressionEqual" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "printExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "logicalAndExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "logicalXorExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "logicalOrExpression" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "expr" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "statement" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "topStatement" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "innerStatementList" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected symbol "start" (current token: " [1077] at 102:655 - 102:655)" 
** ERROR: "Expected token "]"" 
** ERROR: "Expected symbol "encapsVar" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "encaps" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "encapsList" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "scalar" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "varExpressionNormal" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "varExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "unaryExpressionNotPlusminus" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "unaryExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "multiplicativeExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "additiveExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "shiftExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "relationalExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "equalityExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "bitAndExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "bitXorExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "bitOrExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "booleanAndExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "booleanOrExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "conditionalExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "assignmentExpressionEqual" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "printExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "logicalAndExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "logicalXorExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "logicalOrExpression" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "expr" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "statement" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "topStatement" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "innerStatementList" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected symbol "start" (current token: "�R+l�\�?���" [1131] at 48:463 - 48:474)" 
** ERROR: "Expected token "end heredoc"" 
** ERROR: "Expected symbol "scalar" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "varExpressionNormal" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "varExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "unaryExpressionNotPlusminus" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "unaryExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "multiplicativeExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "additiveExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "shiftExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "relationalExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "equalityExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitXorExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "bitOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "booleanAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "booleanOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "conditionalExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpressionEqual" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "assignmentExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "printExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalAndExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalXorExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "logicalOrExpression" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "expr" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "statement" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "topStatement" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "innerStatementList" (current token: "" [1056] at -1:-1 - -1:-1)" 
** ERROR: "Expected symbol "start" (current token: "" [1056] at -1:-1 - -1:-1)" 

At this point, it stops for a while with the CPU at 100% and the memory consumption building up until it reaches about 3GB and then kdevelop crashes:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffcffff710 (LWP 3004)]
0x00007fffd4f44bf9 in Php::Parser::tokenize(QString const&, int) () from /usr/lib/libkdev4phpparser.so

Here's the backtrace:

(gdb) bt
#0  0x00007fffd4740bf9 in Php::Parser::tokenize(QString const&, int) () from /usr/lib/libkdev4phpparser.so
#1  0x00007fffd476ab46 in Php::ParseSession::createParser(int) () from /usr/lib/libkdev4phpparser.so
#2  0x00007fffd476ab7b in Php::ParseSession::parse(Php::StartAst**) () from /usr/lib/libkdev4phpparser.so
#3  0x00007fffd4c33d7c in ?? () from /usr/lib/kde4/kdevphplanguagesupport.so
#4  0x00007fffed5f3935 in ThreadWeaver::JobRunHelper::runTheJob (this=0x7fffd3d0ada0, th=0x3c108c0, job=0x6fb11c0) at ../../../threadweaver/Weaver/Job.cpp:106
#5  0x00007fffed5f3c2e in ThreadWeaver::Job::execute (this=0x6fb11c0, th=0x3c108c0) at ../../../threadweaver/Weaver/Job.cpp:135
#6  0x00007fffed5f2c4f in ThreadWeaver::ThreadRunHelper::run (this=0x7fffd3d0ae30, parent=0x116c030, th=0x3c108c0) at ../../../threadweaver/Weaver/Thread.cpp:95
#7  0x00007fffed5f31d8 in ThreadWeaver::Thread::run (this=0x3c108c0) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007ffff6769e35 in QThreadPrivate::start (arg=0x3c108c0) at thread/qthread_unix.cpp:248
#9  0x00007ffff06188ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007ffff546401d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()


Reproducible: Always

Steps to Reproduce:
Nothing special. I'm not sure which file it was trying to parse when the error happened as there's not much verbosity in the parser (could be a wishlist, maybe!)
Comment 1 Milian Wolff 2010-06-28 20:25:04 UTC
Can you please provide me with the project so I can try to find the bug? The information here is not enough for that.

If you cannot do that, please do this instead (assuming you install kdevelop from git):

1) kdebugdialog -> enable php area
2) /path/to/build-folder-from-kdevplatform/util/duchainify/duchainify --verbose /path/to/your/php-project

and paste me the output of the last command.

Thanks

PS: for future bug reports, please install debug symbols for the PHP plugin.
Comment 2 Cassiano Leal 2010-07-06 16:58:34 UTC
While trying to compile kdevelop4 I get this message:


-- Found automoc4: /usr/bin/automoc4
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
  Could NOT find KDE4Workspace (missing: KDE4Workspace_CONFIG)
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindKDE4Workspace.cmake:70 (find_package_handle_standard_args)
  debuggers/gdb/CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!

kdevplatform built and installed fine.

I am using Debian packages for everything here.
Comment 3 Cassiano Leal 2010-07-06 18:46:36 UTC
And sorry, but I can't provide you with the project since it's actually a proprietary software.

I couldn't find debugging symbols for the php plugin in the Debian repos.
Comment 4 Milian Wolff 2010-07-06 18:51:37 UTC
as it says, you need kdebase-workspace-dev packages.
Comment 5 Cassiano Leal 2010-07-06 21:26:09 UTC
Here are the last lines of duchainify up to the segfault (I have substituted the actual paths and file names):

duchainify(21670)/kdevplatform (language) KDevelop::BackgroundParserPrivate::parseDocumentsInternal: creating parse-job KUrl("file:///home/cassiano/path_to_file/SomeFile1.js") new count of active parse-jobs: 1
duchainify(21670)/kdevplatform (language) KDevelop::BackgroundParserPrivate::createParseJob: found no languages for url KUrl("file:///home/cassiano/path_to_file/SomeFile2.js")
duchainify(21670)/kdevplatform (util) Manager::updateReady: finished "/home/cassiano/path_to_file/SomeFile3.js" success:  false
processed 7882 out of 14731
duchainify(21670)/kdevplatform (language) KDevelop::BackgroundParserPrivate::parseDocumentsInternal: creating parse-job KUrl("file:///home/cassiano/path_to_file/Release 09.01.00.001 - 06_24_2009 15_15 A.md5.lst.php") new count of active parse-jobs: 1
duchainify(21670)/kdevelop (php support) Php::ParseJob::run: parsing "/home/cassiano/path_to_file/SomeFile.md5.lst.php"
Segmentation fault

These are the contents of the file that has caused the segfault:


<?php
$sSignatures = <<<END_OF_SIGNATURE
x��}��\�q�����O%��'�Qq�O(�-�L��{$1{�ߪ��3C���=��fcG�Ij�Puo�p��_|�w�6��W�7�t����|�;l����/^����"�����͖��n��>��������0�Kc�4F�m��O0�5��`L��

And then it goes on with this binary blob until it reaches EOF.
Comment 6 Milian Wolff 2010-11-05 14:12:56 UTC
this is not fixed, reopening. thanks for the information.
Comment 7 Milian Wolff 2010-12-18 15:07:05 UTC
can you attach me such a file please?
Comment 8 Justin Zobel 2020-12-13 05:17:30 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 9 Bug Janitor Service 2020-12-28 04:34:29 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2021-01-12 04:34:05 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!