w command gives segmentation fault