Skip to content

Coredump on Ubuntu when using polls #40

Open
@csaoh

Description

@csaoh

This code (the example code from uv_poll_start with only php://stdout replaced)

<?php
$fd = fopen("php://temp","w+");

$poll = uv_poll_init(uv_default_loop(), $fd);
uv_poll_start($poll, UV::WRITABLE, function($poll, $stat, $ev, $conn){
        fwrite($conn, "Hello");
        fclose($conn);
        uv_poll_stop($poll);
});

uv_run();

results in

Aborted (core dumped)

It works fine on OS X though.

(I had to use gcc4.4 as described in #24 to make it work in the first place)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions