From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 3 22:40:08 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8C8E106566C for ; Wed, 3 Nov 2010 22:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 85D688FC0C for ; Wed, 3 Nov 2010 22:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oA3Me8sj090095 for ; Wed, 3 Nov 2010 22:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oA3Me8pg090094; Wed, 3 Nov 2010 22:40:08 GMT (envelope-from gnats) Resent-Date: Wed, 3 Nov 2010 22:40:08 GMT Resent-Message-Id: <201011032240.oA3Me8pg090094@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bartosz Fabianowski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A546106564A for ; Wed, 3 Nov 2010 22:32:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 095658FC12 for ; Wed, 3 Nov 2010 22:32:37 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id oA3MWa2J057143 for ; Wed, 3 Nov 2010 22:32:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id oA3MWaul057142; Wed, 3 Nov 2010 22:32:36 GMT (envelope-from nobody) Message-Id: <201011032232.oA3MWaul057142@www.freebsd.org> Date: Wed, 3 Nov 2010 22:32:36 GMT From: Bartosz Fabianowski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/151927: databases/mysql55-server: crash on startup as MAX_DEFAULT_DIRS too small X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2010 22:40:08 -0000 >Number: 151927 >Category: ports >Synopsis: databases/mysql55-server: crash on startup as MAX_DEFAULT_DIRS too small >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 03 22:40:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Bartosz Fabianowski >Release: 8.1-STABLE >Organization: >Environment: FreeBSD taiko.lan 8.1-STABLE FreeBSD 8.1-STABLE #0: Thu Sep 9 00:16:43 IST 2010 root@taiko.lan:/usr/obj/usr/src/sys/TAIKO amd64 >Description: The file mysys/default.c contains a method init_default_directories() that populates a list of directories to search for options. The maximal list size is given by MAX_DEFAULT_DIRS, set in the same file to 6. A patch included in the FreeBSD port adds an extra directory but does not bump MAX_DEFAULT_DIRS from 6 to 7. Since this issue is created by the FreeBSD port in the first place, it is not an upstream bug. >How-To-Repeat: I spotted this with an embedded MySQL server. I expect it will happen with the non-embedded server as well: Set DEFAULT_HOME_ENV in the environment, then launch the server. It will attempt to add seven directories to the list and abort. >Fix: Add a patch in the port that increases MAX_DEFAULT_DIRS by one. >Release-Note: >Audit-Trail: >Unformatted: