> Hi Krishna, The code doesn't seem to match exactly with V2.1.0 but it does
> look like nfs3_remove() entered label "out_fail". Wondering what the
> cache_status was at the time of the crash.
> 
> There were some fixes in V2.2-stable related refcounting, but I am not
sure if
> V2.2-stable fixes your issues.
> 
> What FSAL are you using? Also, if you can reproduce this under valgrind,
that
> should give us more information to see if we are using the freed entry
itself
> here.
> 
> As I said, I don't see any commit in particular that fixes this issue but
V2.2-
> stable is the current release (and it is our long term release!)

I would like to see this recreated on V2.2.0 before doing too much digging.
Due to the significant stability issues addressed in V2.2.0, it's quite
possible that issues have been fixed without understanding exactly the
impact of various fixes.

Frank

> Krishna Harathi [khara...@exablox.com] wrote:
> >    Using Ganesha version 2.1.0, NFSv3 exports and clients.
> >    We are seeing the following crash where Ganesha is trying to access
> parent
> >    inode to SetPostOpAttr() and ion the crash, we see that the parent
> >    obj_handle is NULL.
> >    Is this a known issue, and are there any recent fices in this area?
Any
> >    help is
> >    appreciated.
> >
> >  Thread 1 (LWP 6688):
> >  #0  0x0050ad94 in cache_inode_is_attrs_valid (entry=0x6b424500)
> >      at
> > /git/packaging/nfs-ganesha/nfs-ganesha/src/include/cache_inode.h:939
> >  #1  0x0050e5d8 in cache_inode_lock_trust_attrs (entry=0x6b424500,
> need_wr_lock=false)
> >      at
> > /git/packaging/nfs-ganesha/nfs-
> ganesha/src/cache_inode/cache_inode_mis
> > c.c:887
> >  #2  0x004a1e04 in cache_entry_to_nfs3_Fattr (entry=0x6b424500,
> Fattr=0x698092f0)
> >      at
> > /git/packaging/nfs-ganesha/nfs-
> ganesha/src/Protocols/NFS/nfs_proto_too
> > ls.c:3567
> >  #3  0x0049a940 in nfs_SetPostOpAttr (entry=0x6b424500,
> attr=0x698092e8)
> >      at
> > /git/packaging/nfs-ganesha/nfs-
> ganesha/src/Protocols/NFS/nfs_proto_too
> > ls.c:79
> >  #4  0x0049abc8 in nfs_SetWccData (before_attr=0x70ffdc00,
> entry=0x6b424500, wcc_data=0x698092c8)
> >      at
> > /git/packaging/nfs-ganesha/nfs-
> ganesha/src/Protocols/NFS/nfs_proto_too
> > ls.c:132
> >  #5  0x00466bbc in nfs3_remove (arg=0x5fc90358, worker=0x6f008140,
> req=0x5fc902e8, res=0x698092c0)
> >      at
> > /git/packaging/nfs-ganesha/nfs-
> ganesha/src/Protocols/NFS/nfs3_remove.c
> > :161
> >  #6  0x0045b340 in nfs_rpc_execute (req=0x5fc72d30,
> worker_data=0x6f008140)
> >      at
> > /git/packaging/nfs-ganesha/nfs-
> ganesha/src/MainNFSD/nfs_worker_thread.
> > c:1257
> >  #7  0x0045bfa8 in worker_run (ctx=0x76562f00)
> >      at
> > /git/packaging/nfs-ganesha/nfs-
> ganesha/src/MainNFSD/nfs_worker_thread.
> > c:1506
> >  #8  0x00542684 in fridgethr_start_routine (arg=0x76562f00)
> >      at
> > /git/packaging/nfs-ganesha/nfs-ganesha/src/support/fridgethr.c:562
> >  #9  0x76f47368 in start_thread () from
> > /lib/mips-linux-gnu/libpthread.so.0
> >  #10 0x76e9af18 in fcvt_r () from /lib/mips-linux-gnu/libc.so.6
> >  #11 0x00000000 in ?? ()
> >  (gdb) f 0
> >  #0  0x0050ad94 in cache_inode_is_attrs_valid (entry=0x6b424500)
> >      at /git/packaging/nfs-ganesha/nfs-
> ganesha/src/include/cache_inode.h:939
> >  939    in /git/packaging/nfs-ganesha/nfs-
> ganesha/src/include/cache_inode.h
> >
> >  (gdb) p entry->obj_handle
> >  $1 = (struct fsal_obj_handle *) 0x0
> >
> >    Regards.
> >    Krishna Harathi
> 
> > ----------------------------------------------------------------------
> > --------
> 
> > _______________________________________________
> > Nfs-ganesha-devel mailing list
> > Nfs-ganesha-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
> 
> 
>
----------------------------------------------------------------------------
--
> _______________________________________________
> Nfs-ganesha-devel mailing list
> Nfs-ganesha-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel


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

Reply via email to