This list has been deprecated. Please subscribe to the new devel list at 
lists.nfs-ganesha.org.
Looking at the code, I believe it isn't possible for fh_desc->addr to be null. Here's why:

It comes from mdcache_locate_host(), which gets it from mdc_lookup(). This get's it from mdache_copy_fh(), which allocates it with gsh_malloc(), which asserts if malloc() fails, so if that field was NULL, it would have asserted earlier. There must be some other cause of the crash.

Daniel

On 08/20/2018 10:11 AM, Sagar M D wrote:
This list has been deprecated. Please subscribe to the new devel list at 
lists.nfs-ganesha.org.



Hi,

We seen one crash with below stack trace. And core dump was not not enabled so i couldn't pin point the issue. But crash may be because of below reason and it is my hunch. Is this seen before in any  fsal (Ganesha version is 2.5) ?

<https://cvs.commvault.com/source/xref/11.0-unix/cxunix/source/MediaAgent/3dfs2/nfs3/fsal/export.c#>fsal_status_t <https://cvs.commvault.com/source/s?defs=fsal_status_t&project=11.0-unix> create_handle <https://cvs.commvault.com/source/s?refs=create_handle&project=11.0-unix>(*struct* fsal_export <https://cvs.commvault.com/source/s?defs=fsal_export&project=11.0-unix> *export_pub <https://cvs.commvault.com/source/s?refs=export_pub&project=11.0-unix>, *struct* gsh_buffdesc <https://cvs.commvault.com/source/s?defs=gsh_buffdesc&project=11.0-unix> **fh_desc <https://cvs.commvault.com/source/s?refs=fh_desc&project=11.0-unix>*, *struct* fsal_obj_handle <https://cvs.commvault.com/source/s?defs=fsal_obj_handle&project=11.0-unix> **pub_handle <https://cvs.commvault.com/source/s?refs=pub_handle&project=11.0-unix>, *struct* attrlist <https://cvs.commvault.com/source/s?defs=attrlist&project=11.0-unix> *attrs_out <https://cvs.commvault.com/source/s?refs=attrs_out&project=11.0-unix>)

*looks like fh->desc->addr is NULL here,* while copying fsal file handle it crashed.

16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (1) /lib64/libc.so.6(+0x35250) [0x7f8a35890250] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (2) /usr/lib64/ganesha/libfsaltdfs.so(copy_ganesha_fh+0) [0x7f8a32d432e4] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (3) /usr/lib64/ganesha/libfsaltdfs.so(+0x97f9) [0x7f8a32d437f9]                   --> create_handle frame. 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (4) /usr/bin/ganesha.nfsd(mdcache_locate_host+0x233) [0x543fab] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (5) /usr/bin/ganesha.nfsd(mdc_lookup+0x206) [0x54483e] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (6) /usr/bin/ganesha.nfsd() [0x53770d] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (7) /usr/bin/ganesha.nfsd(fsal_lookupp+0xed) [0x4319bd] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (8) /usr/bin/ganesha.nfsd(nfs3_readdirplus+0x5ec) [0x494650] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (9) /usr/bin/ganesha.nfsd(nfs_rpc_execute+0x1d53) [0x44c20d] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (10) /usr/bin/ganesha.nfsd() [0x44ca17] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (11) /usr/bin/ganesha.nfsd() [0x508a7a] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (12) /lib64/libpthread.so.0(+0x7dc5) [0x7f8a36290dc5] 16609 4217 08/19 11:34:15 2497585   CvBacktracer() - [bt]: (13) /lib64/libc.so.6(clone+0x6d) [0x7f8a3595273d]

Thanks,
Sagar.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to