#15 _malloc_dbg and friends

open
nobody
None
5
2008-09-27
2008-09-27
Anonymous
No

Hi!

I'm trying to find a bug in my code using duma but I can't do it because when I try to trace my code duma breaks me because internally visual studio 2005 calls this functions (unsupported by duma)
_malloc_dbg(s, _CRT_BLOCK, _THISFILE, __LINE__)
_calloc_dbg(c, s, _CRT_BLOCK, _THISFILE, __LINE__)
_realloc_dbg(p, s, _CRT_BLOCK, _THISFILE, __LINE__)
_recalloc_dbg(p, c, s, _CRT_BLOCK, _THISFILE, __LINE__)
_expand_dbg(p, s, _CRT_BLOCK)
_free_dbg(p, _CRT_BLOCK)
_msize_dbg(p, _CRT_BLOCK)
_dupenv_s_crt(ps1, size, s2)
_dupenv_s_dbg(ps1, size, s2, _CRT_BLOCK, _THISFILE, __LINE__)
_wdupenv_s_crt(ps1, size, s2) _wdupenv_s_dbg(ps1, size, s2, _CRT_BLOCK, _THISFILE, __LINE__)

concretely when I call fgetws visual calls '_malloc_dbg' for alloc and 'free' for dealloc and duma breaks my program :(

Could you add support for this functions?

I try to do it for myself but duma hangs on DUMA_Print at start :(

Discussion

  • h_ayguen
    h_ayguen
    2009-04-11

    please send a small test program together with your patches!