mfunyu / malloc

Find out the workings behind optimum memory management and recode it, as well as free and realloc.
2 stars 0 forks source link

[bug] inf loop in freelist #28

Closed mfunyu closed 8 months ago

mfunyu commented 8 months ago
$>  make correction FILENAME="test14.c"
$> MallocShowInFile=1 MallocShowHeap=1 LD_PRELOAD=./libft_malloc.so LD_LIBRARY_PATH=. ./correction 12 2> file
----------+------------------+------------------+------------------+
 [9] (72) |-> 0x7feea467d348 |<< 776 >>

----------+------------------+------------------+------------------+
 [10] (80) |
----------+------------------+------------------+------------------+
 [11] (88) |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258 |-> 0x7feea46ca258