From owner-freebsd-questions@FreeBSD.ORG Sun Feb 4 02:52:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E745216A400 for ; Sun, 4 Feb 2007 02:52:45 +0000 (UTC) (envelope-from tlt@tltodd.com) Received: from tltodd.com (tltodd.com [64.80.250.209]) by mx1.freebsd.org (Postfix) with ESMTP id 78E7A13C428 for ; Sun, 4 Feb 2007 02:52:43 +0000 (UTC) (envelope-from tlt@tltodd.com) Received: (from tlt@localhost) by tltodd.com (8.9.3/8.9.3) id UAA05980 for freebsd-questions@freebsd.org; Sat, 3 Feb 2007 20:41:56 -0600 (CST) (envelope-from tlt) Date: Sat, 3 Feb 2007 20:41:56 -0600 From: Terry Todd To: freebsd-questions@freebsd.org Message-ID: <20070203204156.A4743@badger.tltodd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Subject: phpMyAdmin httpd segmentation fault X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2007 02:52:46 -0000 I installed FreeBSD 6.2-RELEASE, php-5.1.6_3, php5-extensions-1.0, mysql-5.0.27 and apache_1.3.37_1. php -i now works Ok after I moved recode.so to the top of the list of extensions in extensions.ini. It took a while to figure that one out. Before that php -i would seg fault and core dump. It took some google searching and using gdb on the core file to fix it. A test web page for phpinfo works fine too. Mysql works OK from the command line. However I can't get phpMyAdmin to work. It seg faults in reading /usr/local/www/phpMyAdmin/libraries/url_generating.lib.php There is no core dump produced. I ran ktrace httpd -X Then when I try to open the phpMyAdmin/index.php page in a browser httpd seg faults. Here is the tail of kdump from the ktrace.out from the above ktrace. .... 1372 httpd CALL gettimeofday(0xbfbf7158,0) 1372 httpd RET gettimeofday 0 1372 httpd CALL lstat(0xbfbf75b0,0xbfbf70f0) 1372 httpd NAMI "/usr" 1372 httpd RET lstat 0 1372 httpd CALL lstat(0xbfbf75b0,0xbfbf70f0) 1372 httpd NAMI "/usr/local" 1372 httpd RET lstat 0 1372 httpd CALL lstat(0xbfbf75b0,0xbfbf70f0) 1372 httpd NAMI "/usr/local/www" 1372 httpd RET lstat 0 1372 httpd CALL lstat(0xbfbf75b0,0xbfbf70f0) 1372 httpd NAMI "/usr/local/www/phpMyAdmin" 1372 httpd RET lstat 0 1372 httpd CALL lstat(0xbfbf75b0,0xbfbf70f0) 1372 httpd NAMI "/usr/local/www/phpMyAdmin/libraries" 1372 httpd RET lstat 0 1372 httpd CALL lstat(0xbfbf75b0,0xbfbf70f0) 1372 httpd NAMI "/usr/local/www/phpMyAdmin/libraries/url_generating.lib.php" 1372 httpd RET lstat 0 1372 httpd CALL open(0x845eda8,0,0x1b6) 1372 httpd NAMI "/usr/local/www/phpMyAdmin/libraries/url_generating.lib.php" 1372 httpd RET open 4 1372 httpd CALL fstat(0x4,0x8102748) 1372 httpd RET fstat 0 1372 httpd CALL lseek(0x4,0,0,0,0x1) 1372 httpd RET lseek 0 1372 httpd CALL read(0x4,0x82e3028,0x2000) 1372 httpd GIO fd 4 read 4096 bytes " $val) { $return .= $spaces . '' . "\\n"; } return $return; } /** * Generates text with URL parameters. * * * // note the ? * echo 'script.php?' . PMA_generate_common_url('mysql', 'rights'); * // produces with cookies enabled: * // script.php?db=mysql&table=rights * // with cookies disabled: * // script.php?server=1&lang=en-utf-8&db=mysql&table=rights * * $params['myparam'] = 'myvalue'; * $params['db'] = 'mysql'; * $params['table'] = 'rights'; * // note the missing ? * echo 'script.php' . PMA_generate_common_url($params); * // produces with cookies enabled: * // script.php?myparam=myvalue&db=mysql&table=rights * // with cookies disabled: * // script.php?server=1&lang=en-utf-8&myparam=myvalue&db=mysql&table=rights * * // note the missing ? * echo 'script.php' . PMA_generate_common_url(); * // produces with cookies enabled: * // script.php * // with cookies disabled: * // script.php?server=1&lang=en-utf-8 * * * @param mixed assoc. array with url params or optional string with database name * if first param is an array there is also an ? prefixed to the url * @param string optional table name only if first param is array * @param string character to use instead of '&' for deviding * multiple URL parameters from each other * * @return string string with URL parameters * * @global string the current language * @global string the current conversion charset * @global string the current connection collation * @global string the current server * @global arra" 1372 httpd RET read 6467/0x1943 1372 httpd CALL read(0x4,0x82e3028,0x2000) 1372 httpd GIO fd 4 read 0 bytes "" 1372 httpd RET read 0 1372 httpd CALL read(0x4,0x82e3028,0x2000) 1372 httpd GIO fd 4 read 0 bytes "" 1372 httpd RET read 0 1372 httpd CALL close(0x4) 1372 httpd RET close 0 1372 httpd PSIG SIGSEGV SIG_DFL I moved url_generating.lib.php to url_generating.lib.php.sav and copied url_generating.lib.php.sav to a new url_generating.lib.php. Same thing happens. I tried the latest phpMyAdmin-2.9.2 and it does the exact same thing. It always seg faults in the exact same place in the exact same way. /var/log/messages file gets: Feb 3 16:07:38 testbox kernel: pid 8512 (httpd), uid 80: exited on signal 11 /var/log/httpd-errors gets: [Sat Feb 3 16:07:39 2007] [notice] child pid 8512 exit signal Segmentation fault (11) I am out of ideas on what to try next. Anyone else have any suggestions? TIA, Terry Todd