cvs commit: src/lib/libc/locale ldpart.c

Jordan K. Hubbard jkh at queasyweasel.com
Tue Dec 23 16:05:14 PST 2003


*blink*!!

I'll look into this immediately, sorry guys.  That's very strange...  
It's just a straight-up commit of what's in -current.  I'll dig into it 
now and try and fix it, else I'll just back it out.

- Jordan

On Dec 23, 2003, at 5:41 AM, Udo Schweigert wrote:

> On Mon, Dec 22, 2003 at 12:45:16 -0800, Jordan K. Hubbard wrote:
>> jkh         2003/12/22 12:45:16 PST
>>
>>   FreeBSD src repository
>>
>>   Modified files:        (Branch: RELENG_4)
>>     lib/libc/locale      ldpart.c
>>   Log:
>>   MFC: fix memory leak in setlocale() helper functions.
>>   PR#: misc/59910
>>
>
> This breaks the libc.
>
> For example:
>
> /usr/obj/usr/src/bin/ls/ls
> Memory fault (core dumped)
>
> gdb shows:
> #0  0x8067fb3 in __part_load_locale ()
> (gdb) bt
> #0  0x8067fb3 in __part_load_locale ()
> #1  0x8067e4c in __monetary_load_locale ()
> #2  0x8057c8a in setlocale ()
> #3  0x80579e8 in setlocale ()
> #4  0x8048315 in main ()
> #5  0x804813e in _start ()
>
> After a buildworld it's the same for all static binaries.
>
> Best regards
>
> --
> Udo Schweigert, Siemens AG   | Voice      : +49 89 636 42170
> CT IC CERT, Siemens CERT     | Fax        : +49 89 636 41166
> D-81730 Muenchen / Germany   | email      : udo.schweigert at siemens.com
>
--
Jordan K. Hubbard
Engineering Manager, BSD technology group
Apple Computer


More information about the cvs-src mailing list