Created attachment 436565 [details]
Description of problem:
We are trying to connect to a NetApp filer using CentOS 5.5. The filer doesn't seem buggy. However mount.nfs tries to connect via V3, V2 then V1. Upon connecting with V1 mount.nfs segfaults.
#0 nfsmount (spec=<value optimized out>, node=0x2b9494122010 "/mnt/nfs",
mount_opts=0x7fff93ab8dc8, running_bg=0) at nfsmount.c:1132
It crashes since there's no code in nfsmount.c:nfsmount to handle V1 replies. See particularly line 1092 and line 1109, dispatching over the version tag and then crashing in line 1132.
My suggestion is to review nfs-utils 1.1 series and go with that. Also at the moment there's no functional support for V1 anyways so dropping it should not constitute a major change. nfs-utils as included in CentOS/RHEL 5.5 is broken and should be updated.
Version-Release number of selected component (if applicable):
Issue mount mount.nfs for a server that doesn't provide proper NFS service.
Steps to Reproduce:
Exit without mounting anything.
The problem seems to be fixed in nfs-utils-1.0.9-50.el5
# mount -o nfsvers=1 bighat:/home /mnt/bighat
NFS version 1 is not supported.