Bug 69047 - kdevelop crash after selecting php invocation method
Summary: kdevelop crash after selecting php invocation method
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: 3.0.0a4
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
: 49627 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-26 09:26 UTC by Soyapi Mumba
Modified: 2013-03-31 01:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Soyapi Mumba 2003-11-26 09:26:19 UTC
Version:           3.0.0a4 (using KDE KDE 3.1.1)
Installed from:    SuSE RPMs
OS:          Linux

When you open a PHP file and try to Run it (using build->run), it first says something like PHP Execution in KDevelop has not been configured and directs you to a dialogbox called customise PHP Mode. Under Invocation, I selected using an existing webserver and it crashed after clicking OK

Below is some debugging info

-------
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 2413)]
(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...0x41358cf7 in waitpid ()
   from /lib/libpthread.so.0
#0  0x41358cf7 in waitpid () from /lib/libpthread.so.0
#1  0x40a71c89 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x41357895 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x421be8ea in KIO::Job::progressId() const ()
   from /opt/kde3/lib/kde3/libkdevphpsupport.so
#5  0x421bc28a in PHPSupportPart::slotWebJobStarted(KIO::Job*) ()
   from /opt/kde3/lib/kde3/libkdevphpsupport.so
#6  0x421bdd53 in PHPSupportPart::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/kde3/libkdevphpsupport.so
#7  0x40dfd85e in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/libqt-mt.so.3
#8  0x40458f0a in KParts::ReadOnlyPart::started(KIO::Job*) ()
   from /opt/kde3/lib/libkparts.so.2
#9  0x400eb4cb in KHTMLPart::openURL(KURL const&) ()
   from /opt/kde3/lib/libkhtml.so.4
#10 0x421bc224 in PHPSupportPart::executeOnWebserver() ()
   from /opt/kde3/lib/kde3/libkdevphpsupport.so
#11 0x421bbd2b in PHPSupportPart::slotRun() ()
   from /opt/kde3/lib/kde3/libkdevphpsupport.so
#12 0x421bdb11 in PHPSupportPart::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/kde3/libkdevphpsupport.so
#13 0x40dfd8e7 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/libqt-mt.so.3
#14 0x40dfd78f in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3
#15 0x40822739 in KAction::activated() () from /opt/kde3/lib/libkdeui.so.4
#16 0x408133dd in KAction::slotActivated() () from /opt/kde3/lib/libkdeui.so.4
#17 0x408227f1 in KAction::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkdeui.so.4
#18 0x40dfd8e7 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/libqt-mt.so.3
#19 0x410f3c6a in QSignal::signal(QVariant const&) ()
   from /usr/lib/libqt-mt.so.3
#20 0x40e18328 in QSignal::activate() () from /usr/lib/libqt-mt.so.3
#21 0x40ef316b in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/libqt-mt.so.3
#22 0x40e33954 in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#23 0x40d9c5f8 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#24 0x40d9bd76 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#25 0x409fe929 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#26 0x40d3d886 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/libqt-mt.so.3
#27 0x40d3ae30 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/libqt-mt.so.3
#28 0x40d504f2 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/libqt-mt.so.3
#29 0x40db0b83 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#30 0x40db0a76 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#31 0x40d9c87f in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#32 0x0806c913 in main ()
#33 0x414b78ae in __libc_start_main () from /lib/libc.so.6
Comment 1 Jens Dagerbo 2003-11-26 10:38:17 UTC
Heh. Alpha4? You know.. we have gotten a bit better since then.. :)

Not in this case though, I got the crash. :/

Adding a few lines from my bt (same, but with line numbers):
#3  <signal handler called>
#4  0x429376a2 in KIO::Job::progressId() const (this=0x90f9c38)
    at jobclasses.h:101
#5  0x429346ca in PHPSupportPart::slotWebJobStarted(KIO::Job*) (
    this=0x90f9c38, job=0x0) at phpsupportpart.cpp:265
#6  0x4293617d in PHPSupportPart::qt_invoke(int, QUObject*) (this=0x90f9c38, 
    _id=16, _o=0xbfffe670) at phpsupportpart.moc:174
#7  0x411b0ef8 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
Comment 2 Amilcar do Carmo Lucas 2003-11-26 10:42:32 UTC
KDevelop 3 alpha4a is a very old.
The KDevelop team closed over 327 reported and confirmed issues since the release of KDevelop3.0 Alpha 4a. And we also fixed an uncountable number of non-reportrd issues.

You are strongly advised to update to the latest CVS version of KDevelop3 take a look at:
http://www.kdevelop.org/index.html?filename=branches_compiling.html
for all the details you need. If you find a problem or need help please send a mail to the mailing list:
http://www.kdevelop.org/index.html?filename=mailinglist.html
or drop us a line at the channel #kdevelop on the server irc.kde.org using ksirc, for example.
Please use the CVS version and compile it yourself because that way you can easily patch it if a bug is found.
Comment 3 Jens Dagerbo 2003-11-26 11:12:44 UTC
Subject: kdevelop/languages/php

CVS commit by dagerbo: 

Avoid crashing when the passed KIO::Job is 0 
 
CCMAIL: 69047-done@bugs.kde.org 


  M +2 -2      phpsupportpart.cpp   1.52


--- kdevelop/languages/php/phpsupportpart.cpp  #1.51:1.52
@@ -263,6 +263,6 @@ void PHPSupportPart::executeOnWebserver(
 
 void PHPSupportPart::slotWebJobStarted(KIO::Job* job){
+  if (job && job->className() == QString("KIO::TransferJob")){
   kdDebug(9018) << endl << "job started" << job->progressId();
-  if (job->className() == QString("KIO::TransferJob")){
     KIO::TransferJob *tjob = static_cast<KIO::TransferJob*>(job);
     connect(tjob,  SIGNAL(data(KIO::Job*, const QByteArray&)),


Comment 4 Soyapi Mumba 2003-11-26 12:05:18 UTC
Subject: Re:  kdevelop crash after selecting php invocation method

Sorry for the touble. I will get the latest CVS version now

Thanks alot



On Wednesday 26 November 2003 11:12, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=69047
> jens.dagerbo@swipnet.se changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
>
>
>
> ------- Additional Comments From jens.dagerbo@swipnet.se  2003-11-26 11:12
> ------- Subject: kdevelop/languages/php
>
> CVS commit by dagerbo:
>
> Avoid crashing when the passed KIO::Job is 0
>
> CCMAIL: 69047-done@bugs.kde.org
>
>
>   M +2 -2      phpsupportpart.cpp   1.52
>
>
> --- kdevelop/languages/php/phpsupportpart.cpp  #1.51:1.52
> @@ -263,6 +263,6 @@ void PHPSupportPart::executeOnWebserver(
>
>  void PHPSupportPart::slotWebJobStarted(KIO::Job* job){
> +  if (job && job->className() == QString("KIO::TransferJob")){
>    kdDebug(9018) << endl << "job started" << job->progressId();
> -  if (job->className() == QString("KIO::TransferJob")){
>      KIO::TransferJob *tjob = static_cast<KIO::TransferJob*>(job);
>      connect(tjob,  SIGNAL(data(KIO::Job*, const QByteArray&)),

Comment 5 Jens Dagerbo 2003-11-26 20:04:33 UTC
*** Bug 49627 has been marked as a duplicate of this bug. ***