Running without crash
Backtrace with mangle format
Added comment and get_memsize function