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.
Add a patch in the port that increases MAX_DEFAULT_DIRS by one.
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.
Over to maintainer (via the GNATS Auto Assign Tool)
ale 2010-11-10 16:55:08 UTC
FreeBSD ports repository
databases/mysql55-server Makefile distinfo pkg-plist
Update to 5.5.7-rc release.
Fix crash caused by MAX_DEFAULT_DIRS too small 
Submitted by: Bartosz Fabianowski <firstname.lastname@example.org>
Revision Changes Path
1.987 +14 -1 ports/UPDATING
1.265 +2 -2 ports/databases/mysql55-server/Makefile
1.125 +2 -3 ports/databases/mysql55-server/distinfo
1.31 +1 -1 ports/databases/mysql55-server/files/patch-Makefile.in
1.4 +4 -22 ports/databases/mysql55-server/files/patch-configure.am
1.12 +13 -4 ports/databases/mysql55-server/files/patch-mysys_default.c
1.93 +9 -1 ports/databases/mysql55-server/pkg-plist
1.42 +5 -0 ports/databases/mysql55-server/pkg-plist.client
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"