From owner-freebsd-amd64@FreeBSD.ORG Sun May 1 10:38:33 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CCAD16A4CE for ; Sun, 1 May 2005 10:38:33 +0000 (GMT) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9F2443D31 for ; Sun, 1 May 2005 10:38:32 +0000 (GMT) (envelope-from oliver.schonrock@realtsp.com) Received: from [84.92.66.197] (helo=[192.168.0.12]) by ptb-relay01.plus.net with esmtp (Exim) id 1DSBqJ-0001WL-JL for freebsd-amd64@freebsd.org; Sun, 01 May 2005 11:38:31 +0100 Message-ID: <4274B1AC.80802@realtsp.com> Date: Sun, 01 May 2005 11:38:36 +0100 From: Oliver Schonrock User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: FBSD 5.3 + amd64 + php + mysqli extension = segfault X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 10:38:33 -0000 Hi We run 4 FreeBSD servers now and have just built first FBSD server on AMD64. Everything went quite smoothly using the amd64 version of freebsd. until... I tried to use the mysqli extension in php5.0.4 on apache 1.3.33 connecting to mysql-server-4.1.11 (all built from cvsup'd ports tree). in php mysql_connect() works ok, but the mysql_fetch_array() segfaults. this simple php script produces the error every time (via apache or with command line binary): query('select * from user;'); while ($row = $result->fetch_array(MYSQLI_ASSOC)) { print_r($row); } ?> => Segmentation fault (core dumped) the php-mysql (note no 'i') extension works fine. system info: root@pakiri# uname -a FreeBSD pakiri.realtsp.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 03:50:01 UTC 2004 root@fanboy.samsco.home:/usr/obj/usr/src/sys/GENERIC amd64 I have reverted to a generic kernel to avoid any issues there (had previously built kernel without unneeded hardware support etc) We have exactly the same applications running on several i386 (AMD Athlon and Intel Pentium) servers. These do not segfault. I have tried de/reinstalling the mysql, php, mysqli builds in many different ways (incl not in combination with mysql extension)...no change. Does anyone have any experiience running FBSD 5.3 + amd64 + php5.0.4 + mysqli extension? Or have any suggestions of how to track this down further? Thanks in advance Oliver