Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2003 14:41:22 +0100
From:      Udo Schweigert <freebsd@cert.siemens.de>
To:        "Jordan K. Hubbard" <jkh@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/lib/libc/locale ldpart.c
Message-ID:  <20031223134121.GA56900@alaska.cert.siemens.de>
In-Reply-To: <200312222045.hBMKjGOr052159@repoman.freebsd.org>
References:  <200312222045.hBMKjGOr052159@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@siemens.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031223134121.GA56900>