|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-10-18 20:56 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: krakjoe
[2012-10-18 20:56 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Description: ------------ When trying to access a member of the threadclass from outside the thread after the thread was joined causes a segfault. I used the latest git version of the code, since a part of the problem is fixed there already Test script: --------------- <?php class Test3 extends Thread { var $x; public function run() { $this->x = 7; sleep(5); return 0; } } $thread3 = new Test2(); $thread3->x = 5; 1echo $thread3->x; //works(5) $thread3->start(); echo $thread3->x; //works(5 or 7 - racecondition) sleep(3); echo $thread3->x; //works(7) $thread3->join(); echo $thread3->x; //segfault ?> Expected result: ---------------- 5577 Actual result: -------------- 557Segmentation fault: 11 (core dumped)