Bug 1276243

Summary: gluster-nfs : Server crashed due to an invalid reference
Product: [Community] GlusterFS Reporter: Jiffin <jthottan>
Component: nfsAssignee: Jiffin <jthottan>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: mainlineCC: bugs, kkeithle, nbalacha, ndevos, rkavunga, skoduri
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1276244 (view as bug list) Environment:
Last Closed: 2016-06-16 13:41:47 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:    
Bug Blocks: 1276244    

Description Jiffin 2015-10-29 08:42:25 UTC
Description of problem:

While testing gluster nfs with tiering, a crash is observed on different scenarios when fop such as access,read etc is performed. This issue is due to the invalid usage of null referenced variable 

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

Actual results:
Crash is seen at different fops like read, access etc

Expected results:
Server should not crash even if fop failed.

Comment 1 Vijay Bellur 2015-10-29 08:43:03 UTC
REVIEW: http://review.gluster.org/12458 (nfs : avoid invalid usage of `cs` variable in nfs fops) posted (#1) for review on master by jiffin tony Thottan (jthottan)

Comment 2 Vijay Bellur 2015-10-29 10:13:00 UTC
REVIEW: http://review.gluster.org/12458 (nfs : avoid invalid usage of `cs` variable in nfs fops) posted (#2) for review on master by jiffin tony Thottan (jthottan)

Comment 3 Vijay Bellur 2015-10-29 12:08:01 UTC
REVIEW: http://review.gluster.org/12458 (nfs : avoid invalid usage of `cs` variable in nfs fops) posted (#3) for review on master by jiffin tony Thottan (jthottan)

Comment 4 Vijay Bellur 2015-10-30 08:54:57 UTC
COMMIT: http://review.gluster.org/12458 committed in master by Niels de Vos (ndevos) 
------
commit ee4f6175d1e1e6d6b82631d72c993db5691ad205
Author: Jiffin Tony Thottan <jthottan>
Date:   Thu Oct 29 12:29:04 2015 +0530

    nfs : avoid invalid usage of `cs` variable in nfs fops
    
    Due to changes from http://review.gluster.org/#/c/12162/ a path variable
    is added to nfs3_log_common_res() and usually `cs->resolvedloc.path` is
    passed for that. But in certain fop function `cs` may not filled due error
    and when it is logged using nfs3_log_common_res() results in a crash.
    This patch will fix the same.
    
    Change-Id: I5a709818923e7884bd04e329834ee352a1b3a58f
    BUG: 1276243
    Signed-off-by: Jiffin Tony Thottan <jthottan>
    Reviewed-on: http://review.gluster.org/12458
    Reviewed-by: Niels de Vos <ndevos>
    Tested-by: NetBSD Build System <jenkins.org>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: N Balachandran <nbalacha>

Comment 5 Niels de Vos 2016-06-16 13:41:47 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.8.0, please open a new bug report.

glusterfs-3.8.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://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user