From: laruence Operating system: PHP version: 5.3.17 Package: *General Issues Bug Type: Bug Bug description:Segfault while load extension failed in zts-build
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 bug report at https://bugs.php.net/bug.php?id=63093&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63093&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63093&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63093&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63093&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=63093&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=63093&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63093&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63093&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63093&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63093&r=support Expected behavior: https://bugs.php.net/fix.php?id=63093&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63093&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63093&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63093&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63093&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63093&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63093&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63093&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63093&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63093&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63093&r=mysqlcfg