check attr is not DT_UNKNOWN