Open gplanchat opened 10 years ago
Anyway you can see if this is fixed with #59 ? I was able to reproduce and fix a uv_spawn related issue with PHP 5.6.
Can confirm this still segfaults with #59.
@gplanchat I have updated the code to throw warnings when a pipe handle is not passed to uv_stdio_new. It appears the correct usage should be:
$ioReadPipe = uv_pipe_init($loop, true);
$ioWritePipe = uv_pipe_init($loop, true);
$ioErrorPipe = uv_pipe_init($loop, true);
$ioRead = uv_stdio_new($ioReadPipe, Uv::CREATE_PIPE | Uv::INHERIT_STREAM);
$ioWrite = uv_stdio_new($ioWritePipe, Uv::CREATE_PIPE | Uv::INHERIT_STREAM);
$ioError = uv_stdio_new($ioErrorPipe, Uv::CREATE_PIPE | Uv::INHERIT_STREAM);
Am i missing something here?
It would say yes, it is the logical path. It seems that you are trying to spawn a new process, but for the use of uv_spawn
, isn't the pipes array created by the API?
Hello,
The following code produces a segmentation fault on Ubuntu 14.04 LTS with kernel version 3.13.0 and PHP 5.5.9 :