Repost: [PHP4BETA] reproduceable SIGSEGV on mysql_connect
| From: | Johan Ekenberg | Date: | Mon, 03 Jan 2000 16:32:22 +0000 |
| Subject: | Repost: [PHP4BETA] reproduceable SIGSEGV on mysql_connect | ||
| References: | 1 | Groups: | php.dev php.version4 |
| Request: | Send a blank email to php-dev+get-14223@lists.php.net to get a copy of this message | ||
Please excuse the repost. Was this ever dealt with?
The problem persists in CVS 19991228.
Maybe it's wrong to post this to the lists, should I submit a bugreport
instead?
> In search for the segfaults in the main httpd-process that I've been
> reporting, I installed CVS-991217. Now it seems every mysql_connect is
> causing a segfault in the httpd-child. See php-code and backtrace:
>
> This boiled-down code:
> <?
> mysql_connect("", $username, $password) or die ("Unable to connect to
> database");
> ?>
> produces:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x80ebdf9 in zend_hash_index_find (ht=0x8352c84, h=4, pData=0xbffff900) at
> zend_hash.c:989
> 989 if ((p->h == h) && (p->nKeyLength == 0)) {
> (gdb) bt
> #0 0x80ebdf9 in zend_hash_index_find (ht=0x8352c84, h=4,
> pData=0xbffff900)
> at zend_hash.c:989
> #1 0x80ecc5d in zend_list_do_delete (list=0x8352c84, id=4) at
> zend_list.c:51
> #2 0x80ec701 in zend_list_delete (id=4) at zend_list.c:113
> #3 0x80e54ab in _zval_dtor (zvalue=0x923a6c8, __zend_filename=0x82bf053
> "zend_execute_API.c", __zend_lineno=151)
> at zend_variables.c:79
> #4 0x80dcbcc in shutdown_executor () at zend_execute_API.c:151
> #5 0x80e637f in zend_deactivate () at zend.c:442
> #6 0x80ce6d2 in php_request_shutdown (dummy=0x0) at main.c:810
> #7 0x815d48e in run_cleanups (c=0x866029c) at alloc.c:1940
> #8 0x815b89c in ap_clear_pool (a=0x85c8fe4) at alloc.c:683
> #9 0x815b921 in ap_destroy_pool (a=0x85c8fe4) at alloc.c:713
> #10 0x816da8b in child_main (child_num_arg=0) at http_main.c:4133
> #11 0x816dbf8 in make_child (s=0x8358254, slot=0, now=945473790) at
> http_main.c:4238
> #12 0x816dd83 in startup_children (number_to_start=20) at http_main.c:4320
> #13 0x816e404 in standalone_main (argc=2, argv=0xbffffa74) at
> http_main.c:4608
> #14 0x816ed73 in main (argc=2, argv=0xbffffa74) at http_main.c:4944
/Johan Ekenberg