Bug 762100 (GLUSTER-368)

Summary: setattr on a non-regular file makes glusterfs crash
Product: [Community] GlusterFS Reporter: Raghavendra Bhat <rabhat>
Component: stripeAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
client log file
none
back trace information none

Description Raghavendra Bhat 2009-11-10 07:23:27 UTC
Created attachment 100 [details]
make "ifconfig sl0 mtu 1400" work properly

Comment 1 Raghavendra Bhat 2009-11-10 10:22:43 UTC
When setattr operation is performed on a non-regular file glusterfs crashes. The client log file and the back trace is attached

Comment 2 Amar Tumballi 2009-11-11 19:24:08 UTC
the problem for this was that for non-regular file, frame->local was not set, and setattr_cbk was trying to reference a NULL pointer. Patch sent to testing..

Comment 3 Anand Avati 2009-11-13 07:13:20 UTC
PATCH: http://patches.gluster.com/patch/2159 in master (cluster/stripe: Initialize frame->local before checking for directory or regular files.)

Comment 4 Anand Avati 2009-11-16 05:41:27 UTC
PATCH: http://patches.gluster.com/patch/2224 in master (fixes in stripe)

Comment 5 Anand Avati 2009-11-19 05:53:12 UTC
PATCH: http://patches.gluster.com/patch/2264 in master (cluster/stripe: Wrong variable is checked after calloc.)