[Scummvm-devel] Dmalloc results
Christophe Thibault
Christophe at spinner.com
Mon Nov 12 16:25:02 CET 2001
that's maybe because it calls ::free() instead of Scumm::free()?
-c
-----Original Message-----
From: Claudio Matsuoka
To: scummvm-devel at lists.sourceforge.net
Sent: 11/12/01 3:12 PM
Subject: [Scummvm-devel] Dmalloc results
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 }
_______________________________________________
Scummvm-devel mailing list
Scummvm-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scummvm-devel
More information about the Scummvm-devel
mailing list