Bug #69716 [Opn->Csd]: segfault when enabled mysqli.so module
| From: | xiangzhai83 at gmail dot com | Date: | Fri, 29 May 2015 02:35:32 +0000 |
| Subject: | Bug #69716 [Opn->Csd]: segfault when enabled mysqli.so module | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192986@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69716&edit=1
ID: 69716
User updated by: xiangzhai83 at gmail dot com
Reported by: xiangzhai83 at gmail dot com
Summary: segfault when enabled mysqli.so module
-Status: Open
+Status: Closed
Type: Bug
Package: MySQLi related
Operating System: ArchLinux
PHP Version: master-Git-2015-05-28 (Git)
Block user comment: N
Private report: N
New Comment:
mysqli.so module worked for PHP-7.x git master, but I have no idea why it failed to work yesterday
;-) https://twitter.com/xiangzhai/status/604113173260558336/photo/1
for DEBUG patch
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 757becf..7a7a7c6 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1815,6 +1815,9 @@ ZEND_API int zend_startup_module_ex(zend_module_entry *module) /* {{{ */
size_t name_len;
zend_string *lcname;
+ if (module)
+ printf("DEBUG: %s line %d: %s\n", __func__, __LINE__, module->name);
+
if (module->module_started) {
return SUCCESS;
}
Previous Comments:
------------------------------------------------------------------------
[2015-05-28 06:18:04] xiangzhai83 at gmail dot com
Description:
------------
$ gdb php
$ r -v
...
Program received signal SIGSEGV, Segmentation fault.
zend_startup_module_ex (module=0x0) at /data/project/php/php-src/Zend/zend_API.c:1818
1818 if (module->module_started) {
$ print
$1 = (zend_module_entry *) 0x0
so zend_module_entry* module is a NULL ptr.
when disabled mysqli.so module, then php -v is ok.
gcc 5.1.1
ArchLinux 4.0.4-2-ARCH ... x86_64 GNU/Linux
libmariadbclient 10.0.18
my configure argument is almost like ArchLinux`s PKGBUILD https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/php#n61
Regards,
Leslie Zhai
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69716&edit=1