[Bugs] [Bug 1215592] New: Crash in dht_getxattr_cbk

bugzilla at redhat.com bugzilla at redhat.com
Mon Apr 27 08:43:41 UTC 2015


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

            Bug ID: 1215592
           Summary: Crash in dht_getxattr_cbk
           Product: GlusterFS
           Version: pre-release
         Component: distribute
          Assignee: bugs at gluster.org
          Reporter: spalai at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:

 1. When two threads execute in parallel in dht_getxattr_cbk
it may so happen that, both may find local->xattr to be NULL. As
a result dht_aggregate_xattr may not get executed.

 2. In dht_getxattr_cbk,

             thread1                         thread2
T1      this_call_cnt = 2 -1
T2                                this_call_cnt = 1 - 1
T3                                fills local_xattr
T4                                DHT_STACK_UNWIND -> local_wipe
T5      tries to dereference local
        which is already freed,
        leading to crash.

Version-Release number of selected component (if applicable):


How reproducible:
 Got the crash from gerrit:
http://build.gluster.org/job/rackspace-regression-2GB-triggered/7345/consoleFull

Steps to Reproduce:
1.
2.
3.

Actual results:
client process crashes 

Expected results:


Additional info:

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