[so] Checker Windows + probleme malloc

Daniel Baluta daniel.baluta at gmail.com
Wed Feb 29 20:10:57 EET 2012


2012/2/29 Corina Buhai <corinabuhai90 at yahoo.com>:
>
>  Buna,
>
> In legatura cu checkerul pe Windows, pe vmchecker imi pica anumite teste din
> cauza outputului diferit.
> Eu am verificat outputurile manual si difera doar prin spatii si /sau linii.
> A mai intampinat cineva problema aceasta?
>
> Iar pe wmchecker linux primesc la fiecare test urmatoarea eroare:
>
> tema0: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char
> *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk,
> fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned
> long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *
> (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) &&
> ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)'
>  failed.
> ./_test/run_test.sh: line 119:  8856 Aborted                 (core dumped)
> $EXEC_NAME 256 $input_f > $out_f
> _test/outputs/test1.out vs _test/ref/test1.ref:

Legat de eroare de mai sus sigur corupi cumva memoria. Folosește
valgrind să investighezi.

thanks,
Daniel.

[1] http://valgrind.org/docs/manual/quick-start.html


More information about the so mailing list