php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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 commitsRelated reports
 [2012-09-15 03:50 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2012-09-15 03:50 UTC] laruence@php.net
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).
 [2012-09-15 03:51 UTC] laruence@php.net
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).
 [2012-09-15 03:51 UTC] laruence@php.net
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).
 [2014-10-07 23:22 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=4c6678d6058fd740a9e186b49f9daa72d09ed300
Log: Fixed bug #63093 (Segfault while load extension failed in zts-build).
 [2014-10-07 23:33 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=4c6678d6058fd740a9e186b49f9daa72d09ed300
Log: Fixed bug #63093 (Segfault while load extension failed in zts-build).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC