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

List:       kdevelop-bugs
Subject:    [Bug 261515] New: PHP plugin crashes adding "<?php" between html tags
From:       Miquel Canes <miquelcanes () gmail ! com>
Date:       2010-12-29 7:53:49
Message-ID: bug-261515-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

           Summary: PHP plugin crashes adding "<?php" between html tags
           Product: kdevelop
           Version: unspecified
          Platform: Archlinux Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: miquelcanes@gmail.com


Application: kdevelop (4.2.60)
KDE Platform Version: 4.5.4 (KDE 4.5.4)
Qt Version: 4.7.1
Operating System: Linux 2.6.36-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Insert a <?php between html tags inside a class function.

Code before crash:

<?php
class Test
{    
    function fun($aa)
    {
        ?>
        <table class="cs" summary="sm" width="100%" cellspacing="0"
cellpadding="0">
            <tr>
                <td class="vs"><?php echo $aa;?></td>
            </tr>

            <tr>
                <td class="vs"><a href="#" class="item_blue">item</a></td>

            </tr>
        </table>
    }
}
?>

Code "after crash":

<?php
class Test
{    
    function fun($aa)
    {
        ?>
        <table class="cs" summary="sm" width="100%" cellspacing="0"
cellpadding="0">
            <tr>
                <td class="vs"><?php echo $aa;?></td>
            </tr>
        <?php
            <tr>
                <td class="vs"><a href="#" class="item_blue">item</a></td>

            </tr>
        </table>
    }
}
?>

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
[Current thread is 1 (Thread 0xb2dbda00 (LWP 5692))]

Thread 6 (Thread 0xac2feb70 (LWP 5697)):
#0  0xb7868424 in __kernel_vsyscall ()
#1  0xb54c6f81 in select () from /lib/libc.so.6
#2  0xb629f8c1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb61ca5f9 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6157e60 in start_thread () from /lib/libpthread.so.0
#5  0xb54cdf9e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xad42cb70 (LWP 5699)):
#0  0xb5398d76 in clock_gettime () from /lib/librt.so.1
#1  0xb6220c18 in ?? () from /usr/lib/libQtCore.so.4
#2  0xb62edaf2 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb62ec342 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb62ec3dd in ?? () from /usr/lib/libQtCore.so.4
#5  0xb4824096 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4824f33 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb4825604 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb62ecb87 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#9  0xb62be769 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/libQtCore.so.4
#10 0xb62bea0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#11 0xb61c7b6b in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb4f7c62b in KDevelop::CompletionWorkerThread::run (this=0x8acd478) at
/home/mcanes/kde/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80
#13 0xb61ca5f9 in ?? () from /usr/lib/libQtCore.so.4
#14 0xb6157e60 in start_thread () from /lib/libpthread.so.0
#15 0xb54cdf9e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xacaffb70 (LWP 5711)):
[KCrash Handler]
#7  0xb7868424 in __kernel_vsyscall ()
#8  0xb5429de1 in raise () from /lib/libc.so.6
#9  0xb542b66e in abort () from /lib/libc.so.6
#10 0xb61c2042 in qt_message_output(QtMsgType, char const*) () from
/usr/lib/libQtCore.so.4
#11 0xb61c21e7 in ?? () from /usr/lib/libQtCore.so.4
#12 0xb61c22f9 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#13 0xb61c2385 in qt_assert(char const*, char const*, int) () from
/usr/lib/libQtCore.so.4
#14 0xaba776af in KDevelop::AbstractContextBuilder<Php::AstNode,
Php::IdentifierAst>::build (this=0xacafedfc, url=..., node=0xa572e3e0,
updateContext=...) at
/usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:99
#15 0xaba7c83f in Php::ContextBuilder::build (this=0xacafedfc, url=...,
node=0xa572e3e0, updateContext=...) at
/home/mcanes/kde/kdev-php/duchain/builders/contextbuilder.cpp:85
#16 0xaba707a4 in Php::DeclarationBuilder::build (this=0xacafeeb8, url=...,
node=0xa572e3e0, updateContext=...) at
/home/mcanes/kde/kdev-php/duchain/builders/declarationbuilder.cpp:123
#17 0xacc22e86 in Php::ParseJob::run (this=0x9806b58) at
/home/mcanes/kde/kdev-php/phpparsejob.cpp:151
#18 0xb71b2774 in ?? () from /usr/lib/libthreadweaver.so.4
#19 0xb71b28c1 in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from
/usr/lib/libthreadweaver.so.4
#20 0xb71b431a in ThreadWeaver::JobCollection::execute(ThreadWeaver::Thread*)
() from /usr/lib/libthreadweaver.so.4
#21 0xb71b1eea in ?? () from /usr/lib/libthreadweaver.so.4
#22 0xb71b1fdb in ThreadWeaver::Thread::run() () from
/usr/lib/libthreadweaver.so.4
#23 0xb61ca5f9 in ?? () from /usr/lib/libQtCore.so.4
#24 0xb6157e60 in start_thread () from /lib/libpthread.so.0
#25 0xb54cdf9e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xaacf8b70 (LWP 5712)):
#0  0xb7868424 in __kernel_vsyscall ()
#1  0xb615c3fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb61cacdf in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb71b0770 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0xb71b340c in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb71b03bb in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb71b34fa in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb71b0303 in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb71b3519 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb71b0303 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb71b1f1e in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb71b1fdb in ThreadWeaver::Thread::run() () from
/usr/lib/libthreadweaver.so.4
#12 0xb61ca5f9 in ?? () from /usr/lib/libQtCore.so.4
#13 0xb6157e60 in start_thread () from /lib/libpthread.so.0
#14 0xb54cdf9e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa9765b70 (LWP 5713)):
#0  0xb7868424 in __kernel_vsyscall ()
#1  0xb615c3fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb41136b7 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0xb6157e60 in start_thread () from /lib/libpthread.so.0
#4  0xb54cdf9e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb2dbda00 (LWP 5692)):
#0  0xb7868424 in __kernel_vsyscall ()
#1  0xb615c3fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb61cacdf in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/libQtCore.so.4
#3  0xb61c9d9f in QThread::wait(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb629f260 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb542ce9f in ?? () from /lib/libc.so.6
#6  0xb542ceff in exit () from /lib/libc.so.6
#7  0xb58711ab in ?? () from /usr/lib/libQtGui.so.4
#8  0xb663c7aa in KApplication::xioErrhandler(_XDisplay*) () from
/usr/lib/libkdeui.so.5
#9  0xb663c7e6 in ?? () from /usr/lib/libkdeui.so.5
#10 0xb4be0fc6 in _XIOError () from /usr/lib/libX11.so.6
#11 0xb4bde7bf in _XEventsQueued () from /usr/lib/libX11.so.6
#12 0xb4bcf4bb in XEventsQueued () from /usr/lib/libX11.so.6
#13 0xb58ad025 in ?? () from /usr/lib/libQtGui.so.4
#14 0xb48247e7 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#15 0xb482511a in ?? () from /usr/lib/libglib-2.0.so.0
#16 0xb4825604 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#17 0xb62ecb4c in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#18 0xb58ad245 in ?? () from /usr/lib/libQtGui.so.4
#19 0xb62be769 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/libQtCore.so.4
#20 0xb62bea0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#21 0xb62c345f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#22 0xb57f96a7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#23 0x080529fc in main (argc=3, argv=0xbff21b44) at
/home/mcanes/kde/kdevelop/app/main.cpp:468

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

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