Bug 1354141

Summary: several problems found in failure handle logic
Product: [Community] GlusterFS Reporter: Zhou Zhengping <johnzzpcrystal>
Component: rpcAssignee: Zhou Zhengping <johnzzpcrystal>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-03 11:23:02 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:

Description Zhou Zhengping 2016-07-10 01:38:32 UTC
Description of problem:
In function rpc_transport_unix_options_build, if the variable fpath has been set into dict successfully, bug the underlying set failed. The fpath will be freed by GF_FREE and be freed in dict_unref too which will cause free twice.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Vijay Bellur 2016-07-10 01:44:48 UTC
REVIEW: http://review.gluster.org/14882 (rpc: fix several problems in failure handle logic) posted (#1) for review on master by Zhou Zhengping (johnzzpcrystal)

Comment 2 Vijay Bellur 2016-07-14 03:05:21 UTC
REVIEW: http://review.gluster.org/14882 (rpc: fix several problems in failure handle logic) posted (#2) for review on master by Zhou Zhengping (johnzzpcrystal)

Comment 3 Vijay Bellur 2016-07-14 21:14:31 UTC
COMMIT: http://review.gluster.org/14882 committed in master by Jeff Darcy (jdarcy) 
------
commit ab56ec1e99cd76d45b52d841e6b0009f94a3268b
Author: Zhou Zhengping <johnzzpcrystal>
Date:   Sun Jul 10 09:10:49 2016 -0400

    rpc: fix several problems in failure handle logic
    
    Once dynstr is set into a dict by function dict_set_dynstr, its free
    operation will be called by this dict when the dict is destroyed.
    
    Signed-off-by: Zhou Zhengping <johnzzpcrystal>
    
    Change-Id: Idd2bd19a041bcb477e1c897428ca1740fb75c5f3
    BUG: 1354141
    Reviewed-on: http://review.gluster.org/14882
    Tested-by: Zhou Zhengping <johnzzpcrystal>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Vijay Bellur <vbellur>
    Smoke: Gluster Build System <jenkins.org>