[Barrelfish-users] Bug in malloc()/free() ?
Zeus Gómez Marmolejo
zeus.gomez at bsc.es
Wed Sep 21 15:13:33 CEST 2011
Hi,
Here I introduce you a pretty simple program:
int main(int argc, char **argv)
{
void *p;
int i;
for(i=0; ;i++)
{
p = malloc(65536);
if (p==NULL)
USER_PANIC("malloc() returned NULL at %d", i);
free (p);
}
return 0;
}
This is ALWAYS aborting as:
ERROR: myapp.0 in morecore_alloc()
../barrelfish/lib/barrelfish/morecore.c:85
ERROR: vspace_mmu_aware_map fail
Failure: ( libbarrelfish) Out of space in vspace_mmu_aware_map() function
[LIB_ERR_VSPACE_MMU_AWARE_NO_SPACE]
myapp.0 in main() ../barrelfish/usr/tests/myapp/myapp.c:12
malloc() returned NULL at 16382
Aborted
With the latest Barrelfish tree. Are you aware of this?
--
Zeus Gómez Marmolejo
Barcelona Supercomputing Center
PhD student
http://www.bsc.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20110921/9f43bb10/attachment.html
More information about the Barrelfish-users
mailing list