Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 2010 22:32:36 GMT
From:      Bartosz Fabianowski <freebsd@chillt.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/151927: databases/mysql55-server: crash on startup as MAX_DEFAULT_DIRS too small
Message-ID:  <201011032232.oA3MWaul057142@www.freebsd.org>
Resent-Message-ID: <201011032240.oA3Me8pg090094@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011032232.oA3MWaul057142>