[Bugs] [Bug 1728047] New: interrupts leak memory

bugzilla at redhat.com bugzilla at redhat.com
Mon Jul 8 22:07:11 UTC 2019


            Bug ID: 1728047
           Summary: interrupts leak memory
           Product: GlusterFS
           Version: mainline
            Status: NEW
         Component: fuse
          Assignee: bugs at gluster.org
          Reporter: csaba at redhat.com
                CC: bugs at gluster.org
  Target Milestone: ---
    Classification: Community

Description of problem:

When the glusterfs fuse client gets an INTERRUPT message (ie. a process gets
SIGINT while in a syscall to the filesystem), not all data allocated by the
handler code is freed.

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

>= 6.0

The issue appears with the introduction of the interrupt handling framework.

How reproducible:


Steps to Reproduce:
1. Compile the test helper of the tests/features/interrupt.t test,

  $ gcc -o open_and_sleep tests/features/open_and_sleep.c

2. Mount a glusterfs volume 
3. Run the command used in tests/features/interrupt.t in a loop against some
file in the mount:

   $ while :; do ./open_and_sleep <SOME-FILE> | { sleep 0.1; xargs -n1 kill
-INT; }
3. Take statedumps at regular intervals and check gf_fuse_mt_iov_base memusage:

   # grep -A5 gf_fuse_mt_iov_base <STATEDUMP>

Actual results:

Values of size and num_alloc fields monotonously grow with time across

Expected results:

Values of size and num_alloc fields stay low across statedumps.

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