Bug #63093 [Opn->Csd]: Segfault while load extension failed in zts-build
| From: | laruence@php.net | Date: | Sat, 15 Sep 2012 03:50:17 +0000 |
| Subject: | Bug #63093 [Opn->Csd]: Segfault while load extension failed in zts-build | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173456@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63093&edit=1
ID: 63093
User updated by: laruence@php.net
Reported by: laruence@php.net
Summary: Segfault while load extension failed in zts-build
-Status: Open
+Status: Closed
Type: Bug
Package: *General Issues
PHP Version: 5.3.17
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4c6678d6058fd740a9e186b49f9daa72d09ed300
Log: Fixed bug #63093 (Segfault while load extension failed in zts-build).
Previous Comments:
------------------------------------------------------------------------
[2012-09-15 03:45:16] laruence@php.net
Description:
------------
while a extension's deps is not meet, the extension will not be loaded
successfully, and will try to unloaded it.
then in ZTS build , segfault!
[Sat Sep 15 11:44:44 2012] PHP Warning: Cannot load module 'mysql' because
required module 'mysqlnd' is not loaded in Unknown on line 0
<br />
<b>Warning</b>: Cannot load module 'mysql' because required module
'mysqlnd' is
not loaded in <b>Unknown</b> on line <b>0</b><br />
Segmentation fault (core dumped)
(gdb) bt
#0 0x000000305447270e in free () from /lib64/libc.so.6
#1 0x00000000007fe964 in ts_free_id (id=0) at /home/huixinchen/opensource/php-
5.4/TSRM/TSRM.c:548
#2 0x00000000008ce251 in module_destructor (module=0x3d9e280) at
/home/huixinchen/opensource/php-5.4/Zend/zend_API.c:2268
#3 0x00000000008d70b1 in zend_hash_apply_deleter (ht=0x11a7960, p=0x3d9e220) at
/home/huixinchen/opensource/php-5.4/Zend/zend_hash.c:650
#4 0x00000000008d7322 in zend_hash_apply (ht=0x11a7960, apply_func=0x8cb75b
<zend_startup_module_ex>, tsrm_ls=0x3d1a500)
at /home/huixinchen/opensource/php-5.4/Zend/zend_hash.c:719
#5 0x00000000008cbf48 in zend_startup_modules (tsrm_ls=0x3d1a500) at
/home/huixinchen/opensource/php-5.4/Zend/zend_API.c:1788
#6 0x00000000008085ab in php_module_startup (sf=0x11900a0,
additional_modules=0x118ffe0, num_additional_modules=1)
at /home/huixinchen/opensource/php-5.4/main/main.c:2191
#7 0x0000000000a4ade5 in sapi_cli_server_startup (sapi_module=0x11900a0)
at /home/huixinchen/opensource/php-5.4/sapi/cli/php_cli_server.c:436
#8 0x0000000000a45816 in main (argc=3, argv=0x7fff50b3d948) at
/home/huixinchen/opensource/php-5.4/sapi/cli/php_cli.c:1344
Test script:
---------------
none
Expected result:
----------------
none
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63093&edit=1