[Bugs] [Bug 1235989] New: Do null check before dict_ref

bugzilla at redhat.com bugzilla at redhat.com
Fri Jun 26 09:50:20 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1235989

            Bug ID: 1235989
           Summary: Do null check before dict_ref
           Product: GlusterFS
           Version: mainline
         Component: libglusterfsclient
          Assignee: bugs at gluster.org
          Reporter: spalai at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
For the determination of local bricks for rebalance operation,
dht_find_local_subvol_cbk populates the brick info in the dht_conf_t structure
and return a NULL dictionary. syncop_getxattr_cbk does dict_ref on the NULL
dict,hence it throws up warning message of dict being NULL everytime while
doing rebalance.


[2015-06-25 03:01:27.639192] W [dict.c:603:dict_ref] (-->
/usr/lib64/libglusterfs.so.0(_gf_log_callingfn+0x1e0)[0x7f2b463e7fc0] (-->
/usr/lib64/libglusterfs.so.0(dict_ref+0x6e)[0x7f2b463e054e] (-->
usr/lib64/libglusterfs.so.0(syncop_getxattr_cbk+0x43)[0x7f2b464275f3] (-->
/usr/lib64/glusterfs/3.7.1/xlator/cluster/distribute.so(dht_find_local_subvol_cbk+0x289)[0x7f2b3881aae9]
(-->
usr/lib64/glusterfs/3.7.1/xlator/cluster/replicate.so(afr_getxattr_node_uuid_cbk+0xec)[0x7f2b38a62edc]
))))) 0-dict: dict is NULL


Expected results:
 Shoud do a NULL check before dict_ref.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list