[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#537369: libc6: Theoretically possible malloc failure causing the only arena to remain locked



On Fri, Jul 17, 2009 at 03:53:29PM +0100, Philip Ashmore wrote:
> Package: libc6
> Version: 2.7-18
> Severity: normal
> 
> While developing mallocpool (https://sourceforge.net/projects/mallocpool/) I've had the
> opportunity to try various configuration options for my reworking of malloc.c, such as
> not using arenas.
> In malloc.c this is defined as "the same as HAVE_MMAP" so that's set to 0 as well, to
> perform some simple tests.
> 
> I realise that the glibc used in Debian is built with WAVE_MMAP and USE_ARENAS set to 1
> but if some embedded system comes along where this isn't true then there may well be a
> problem.
> 
> This happens in __libc_malloc in the event of an allocation failure.
> The attached patch fixes the problem.
> 

There is no attached patch.

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: