Segfault while load extension failed in zts-build
| Bug #63093 | Segfault while load extension failed in zts-build | ||||
|---|---|---|---|---|---|
| Submitted: | 2012-09-15 03:45 UTC | Modified: | - | ||
| From: | laruence@php.net | Assigned: | |||
| Status: | Closed | Package: | *General Issues | ||
| PHP Version: | 5.3.17 | OS: | |||
| Private report: | No | CVE-ID: | None | ||
[2012-09-15 03:45 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits