Bug 41075

Summary: devel/gmake segfaults in non-default locale
Product: Ports & Packages Reporter: Christian Weisgerber <naddy>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Christian Weisgerber freebsd_committer 2002-07-28 04:40:01 UTC
gmake segfaults on start-up if run with a locale other than the
default "C".

Specifically, in gettext.c:read_alias_file(), alias entries are
handled as a map of alias/value pairs, which are pointers into a
string pool where the actual string data is stored.  When the string
pool is full it is realloc()ed but the pointers to the data are not
updated.

The fix below is taken from the head of the glibc CVS repository
(where gettext.c is from).  It updates the pointers into the
realloc()ed area.

How-To-Repeat: 
$ LANG=en_US.ISO8859-15 gmake --version
Comment 1 Patrick Li freebsd_committer 2002-07-28 06:49:13 UTC
Responsible Changed
From-To: freebsd-ports->portmgr

Over to maintainer
Comment 2 Ade Lovett freebsd_committer 2002-08-23 17:53:30 UTC
Responsible Changed
From-To: portmgr->ade

I'll take a look at this.
Comment 3 Maxim Sobolev freebsd_committer 2002-09-03 08:21:35 UTC
State Changed
From-To: open->closed

Committed, thank you!