Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
03013 Misc. Minor Always Mar 9, 2009, 19:47 Jun 7, 2009, 21:43
Tester Firewave View Status Public Platform MAME (Self-compiled)
Assigned To Atari Ace Resolution Fixed OS
Status [?] Resolved Driver
Version 0.130 Fixed in Version 0.132 Build Debug
Fixed in Git Commit Github Pull Request #
Summary 03013: [debug] "Error: free a non-existant block" on TMS57002 source generation
Description
Generating TMS57002 source file...
obj/windows/mameud/build/tmsmake.exe src/emu/cpu/tms57002/tmsinstr.lst obj/windo
ws/mameud/emu/cpu/tms57002/tms57002.inc
Linking romcmp.exe...

        Musashi v3.32 68000, 68008, 68010, 68EC020, 68020, 68040 emulator
        Copyright Karl Stenerud (karl@mame.net)

Error: free a non-existant block
Steps To Reproduce
Additional Information
Github Commit
Flags Debug build specific
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
2
User avatar
No.03942
galibert
Developer
Mar 10, 2009, 11:02
That's not the tms57002. That message comes from src/osd/windows/winalloc.c which is not used by maketms. Given the message just before the error, maybe it's in m68kmake?
User avatar
No.04467
Atari Ace
Senior Tester
Jun 7, 2009, 04:22
This issue only happens with DEBUG=1 builds (which define MALLOC_DEBUG), and is due to the fact that strdup() is from the C library, but free and realloc have been redirected to the MAME versions that track memory. One possible fix is to embed core_strdup from corestr.c into the file.