From owner-freebsd-ports@FreeBSD.ORG Sun May 1 11:44:40 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E75F16A4CE for ; Sun, 1 May 2005 11:44:40 +0000 (GMT) Received: from dev.bmby.co.il (l192-114-46-204.broadband.actcom.net.il [192.114.46.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id B58CB43D41 for ; Sun, 1 May 2005 11:44:37 +0000 (GMT) (envelope-from uzi@bmby.com) Received: from [10.0.0.3] ([10.0.0.3]) by dev.bmby.co.il (8.12.9/8.12.9) with ESMTP id j41BiTqx019631; Sun, 1 May 2005 14:44:34 +0300 Message-ID: <4274C11E.4020308@bmby.com> Date: Sun, 01 May 2005 14:44:30 +0300 From: Uzi Klein User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Schonrock References: <4274B75C.2010203@realtsp.com> In-Reply-To: <4274B75C.2010203@realtsp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: FreeBSD Port: php5-mysqli-5.0.4_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 11:44:40 -0000 Oliver Schonrock wrote: ... > 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): > > > $db = new mysqli('localhost', 'root', 'mysqlrootpw', 'mysql'); > > $result = $db->query('select * from user;'); > > while ($row = $result->fetch_array(MYSQLI_ASSOC)) > { > print_r($row); > } > > ?> > > => Segmentation fault (core dumped) > I have seen mysql 4.1x dies with queries that runs fine under 4.0x. Could it be that? What application gives you the sig 11? is it apache or mysql? Please attach relevant log files etc. -- Uzi Klein B.M.B.Y Software Systems LTD. http://www.bmby.com