child pid xxxxx exit signal Segmentation fault (11) - when I call "mysql_connect (host,user,password)"

From: Date: Sun, 04 May 2003 14:01:55 +0000
Subject: child pid xxxxx exit signal Segmentation fault (11) - when I call "mysql_connect (host,user,password)"
Groups: php.general 
Request: Send a blank email to php-general+get-146347@lists.php.net to get a copy of this message
Hi, I tried to upgrade my default instalation Slacware 8.1 (contains apache 1.3.26 ; mod_ssl 2.8.9-1.3.26; php 4.2.1; mysql 3.23.51; kernel 2.4.18; gcc 2.95.3) with new version of php 4.3.1 (as loadeable module); apache 1.3.27; mod_ssl 2.8.14-1.3.27 (all from source). For simlification not yet with new mysql, openssl. After instalation I tried to run phpMyAdmin. It fails with few rows in log like this: [notice] child pid 10537 exit signal Segmentation fault (11) (it fails when tries to call mysql_connect function) When I upgrade installation of PHP only (I keep default slacware apache and mod_ssl), it's functioning. When I upgrade apache + php (as static module), it's functioning. When I try some combination of apache + php (as loadeable moodule), it fails. I mean some combination of apache 1.3.27, 1.3.26, 1.3.24, 1.3.14 (with and/or without mod_ssl); php 4.3.1, 4.3.0, 4.2.3 these are my configuration options: APACHE (without mod_ssl): ./configure \ --enable-shared=max \ --manualdir=/var/www/htdocs/manual \ --enable-module=all PHP: ./configure \ --with-config-file-path=/usr/local/apache/conf \ --with-apxs=/usr/local/apache/bin/apxs \
        --with-mysql=/usr \
        --enable-debug
I try to create BACKTRACE (apache 1.3.27 without mos_ssl + php 4.3.1 + kernel 2.4.18): #0 0x00000000 in ?? () #1 0x4067ecec in db_open () from /lib/libnss_db.so.2 #2 0x4067edac in internal_setent () from /lib/libnss_db.so.2 #3 0x4067e3ed in _nss_db_endservent () from /lib/libnss_db.so.2 #4 0x4067e6f9 in _nss_db_getservbyname_r () from /lib/libnss_db.so.2 #5 0x40205354 in __getservbyname_r (name=0x4065b46e "mysql",
    proto=0x4065b46a "tcp", resbuf=0x40240f7c, buffer=0x8235500 "(######@(######@",
    buflen=1024, result=0xbfff5e48) at ../nss/getXXbyYY_r.c:200
#6 0x402051f5 in getservbyname (name=0x4065b46e "mysql",
    proto=0x4065b46a "tcp") at ../nss/getXXbyYY.c:145
#7 0x4064af0c in simple_command () from /usr/lib/libmysqlclient.so.10 #8 0x4064d2a7 in mysql_init () from /usr/lib/libmysqlclient.so.10 #9 0x40391d96 in php_mysql_do_connect (ht=5, return_value=0x817be64,
    this_ptr=0x0, return_value_used=1, persistent=0)
    at /usr/src/php/php-4.3.1/ext/mysql/php_mysql.c:736
#10 0x403920b5 in zif_mysql_connect (ht=5, return_value=0x817be64,
    this_ptr=0x0, return_value_used=1)
    at /usr/src/php/php-4.3.1/ext/mysql/php_mysql.c:792
#11 0x404a02f2 in execute (op_array=0x81356dc)
    at /usr/src/php/php-4.3.1/Zend/zend_execute.c:1596
#12 0x404a2686 in execute (op_array=0x81306f4)
    at /usr/src/php/php-4.3.1/Zend/zend_execute.c:2162
#13 0x4048d2d4 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/src/php/php-4.3.1/Zend/zend.c:864
#14 0x404522f3 in php_execute_script (primary_file=0xbffff488)
    at /usr/src/php/php-4.3.1/main/main.c:1573
#15 0x404a57f0 in apache_php_module_main (r=0x812743c, display_source_mode=0)
    at /usr/src/php/php-4.3.1/sapi/apache/sapi_apache.c:55
#16 0x404a6790 in send_php (r=0x812743c, display_source_mode=0,
    filename=0x812846c "/usr/local/apache/htdocs/sql/index.php")
    at /usr/src/php/php-4.3.1/sapi/apache/mod_php4.c:556
#17 0x404a680f in send_parsed_php (r=0x812743c)
    at /usr/src/php/php-4.3.1/sapi/apache/mod_php4.c:571
#18 0x08054aa9 in ap_invoke_handler () #19 0x0806a64f in process_request_internal () #20 0x0806a6b6 in ap_process_request () #21 0x08060f46 in child_main () #22 0x08061101 in make_child () #23 0x0806127c in startup_children () #24 0x0806190d in standalone_main () #25 0x0806217c in main () #26 0x4013917d in __libc_start_main (main=0x8061dd8 <main>, argc=4,
    ubp_av=0xbffff8b4, init=0x804ea8c <_init>, fini=0x8098000 <_fini>,
    rtld_fini=0x4000a534 <_dl_fini>, stack_end=0xbffff8ac)
    at ../sysdeps/generic/libc-start.c:129
Thanks for every help. Regards Martin Swiech

« previous php.general (#146347) next »