spidermonkey icon indicating copy to clipboard operation
spidermonkey copied to clipboard

SpiderMonkey can't works with ptheads (php crash)

Open EvgenyUnvsoft opened this issue 12 years ago • 0 comments

Description:

OS: win8 PHP 5.5.5 pthread 0.45 spidermonkey 1.0.0

when thread finish work php process dies without any messages. If i disable spidermonkey extension all works fine.

Test script:

class MyThread extends Thread { private $name; function __construct($name) { $this->name = $name; } function run() { $res = pow(mt_rand(), mt_rand()); printf("Thread: %s (%s)\n", $this->name, uniqid()); flush(); sleep(1); } } $threads_max = 10; $threads = array(); for ($i = 0; $i < $threads_max; $i++) { printf("Creating thread: %s\n", $i); $threads[$i] = new MyThread("Thread " . $i); } foreach ($threads as $thread) $thread->start();

Expected result:

normal finish of script

Actual result:

message from windows that script died

EvgenyUnvsoft avatar Dec 12 '13 14:12 EvgenyUnvsoft