PHP 4.0 Bug #3228 Updated: Odd behaviour (sybase related?)

From: Date: Mon, 17 Jan 2000 05:53:59 +0000
Subject: PHP 4.0 Bug #3228 Updated: Odd behaviour (sybase related?)
Groups: php.dev 
Request: Send a blank email to php-dev+get-14700@lists.php.net to get a copy of this message
ID: 3228 User Update by: simon@airdmhor.gen.nz Status: Open Bug Type: Misbehaving function Description: Odd behaviour (sybase related?) Oh, BTW, a script as trivial as <?php class Database { }; ?> has been causing apache to segfault as described in the first note above. Another example below. It looks like a rogue pointer is trashing whatever... Maybe the one that's in php_sybase_ct.c:338 as described in apache's error_log, or something trashing it. That function reads : PHP_RSHUTDOWN_FUNCTION(sybase) { efree(sybase_globals.appname); // line 338 if (sybase_globals.server_message) { efree(sybase_globals.server_message); } return SUCCESS; } Does it need to check for a NULL pointer too? I haven't got time to run purify on it tonight - maybe tomorrow. (gdb) bt #0 0x8088dc6 in zend_hash_add_or_update () #1 0x807f4fc in do_begin_class_declaration () #2 0x80dbc51 in zendparse () #3 0x808cf4b in v_compile_files () #4 0x808ce74 in compile_files () #5 0x80772b9 in php_execute_script () #6 0x8090c13 in apache_php_module_main () #7 0x8075694 in send_php () #8 0x80756de in send_parsed_php () #9 0x80eaf09 in ap_invoke_handler () #10 0x80fef6f in ap_some_auth_required () #11 0x80fefd6 in ap_process_request () #12 0x80f62f6 in ap_child_terminate () #13 0x80f6578 in ap_child_terminate () #14 0x80f6908 in ap_child_terminate () #15 0x80f6e7c in ap_child_terminate () #16 0x80f74ac in main () #17 0x401dfcb3 in __libc_start_main (main=0x80f7124 <main>, argc=1, argv=0xbffffa44, init=0x805ea0c <_init>, fini=0x812bd8c <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffa3c) at ../sysdeps/generic/libc-start.c:78 (gdb) Full Bug description available at: http://bugs.php.net/version4/?id=3228

« previous php.dev (#14700) next »