[Bugs] [Bug 1339214] New: gfapi: set mem_acct for the variables created for upcall

bugzilla at redhat.com bugzilla at redhat.com
Tue May 24 12:03:48 UTC 2016


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

            Bug ID: 1339214
           Summary: gfapi: set mem_acct for the variables created for
                    upcall
           Product: GlusterFS
           Version: mainline
         Component: libgfapi
          Severity: urgent
          Assignee: bugs at gluster.org
          Reporter: skoduri at redhat.com
        QA Contact: sdharane at redhat.com
                CC: bugs at gluster.org



Description of problem:

In 'glfs_h_poll_cache_invalidation', we create a variable used 'up_inode_arg'
using calloc (which will not set any mem_acct info for that variable). But in
case of any errors during processing, we free it using 'GF_FREE' which makes
the process crash with ESEGV which trying to access mem_acct variables.

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


How reproducible:
always

Steps to Reproduce:
1. Create a 4 node ganesha cluster.
2. Create a volume and enable ganesha on it.
3. Mount the volume using vers=3 or 4 and create nested directories on the
mount point.

4. Add bricks to the volume.

gluster volume add-brick newvolume replica 2   

5. start the rebalance process:

gluster v rebalance newvolume start force

6. Observe that while rebalance is in progress, ganesha process on the mounted
node gets killed with seg fault error:


Actual results:
nfs-ganesha process crashes with ESEGV

Expected results:
nfs-ganesha process shouldn't crash.

Additional info:
This issue is originally reported in bug1339208

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