Re: [PHP4BETA] DSO startup fails
| From: | Sascha Schumann | Date: | Sat, 29 May 1999 13:27:10 +0000 |
| Subject: | Re: [PHP4BETA] DSO startup fails | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1162@lists.php.net to get a copy of this message | ||
On Sat, May 29, 1999 at 03:53:54PM +0300, Zeev Suraski wrote:
>
> Not that it should matter, but did you update to the latest Zend cvs as
> well? I changed it about an hour ago.
>
> Zeev
Yes, I did.
The effect is somewhat strange. zend_register_functions has a pointer to a
HashTable (target_function_table). This is only set once in the beginning to
function_table, it does not change afterwards. At least, it should not become
NULL.
Anyway, gdb shows that it has become NULL, this value gets passed to
zend_hash_add and that is the cause for the segfault.
The new backtrace (zend_register_functions has changed):
(gdb) bt
#0 zend_hash_add_or_update (ht=0x0, arKey=0x200018db020 "ereg", nKeyLength=5,
pData=0x11fffb3a0, nDataSize=32, pDest=0x0, flag=2) at zend_hash.c:127
#1 0x2000188cde4 in zend_register_functions (functions=0x200019fe430,
function_table=0x200018db020) at zend_API.c:618
#2 0x2000188d4ec in zend_register_module (module=0x200019fe4f0)
at zend_API.c:670
#3 0x2000188d828 in zend_startup_module (module=0x200019fe4f0)
at zend_API.c:569
#4 0x2000182e8a0 in module_startup_modules () at internal_functions.c:123
#5 0x200022fcf20 in php3_module_startup () at main.c:1240
#6 0x200022fade0 in php3_create_dir ()
#7 0x1200118a0 in ap_single_module_configure ()
#8 0x120008720 in load_module ()
#9 0x12000f830 in invoke_cmd ()
#10 0x12000ff9c in ap_handle_command ()
#11 0x120010250 in ap_process_resource_config ()
#12 0x120010f70 in ap_read_config ()
#13 0x12001dbc0 in main ()
#14 0x200004bf990 in __libc_start_main ()
--
Regards,
Sascha Schumann
Consultant
--
PHP 4 Beta