[Bugs] [Bug 1319380] New: trash xlator : trash_unlink_mkdir_cbk() enters in an infinte loop which results segfault

bugzilla at redhat.com bugzilla at redhat.com
Sat Mar 19 06:31:59 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1319380

            Bug ID: 1319380
           Summary: trash xlator : trash_unlink_mkdir_cbk() enters in an
                    infinte loop which results segfault
           Product: GlusterFS
           Version: 3.7.9
         Component: trash-xlator
          Keywords: Triaged
          Severity: medium
          Priority: medium
          Assignee: bugs at gluster.org
          Reporter: anoopcs at redhat.com
                CC: anoopcs at redhat.com, bugs at gluster.org,
                    jthottan at redhat.com, pkarampu at redhat.com
        Depends On: 1318757



+++ This bug was initially created as a clone of Bug #1318757 +++

Description of problem:

The trash_unlink_mkdir() ends up in infinte loop due to the mkdir failure
during creation of directory hierarchy for deleted file path.This will result
in segfault of the brick process

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

How reproducible:
always

Actual results:
result in crash

Expected results:
should handle it gracefully

Additional info:
Above mentioned issue is reported in
https://build.gluster.org/job/rackspace-regression-2GB-triggered/19112/consoleFull

--- Additional comment from Vijay Bellur on 2016-03-17 23:11:50 IST ---

REVIEW: http://review.gluster.org/13771 (features/trash: Handle unexpected
errors during mkdir) posted (#1) for review on master by Anoop C S
(anoopcs at redhat.com)

--- Additional comment from Vijay Bellur on 2016-03-19 01:49:35 IST ---

COMMIT: http://review.gluster.org/13771 committed in master by Jeff Darcy
(jdarcy at redhat.com) 
------
commit 7b8e82f80942b862f30d3fb72c7eecb23fcae226
Author: Anoop C S <anoopcs at redhat.com>
Date:   Thu Mar 17 22:44:12 2016 +0530

    features/trash: Handle unexpected errors during mkdir

    When expected directory hierarchy in not present in trash directory,
    trash translator tries to create it inside the same. Any errors from
    posix other than the expected ones should be handled properly during
    an internal mkdir call and logged accordingly explaining the reason
    for not moving the file to trash directory.

    Change-Id: I4e19637138ea4fb92f9301be372ac19542a6aed8
    BUG: 1318757
    Signed-off-by: Anoop C S <anoopcs at redhat.com>
    Reviewed-on: http://review.gluster.org/13771
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: jiffin tony Thottan <jthottan at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1318757
[Bug 1318757] trash xlator : trash_unlink_mkdir_cbk() enters in an infinte
loop which results segfault
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list