[Barrelfish-users] Unable to free() malloc'ed memory

Baumann Andrew andrewb at inf.ethz.ch
Tue Dec 6 16:51:43 CET 2011

This sounds a lot like heap corruption, which the heap implementation is not resilient to in any way. Are you sure you're not overrunning a heap object anywhere?

Otherwise, I would ask you to try to produce a small self-contained test program that demonstrates the bug.


-----Original Message-----
From: Georgios Varisteas [mailto:yorgos at kth.se] 
Sent: Tuesday, 06 December, 2011 1:23
To: barrelfish-users at lists.inf.ethz.ch
Subject: [Barrelfish-users] Unable to free() malloc'ed memory

Hello from Stockholm one more time,

I am facing a very weird and fatal error. I malloc an array of pointers (sizeof(struct *)*n) and at some point I want to resize it. Whatever method I try I get an exception from free(). I've tried manually transferring the array and using realloc(), same story.

Disassembly points to __free_locked() at what I believe to be malloc.c:113-114

Any ideas?


Barrelfish-users mailing list
Barrelfish-users at lists.inf.ethz.ch

More information about the Barrelfish-users mailing list