Bug 838204 - Crash in posix_getxattr
Crash in posix_getxattr
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfs (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Vijay Bellur
Sachidananda Urs
Depends On:
  Show dependency treegraph
Reported: 2012-07-07 02:34 EDT by Vijay Bellur
Modified: 2013-09-23 18:32 EDT (History)
6 users (show)

See Also:
Fixed In Version: glusterfs-3.4.0qa4-1.el6rhs
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-23 18:32:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Vijay Bellur 2012-07-07 02:34:18 EDT
Description of problem:

Crash is seen in posix_getxattr (). Backtrace below:

patchset: git://git.gluster.com/glusterfs.git
signal received: 6
time of crash: 2012-07-04 13:42:53
configuration details:
argp 1
backtrace 1
dlfcn 1
fdatasync 1
libpthread 1
llistxattr 1
setfsid 1
spinlock 1
epoll.h 1
xattr.h 1
st_atim.tv_nsec 1
package-string: glusterfs 3.3.0qa45
Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 2 Raghavendra Bhat 2012-07-10 08:09:07 EDT
getxattr, removexattr and setxattr operations running parallely on a file (xattr is also same) will reproduce the crash.

A patch (http://review.gluster.com/#change,3640) has been sent for this. Once it gets accepted in master, will be backported to release-3.3 branch.
Comment 3 Amar Tumballi 2012-08-23 02:44:48 EDT
This bug is not seen in current master branch (which will get branched as RHS 2.1.0 soon). To consider it for fixing, want to make sure this bug still exists in RHS servers. If not reproduced, would like to close this.
Comment 4 Raghavendra Bhat 2012-08-23 02:50:52 EDT
http://review.gluster.com/3673 and http://review.gluster.com/3681 fixes this bug also. Its fixed now.
Comment 5 Vijay Bellur 2012-12-17 21:05:39 EST
CHANGE: http://review.gluster.org/4319 (cluster/afr: check for the -ve values returned from dict_serialized_length) merged in master by Anand Avati (avati@redhat.com)
Comment 6 Sachidananda Urs 2013-01-10 05:15:58 EST
Is not reproducible in glusterfs-3.4.0qa5.

Ran a million parallel setfattr (setting and deleting xattrs) and getfattr operations. No crashes.
Comment 7 Scott Haines 2013-09-23 18:32:44 EDT
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. 

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.


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