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

Udo Schweigert freebsd at cert.siemens.de
Tue Dec 23 05:41:28 PST 2003


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


More information about the cvs-src mailing list