Bug 1394719

Summary: libgfapi core dumps
Product: [Community] GlusterFS Reporter: rjoseph
Component: libgfapiAssignee: rjoseph
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir D <sdharane>
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, dyuan, jdenemar, knarra, ndevos, pkrempa, rbalakri, rhs-bugs, sasundar, storage-qa-internal, xuzhang, yafu, zpeng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.10.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1387558
: 1397662 1397663 1397664 (view as bug list) Environment:
Last Closed: 2017-03-06 17:33:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1387558    
Bug Blocks: 1397662, 1397663, 1397664    

Comment 1 Worker Ant 2016-11-14 10:14:08 UTC
REVIEW: http://review.gluster.org/15842 (gfapi: mempool is added to ctx pool list without lock) posted (#1) for review on master by Rajesh Joseph (rjoseph)

Comment 2 Worker Ant 2016-11-14 10:15:47 UTC
REVIEW: http://review.gluster.org/15842 (libglusterfs: mempool is added to ctx pool list without lock) posted (#2) for review on master by Rajesh Joseph (rjoseph)

Comment 3 Worker Ant 2016-11-15 05:31:22 UTC
REVIEW: http://review.gluster.org/15842 (libglusterfs:Now mempool is added to ctx pool list under a lock) posted (#3) for review on master by Rajesh Joseph (rjoseph)

Comment 4 Worker Ant 2016-11-22 12:45:38 UTC
COMMIT: http://review.gluster.org/15842 committed in master by Niels de Vos (ndevos) 
------
commit 277008a3a8583ef10cec9e4182960792e56c5c10
Author: Rajesh Joseph <rjoseph>
Date:   Mon Nov 14 15:40:32 2016 +0530

    libglusterfs:Now mempool is added to ctx pool list under a lock
    
    mempool is added to ctx pool list without any lock. This can cause undefined
    behaviour in case of multithreaded environment.
    
    Fix: modify the list only under ctx->lock
    
    Change-Id: I7bdbb3db48a899bb0e41427e149b13c0facaedba
    Signed-off-by: Rajesh Joseph <rjoseph>
    BUG: 1394719
    Reviewed-on: http://review.gluster.org/15842
    NetBSD-regression: NetBSD Build System <jenkins.org>
    Smoke: Gluster Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Raghavendra Talur <rtalur>
    Reviewed-by: Shyamsundar Ranganathan <srangana>
    Reviewed-by: Poornima G <pgurusid>
    Reviewed-by: Niels de Vos <ndevos>

Comment 5 Shyamsundar 2017-03-06 17:33:37 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.0, please open a new bug report.

glusterfs-3.10.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html
[2] https://www.gluster.org/pipermail/gluster-users/