Bug 764424 (GLUSTER-2692) - NFS server crashes on showmount -a
Summary: NFS server crashes on showmount -a
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2692
Product: GlusterFS
Classification: Community
Component: nfs
Version: 3.1.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gaurav
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-08 05:42 UTC by Gaurav
Modified: 2011-09-08 07:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions: release-3.2.0 ,release-3.1.1 and mainline


Attachments (Terms of Use)

Description Gaurav 2011-04-08 02:47:18 UTC
Passing invalid argument to xdr_serialize_mountlist.

Comment 1 Shehjar Tikoo 2011-04-08 03:19:59 UTC
What do you mean "invalid argument"? Elaborate.

Comment 2 Gaurav 2011-04-08 03:50:11 UTC
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 05:42:38 UTC
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
/lib/libc.so.6(+0x33c20)[0x7f56b2961c20]
/lib/libc.so.6(+0x82e52)[0x7f56b29b0e52]
/lib/libc.so.6(xdr_string+0x37)[0x7f56b2a446d7]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(xdr_name+0xe)[0x7f56b0104a4e]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(xdr_mountbody+0x19)[0x7f56b0104b49]
/lib/libc.so.6(xdr_reference+0x30)[0x7f56b2a45d30]
/lib/libc.so.6(xdr_pointer+0x81)[0x7f56b2a45cf1]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(xdr_mountlist+0x15)[0x7f56b0104965]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(nfs_xdr_serialize_generic+0x70)[0x7f56b00fd940]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(mnt3svc_submit_reply+0x7a)[0x7f56b00e527a]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(mnt3svc_dump+0x53)[0x7f56b00e5833]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(nfs_rpcsvc_handle_rpc_call+0x9c)[0x7f56b01026bc]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(nfs_rpcsvc_record_update_state+0x15d)[0x7f56b0102ecd]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(nfs_rpcsvc_conn_data_handler+0x68)[0x7f56b0103218]
/usr/local/lib/libglusterfs.so.0(+0x3c254)[0x7f56b353a254]
/usr/local/lib/glusterfs/3.1.0git/xlator/nfs/server.so(nfs_rpcsvc_stage_proc+0x12)[0x7f56b0104812]
/lib/libpthread.so.0(+0x7971)[0x7f56b2cb8971]
/lib/libc.so.6(clone+0x6d)[0x7f56b2a1492d]
---------

Comment 4 Saurabh 2011-06-09 08:53:50 UTC
its not resolved after discussion with dev.

Comment 5 Anand Avati 2011-06-22 12:40:35 UTC
PATCH: http://patches.gluster.com/patch/7565 in master (NFS : Pass valid argument in mnt3svc_dump.)

Comment 6 Vijaykumar 2011-09-06 10:58:32 UTC
It is reproducible in release-3.1. But fixed in release-3.2 and in mainline.

Comment 7 Vijaykumar 2011-09-07 01:46:22 UTC
Still it is to be fixed in release-3.1

Comment 8 Vijay Bellur 2011-09-08 03:46:51 UTC
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.