We see two options:
C code to print
extern char end; printf(" Current heap size: %10p", sbrk(0) - (void *)&end);
[heap] segment in /proc/***/maps the post to check maps
In our case, 1 gives 0xb9dc00, while 2 "00d50000-00d71000" i.e. 0x21000. Is the option 1 real? or what is option 2 results then?
Thanks,