Re: [Nfs-ganesha-devel] 2.5 Ganesha with extended API crash

2018-08-20 Thread Daniel Gryniewicz

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) ?


fsal_status_t 
 create_handle 
(*struct* 
fsal_export 
 
*export_pub 
, 
*struct* gsh_buffdesc 
 
**fh_desc 
*, 
*struct* fsal_obj_handle 
 
**pub_handle 
, 
*struct* attrlist 
 
*attrs_out 
)


*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


[Nfs-ganesha-devel] 2.5 Ganesha with extended API crash

2018-08-20 Thread Sagar M D
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) ?

 
fsal_status_t

create_handle 
(*struct*
fsal_export 

*export_pub 
,
*struct* gsh_buffdesc

**fh_desc *,
*struct* fsal_obj_handle

**pub_handle 
,
*struct* attrlist

*attrs_out 
)

*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