SIGSEGV in mysql_connect

From: Date: Sat, 23 Oct 1999 21:20:17 +0000
Subject: SIGSEGV in mysql_connect
Groups: php.dev 
Request: Send a blank email to php-dev+get-11849@lists.php.net to get a copy of this message
Running Apache 1.3.4/MySQL 3.21.23/PHP 3.0.12 on Red Hat Linux 5.0 with Kernel 2.0.33 Apache and MySql have been running for quite some time and I am now adding PHP. PHP seems to work okay except when I connect to MySql using mysql_connect('localhost'); (with anything in the parens) in which case it cores. The PHP module is compiled in Apache. Following are the results of a gdb trace: Program received signal SIGSEGV, Segmentation fault. 0x400c8e36 in chunk_free () at malloc.c:2824 malloc.c:2824: No such file or directory. (gdb) bt #0 0x400c8e36 in chunk_free () at malloc.c:2824 #1 0x400c852a in malloc_extend_top () at malloc.c:2343 #2 0x400c8b75 in chunk_alloc () at malloc.c:2672 #3 0x400c8605 in malloc () at malloc.c:2349 #4 0x40014e07 in my_malloc () #5 0x40013aeb in my_net_init () #6 0x40012026 in mysql_real_connect () #7 0x40011c89 in mysql_connect () #8 0x80875ae in php3_mysql_do_connect (ht=0x8150598, return_value=0x811884c, list=0x811a5a0, plist=0x811a574, persistent=0) at functions/mysql.c:600 #9 0x80876cb in php3_mysql_connect (ht=0x8150598, return_value=0x811884c, list=0x811a5a0, plist=0x811a574) at functions/mysql.c:649 #10 0x80a65ac in phpparse () at control_structures_inline.h:934 #11 0x80682e8 in php3_parse (yyin=0x814a2d0) at main.c:1553 #12 0x80685d6 in apache_php3_module_main (r=0x814796c, fd=29, display_source_mode=0, preprocessed=0) at main.c:1934 #13 0x80655a6 in send_php3 () #14 0x8065622 in send_parsed_php3 () #15 0x80b44f3 in ap_invoke_handler () #16 0x80ca029 in process_request_internal () #17 0x80ca08c in ap_process_request () #18 0x80c0b89 in child_main () #19 0x80c0d48 in make_child () #20 0x80c0ed3 in startup_children () #21 0x80c1564 in standalone_main () #22 0x80c1e73 in main () (gdb) Thank you for any assistance. Ellen

« previous php.dev (#11849) next »