log_shme() function added and DBG_SHME flag