[OLPC-devel] Re: [PATCH] Fail gracefully if getgroups() fails

Peter S. Mazinger ps.m at gmx.net
Tue Aug 22 16:32:07 EDT 2006


On Tue, 22 Aug 2006, Jordan Crouse wrote:

> uClibc is pretty stuck on using legacy 16 bit UIDs.  So when one turns off
> CONFIG_UID16 in the Linux kernel, some syscalls have the annoying tendency to
> return an error when they aren't normally expected to, including getgroups().  
> 
> The following patch makes coreutils/test.c act fail gracefully if getgroups() 
> returns a -1.  This fixes a problem on the One Laptop Per Child ROM image
> whereby we were getting odd Memory exhausted messages for '[' and 'test'.
> 
> Found by Mitch Bradley <wmb at firmworks.com>

could it be, that uClibc was built with MALLOC_GLIBC_MALLOC disabled?
I have seen "Memory exhausted" many times if that option is disabled.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the Devel mailing list