add msg print, and continue the main.cc, but run main will meet segment fault