[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 273291] Crash when parsing php project
From:       Audun Nystad Bugge <anbugge () gmail ! com>
Date:       2011-05-29 10:02:07
Message-ID: 20110529100207.0491787BD1 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=273291





--- Comment #4 from Audun Nystad Bugge <anbugge gmail com>  2011-05-29 12:02:04 ---
The lines just before it crashes:

kdevelop(19452)/kdevelop (php support) Php::ContextBuilder::build: compiling
"/var/www/banto/modules/wolframalpha/language/norwegian.php"
ASSERT: "identifier.count() == namespaces->namespaceNameSequence->count()" in
file /home/audun/projects/kde4/kdev-php/duchain/expressionvisitor.cpp, line 707
kdevelop: Fatal IO error: client killed
KCrash: Application 'kdevelop' crashing...

norwegian.php is a quite small file:
<?php
$this->lang_mod = array( 
'MODULE_NAME' => 'Wolfram Alpha',
'NO_RESPONSE' => 'Ingen respons',
'NOT_INITIALIZED' => 'Ikke klargjort',
'FETCH_CONTENT' => 'Hent innhold',
'GOTO' => 'Vis i Wolfram|Alpha',
'SHOW_MORE' => 'Vis mer',
'QUERY' => 'Forespørsel:'
);
?>

I suspected the pipe character could be the problem, and removing it seemed to
fix this file. Which led me to the next crashing file:

<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>
Another pipe! Actually, the first time I removed the pipe it didn't fix it.
Deleting everything in the file did (It obviously didn't do anything..), and
led me to the next file: http://paste.kde.org/76051/

No pipe char there.

Side note: I recreated the Tools | Templates file, it crashed on that file
again, I then removed the pipe and it failed on another file again. (Compared
to still failing on the same file containing just the comment without the pipe
previously).

Another failed file (funny how it's always small, simple files that fail):
<?php

function gallery_autoexec()
{
    banto()->modules->addCreateMenu('gallery', 'create', 'GALLERY_CREATE_NEW');
}

?>

And so the story goes. It always fails on the same assertion, line 707. Don't
hesitate to ask for more information, I love kdevelop with php support and will
be happy to help. I'd take a look at the source myself, but I don't have time
atm..

I'm still using the git version from a couple of weeks ago, btw. I'll update
now and let you know if anything has changed since that.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic