View Issue Details

IDProjectCategoryView StatusLast Update
0000749XdebugUncategorizedpublic2016-12-23 21:24
Reporteredorian Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.1.0 
Summary0000749: Triggered pcntl_alarm callbacks lets to socket error when debugging with netbeans
Description

When debugging the attached code the debugger fails complaining about a broken pipe.

Steps To Reproduce

Create a netbeans project (I've not tried it with other debugger front ends) with a file containing the following code.

Stepping a breakpoint at line 5 ( echo "."; ) and then:

Debug file: Ctrl+Shift+F5
Continue: Ctrl+F5
Wait some seconds
Step Into: F7

Then a "Socket Error" should appear. The IDE log says: "Broken Pipe"

<?php

class myTest {

function test() {
    echo ".";
}

}

function a() {

$params = array();
$class = new myTest();
$invoker = new Invoker();
$invoker->invoke(array($class, 'test'), $params);
$invoker->invoke(array($class, 'test'), $params);

}

a();
a();

declare(ticks = 1);
class Invoker
{
public function invoke($callable, array $arguments)
{
pcntl_signal(SIGALRM, array($this, 'callback'), TRUE);
pcntl_alarm(1);

    $result = call_user_func_array($callable, $arguments);

    pcntl_alarm(0);
}

public function callback() { }

}

Additional Information

php 5.3.8 --enable-pcntl, current xdebug from pecl.

TagsNo tags attached.
Operating SystemUbuntu 10.04
PHP Version5.3.8

Activities

derick

2011-11-17 17:51

administrator   ~0001860

Could you please provide the remote debug log of such a session, see http://xdebug.org/docs/all_settings#remote_log on how to make one.

cheers,
Derick

edorian

2011-11-18 08:55

manager   ~0001862

I've attached the log of one run from start to Socket Exception (broken pipe).

derick

2016-11-28 18:38

administrator   ~0003807

Is this still causing you problems?

derick

2016-12-23 21:24

administrator   ~0004095

Closing this, as the requested feedback whether it's still a problem wasn't answered. Please reopen this issue if necessary.