add NaN trap to linux version

No match.