broken KProcess in HEAD

Gav Wood gav at kde.org
Mon Jul 21 15:25:12 BST 2003


> #define fairly recently
> my last changes were several months ago ...

well it doesn't work now, and it does in 3.1.2....

> > when built under HEAD, the command often finishes without KProcess
> > signalling processExited(...); a quick ps shows that the command is
> > zombified.
> hmm, strange.
> please apply the attached patch and report the messages. you may want to
> add more qDebug()s if the output is non-conclusive and you want to dive
> deeper into it.

i applied the patch, but it showed nothing. i then went through and put a 
qDebug << k_funcinfo at the start of every method; here's the results for a 
broken call:

kdecore (KProcess): [KProcess::KProcess()]
kdecore (KProcess): [KProcess& KProcess::operator<<(const QString&)]
kdecore (KProcess): [KProcess& KProcess::operator<<(const QString&)]
kdecore (KProcess): [KProcess& KProcess::operator<<(const QStringList&)]
kdecore (KProcess): [virtual bool KProcess::start(KProcess::RunMode, 
KProcess::Communication)]
kdecore (KProcess): [virtual int KProcess::setupCommunication(KProcess::
Communication)]
kdecore (KProcess): [virtual int KProcess::commSetupDoneP()]
kdecore (KProcess): [virtual int KProcess::commSetupDoneC()]
kopete (sms):  <<<
kdecore (KProcess): [void KProcess::slotChildError(int)]
kdecore (KProcess): [int KProcess::childError(int)]
kdecore (KProcess): [void KProcess::slotChildError(int)]
kdecore (KProcess): [int KProcess::childError(int)]
kdecore (KProcess): [bool KProcess::closeStderr()]
kdecore (KProcess): [void KProcess::slotChildOutput(int)]
kdecore (KProcess): [int KProcess::childOutput(int)]
kdecore (KProcess): [void KProcess::slotChildOutput(int)]
kdecore (KProcess): [int KProcess::childOutput(int)]
kdecore (KProcess): [bool KProcess::closeStdout()]

compare this with the output for a working call:

kdecore (KProcess): [KProcess::KProcess()]
kdecore (KProcess): [KProcess& KProcess::operator<<(const QString&)]
kdecore (KProcess): [KProcess& KProcess::operator<<(const QString&)]
kdecore (KProcess): [KProcess& KProcess::operator<<(const QStringList&)]
kdecore (KProcess): [virtual bool KProcess::start(KProcess::RunMode, 
KProcess::Communication)]
kdecore (KProcess): [virtual int KProcess::setupCommunication(KProcess::
Communication)]
kdecore (KProcess): [virtual int KProcess::commSetupDoneP()]
kdecore (KProcess): [virtual int KProcess::commSetupDoneC()]
kopete (sms):  <<<
kdecore (KProcess): [void KProcess::slotChildError(int)]
kdecore (KProcess): [int KProcess::childError(int)]
kdecore (KProcess): [void KProcess::slotChildOutput(int)]
kdecore (KProcess): [int KProcess::childOutput(int)]
kdecore (KProcess): [void KProcess::slotChildError(int)]
kdecore (KProcess): [int KProcess::childError(int)]
kdecore (KProcess): [bool KProcess::closeStderr()]
kdecore (KProcess): [virtual void KProcess::processHasExited(int)]
kdecore (KProcess): [virtual void KProcess::commClose()]
kdecore (KProcess): [bool KProcess::closeStdin()]
kdecore (KProcess): [void KProcess::slotChildOutput(int)]
kdecore (KProcess): [int KProcess::childOutput(int)]
kdecore (KProcess): [bool KProcess::closeStdout()]
kdecore (KProcess): [bool KProcess::closeStdout()]
kdecore (KProcess): [bool KProcess::closeStderr()]
kdecore (KProcess): [bool KProcess::closePty()]
kdecore (KProcess): [int KProcess::exitStatus() const]
kopete (sms): WARNING: [void SMSSendProvider::slotSendFinished(KProcess*)] 
this = 0x845a308, es = 1, p = 0x846daf0 (should be non-zero!!)
kdecore (KProcess): [int KProcess::exitStatus() const]
kopete (sms): WARNING: [virtual KopeteMessageManager* SMSContact::manager
(bool)]  this = 0x8434f28
kdecore (KProcess): [virtual KProcess::~KProcess()]
kdecore (KProcess): [virtual bool KProcess::kill(int)]
kdecore (KProcess): [void KProcess::detach()]

any ideas now?

gav
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030721/0017f4c4/attachment.sig>


More information about the kde-core-devel mailing list