The root cause of all previous stack traces of this type were caused by use-after free of an object containing node.
Matt ----- Original Message ----- > From: "Krishna Harathi" <khara...@exablox.com> > To: "nfs-ganesha-devel" <nfs-ganesha-devel@lists.sourceforge.net> > Sent: Monday, July 11, 2016 1:17:30 PM > Subject: [Nfs-ganesha-devel] Ganesha 2.3.2 crash in avltree_insert > > We got this crash, full stack trace is shown. Any help in resolving and > fixing this > is appreciated. > > > struct avltree_node *avltree_insert(...) > > { > > .... > > for (;;) { > if (parent->left == node) <--------- CRASH Here > dec_balance(parent); > else > inc_balance(parent); > if (parent == unbalanced) > break; > node = parent; > parent = get_parent(parent); > } > > > > > > } > > > Stack trace > > > (gdb) > #0 0x00000000004effcf in avltree_insert (node=0x7fdfb64f1680, > tree=0x7fdfbf0260a0) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/avl/avl.c:375 > #1 0x00000000004e57f4 in cache_inode_avl_insert_impl (entry=0x7fdfbf025f00, > v=0x7fdf095a0000, j=0, j2=0) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/cache_inode/cache_inode_avl.c:176 > #2 0x00000000004e59bf in cache_inode_avl_qp_insert (entry=0x7fdfbf025f00, > v=0x7fdf095a0000) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/cache_inode/cache_inode_avl.c:250 > #3 0x00000000004d2ee6 in cache_inode_add_cached_dirent > (parent=0x7fdfbf025f00, > name=0x7fe00fbec533 "Image~Cute_little_puppies.png_d35b.html", > entry=0x7fdfe824aa80, dir_entry=0x7fe00fbec3f0) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/cache_inode/cache_inode_readdir.c:299 > #4 0x00000000004d3257 in populate_dirent (name=0x7fe00fbec533 > "Image~Cute_little_puppies.png_d35b.html", > dir_state=0x7fe00fbec900, cookie=20667940923654349) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/cache_inode/cache_inode_readdir.c:426 > #5 0x00007fe01c1e2628 in read_dirents (dir_hdl=0x7fdfa7203a00, whence=0x0, > dir_state=0x7fe00fbec900, > cb=0x4d2f99 <populate_dirent>, eof=0x7fe00fbec91f) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/FSAL/FSAL_VFS/handle.c:1075 > #6 0x00000000004d349d in cache_inode_readdir_populate > (directory=0x7fdfbf025f00) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/cache_inode/cache_inode_readdir.c:493 > #7 0x00000000004d3e4c in cache_inode_readdir (directory=0x7fdfbf025f00, > cookie=0, nbfound=0x7fe00fbeceec, > eod_met=0x7fe00fbeceeb, attrmask=122822, cb=0x45c387 > <nfs3_readdirplus_callback>, opaque=0x7fe00fbeceb0) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/cache_inode/cache_inode_readdir.c:649 > #8 0x000000000045c153 in nfs3_readdirplus (arg=0x7fdf3b169a70, > req=0x7fdf3b1698b0, res=0x7fdf2acae7c0) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/Protocols/NFS/nfs3_readdirplus.c:292 > #9 0x00000000004469e4 in nfs_rpc_execute (reqdata=0x7fdf3b169880) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/MainNFSD/nfs_worker_thread.c:1288 > #10 0x0000000000447221 in worker_run (ctx=0x7fe01c817f80) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/MainNFSD/nfs_worker_thread.c:1548 > #11 0x000000000050feb8 in fridgethr_start_routine (arg=0x7fe01c817f80) > at > /home/kharathi/source1/oneblox/repos/packaging/nfs-ganesha-2.3.2/nfs-ganesha-2.3.2/src/support/fridgethr.c:561 > #12 0x00007fe01e5c8b50 in start_thread () from > /lib/x86_64-linux-gnu/libpthread.so.0 > #13 0x00007fe01dca67bd in clone () from /lib/x86_64-linux-gnu/libc.so.6 > #14 0x0000000000000000 in ?? () > > > > (gdb) print *node > $4 = {left = 0x7fdfb64f1a40, right = 0x7fdf04665c80, parent = 3} > (gdb) print parent > $6 = (struct avltree_node *) 0x0 > > > > > Thanks. > > Regards. > Krishna Harathi > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > _______________________________________________ > Nfs-ganesha-devel mailing list > Nfs-ganesha-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel > -- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309 ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Nfs-ganesha-devel mailing list Nfs-ganesha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel