Re: [PHP4BETA] DSO startup fails

From: Date: Sat, 29 May 1999 13:31:19 +0000
Subject: Re: [PHP4BETA] DSO startup fails
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1163@lists.php.net to get a copy of this message
Did you build PHP from scratch? If you didn't, try a full make clean and remake. automake's dependencies don't work right at all. I can't think of anything else other than broken struct sizes that will cause target_function_table to become corrupted. I have never compiled Apache as a DSO though. Zeev On Sat, 29 May 1999, Sascha Schumann wrote: > 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 > -- ----------------------------------------------------- Zeev Suraski <zeev@zend.com> For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Beta

« previous php.version4 (#1163) next »