Add logs of debug info to debuge a strange memory corruption