[haiku-development] Re: malloc/free

  • From: Sean Healy <jalopeura@xxxxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Wed, 4 Oct 2017 02:31:23 +0000

On Tue, 03 Oct 2017 19:27:33 -0700, Sean Healy <jalopeura@xxxxxxxxxxx>  
wrote:

This code is dying on the call to free(). More specifically, on a call  
to assert() within free(). There are four such calls:

- assert(b->isValid()); // the block of memory
- assert(b->isValid()); // a second time, after incrementing the block  
if it was reserved by memalign
- assert(sb); // the superblock
- assert(sb->IsValid());

Just noticed that 'sb' is being printed to the terminal, so it looks like  
it's not finding the superblock. (That doesn't help me, but it might help  
those of you who know this low-level code.)

Other related posts: