Bug 762100 (GLUSTER-368) - setattr on a non-regular file makes glusterfs crash
Summary: setattr on a non-regular file makes glusterfs crash
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-368
Product: GlusterFS
Classification: Community
Component: stripe
Version: mainline
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-10 10:22 UTC by Raghavendra Bhat
Modified: 2013-12-19 00:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)
client log file (147.42 KB, text/x-log)
2009-11-10 07:22 UTC, Raghavendra Bhat
no flags Details
back trace information (4.39 KB, application/octet-stream)
2009-11-10 07:23 UTC, Raghavendra Bhat
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.