Why this code snippet encounter a segmentation fault?
luaL_dostring(L, "print(\'this is a test\')"); printf("%s\\n", lua_tostring(L, -1));