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. Fix: 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.
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer (via the GNATS Auto Assign Tool)
ale 2010-11-10 16:55:08 UTC FreeBSD ports repository Modified files: . UPDATING databases/mysql55-server Makefile distinfo pkg-plist pkg-plist.client databases/mysql55-server/files patch-Makefile.in patch-configure.am patch-mysys_default.c Log: Update to 5.5.7-rc release. Fix crash caused by MAX_DEFAULT_DIRS too small [1] PR: ports/151927 Submitted by: Bartosz Fabianowski <freebsd@chillt.de> 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 _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Fixed, thanks!