[Scummvm-devel] Dmalloc results

Claudio Matsuoka claudio at helllabs.org
Mon Nov 12 15:13:03 CET 2001


It fails.

Here's the output with FOA:

WARNING: stub setShake(0)!
debug-malloc library: dumping program, fatal error
   Error: pointer is not on block boundary (err 60)
Abort

1005606346: 526: Dmalloc version '4.6.0' from 'http://dmalloc.com/'
1005606346: 526: flags = 0x14f47583, logfile 'log'
1005606346: 526: interval = 0, addr = 0, seen # = 0
1005606346: 526: starting time = 1005606346
1005606346: 526: free: pointer is not on block boundary: pointer '0x813200c' from 'resource.cpp:630'
1005606346: 526: ERROR: _chunk_free: pointer is not on block boundary (err 60)


and the point it explodes:

    617 void Scumm::nukeResource(int type, int index) {
    618         byte *ptr;
    619
    620         debug(9, "nukeResource(%d,%d)", type, index);
    621
    622         CHECK_HEAP
    623         assert( res.address[type] );
    624         assert( index>=0 && index < res.num[type]);
    625
    626         if ((ptr = res.address[type][index]) != NULL) {
    627                 res.address[type][index] = 0;
    628                 res.flags[type][index] = 0;
    629                 _allocatedSize -= ((ResHeader*)ptr)->size;
 >>>630                 free(ptr);
    631         }
    632 }






More information about the Scummvm-devel mailing list