|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-15 07:57 UTC] krakjoe@php.net
[2012-11-15 07:57 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: krakjoe
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ I tried the sample thread example, but I got a Segmentation Fault Here is the backtrace: #0 0x083b14be in clean_module_class (ce=0xa4f3544, module_number=0xb6d9e07c, tsrm_ls=0xa46b9e0) at /home/php-5.3.18/Zend/zend_API.c:2091 2091 if ((*ce)->type == ZEND_INTERNAL_CLASS && (*ce)->module->module_number == *module_number) { (gdb) bt #0 0x083b14be in clean_module_class (ce=0xa4f3544, module_number=0xb6d9e07c, tsrm_ls=0xa46b9e0) at /home/php-5.3.18/Zend/zend_API.c:2091 #1 0x083bbf5b in zend_hash_apply_with_argument (ht=0xa4f1000, apply_func=0x83b14a0 <clean_module_class>, argument=0xb6d9e07c, tsrm_ls=0xa46b9e0) at /home/php-5.3.18/Zend/zend_hash.c:698 #2 0x083b56f9 in clean_module_classes (module=0xa468b40) at /home/php-5.3.18/Zend/zend_API.c:2101 #3 module_destructor (module=0xa468b40) at /home/php-5.3.18/Zend/zend_API.c:2112 #4 0x083bbdc8 in zend_hash_apply_deleter (ht=0x894eee0, p=0xa428610) at /home/php-5.3.18/Zend/zend_hash.c:612 #5 0x083bbed2 in zend_hash_reverse_apply (ht=0x894eee0, apply_func=0x83b1500 <module_registry_unload_temp>, tsrm_ls=0xa46b9e0) at /home/php-5.3.18/Zend/zend_hash.c:762 #6 0x083af58a in zend_post_deactivate_modules (tsrm_ls=0xa46b9e0) at /home/php-5.3.18/Zend/zend.c:937 #7 0x08353196 in php_request_shutdown (dummy=0xa46b9e0) at /home/php-5.3.18/main/main.c:1673 #8 0xb6f8577d in pthreads_routine (arg=0xa46b688) at /home/pthreads-0.0.37/src/object.c:808 #9 0xb70f6955 in start_thread () from /lib/i686/cmov/libpthread.so.0 #10 0xb70761de in clone () from /lib/i686/cmov/libc.so.6 Test script: --------------- <?php dl('pthreads.so'); class ThreadTest extends Thread { public function run(){ $i=0; while(++$i<100){ continue; } return $i; } } $thread = new ThreadTest(); if($thread->start()) var_dump($thread->join());