Bug 764424 - (GLUSTER-2692) NFS server crashes on showmount -a
NFS server crashes on showmount -a
Product: GlusterFS
Classification: Community
Component: nfs (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Gaurav
Depends On:
  Show dependency treegraph
Reported: 2011-04-08 01:42 EDT by Gaurav
Modified: 2011-09-08 03:27 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions: release-3.2.0 ,release-3.1.1 and mainline
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gaurav 2011-04-07 22:47:18 EDT
Passing invalid argument to xdr_serialize_mountlist.
Comment 1 Shehjar Tikoo 2011-04-07 23:19:59 EDT
What do you mean "invalid argument"? Elaborate.
Comment 2 Gaurav 2011-04-07 23:50:11 EDT
xdr_serialize_mountlist (struct iovec outmsg, mountlist *ml);
so here argument ml should be mountboby **.

But in mnt3svc_dump we are just pasing mountbody * as argument to mnt3svc_submit_reply which then call xdr_serialize_mountlist.
Comment 3 Gaurav 2011-04-08 01:42:38 EDT
gaurav@gaurav-Vostro-3400:~/new_gluster$ sudo showmount -a
rpc mount dump: RPC: Unable to receive; errno = Connection reset by peer
gaurav@gaurav-Vostro-3400:~/new_gluster$ sudo showmount -a
clnt_create: RPC: Program not registered

patchset: git://git.gluster.com/glusterfs.git
signal received: 11
time of crash: 2011-04-08 11:10:02
configuration details:
argp 1
backtrace 1
dlfcn 1
fdatasync 1
libpthread 1
llistxattr 1
setfsid 1
spinlock 1
epoll.h 1
xattr.h 1
st_atim.tv_nsec 1
package-string: glusterfs 3.1.0git
Comment 4 Saurabh 2011-06-09 04:53:50 EDT
its not resolved after discussion with dev.
Comment 5 Anand Avati 2011-06-22 08:40:35 EDT
PATCH: http://patches.gluster.com/patch/7565 in master (NFS : Pass valid argument in mnt3svc_dump.)
Comment 6 Vijaykumar 2011-09-06 06:58:32 EDT
It is reproducible in release-3.1. But fixed in release-3.2 and in mainline.
Comment 7 Vijaykumar 2011-09-06 21:46:22 EDT
Still it is to be fixed in release-3.1
Comment 8 Vijay Bellur 2011-09-07 23:46:51 EDT
patch pushed to release-3.1 from http://review.gluster.com/363

Note You need to log in before you can comment on or make changes to this bug.