[Bugs] [Bug 1438817] New: cluster.extra-hash-regex option causes segfault

bugzilla at redhat.com bugzilla at redhat.com
Tue Apr 4 13:28:29 UTC 2017


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

            Bug ID: 1438817
           Summary: cluster.extra-hash-regex option causes segfault
           Product: GlusterFS
           Version: 3.10
         Component: libgfapi
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: simon.turcotte-langevin at ubisoft.com
        QA Contact: sdharane at redhat.com
                CC: bugs at gluster.org



Created attachment 1268659
  --> https://bugzilla.redhat.com/attachment.cgi?id=1268659&action=edit
C file that reproduces the problem.

Description of problem:
Some values for the cluster.extra-hash-regex option causes segfault when
initializing a new virtual mount with libgfapi.

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

How reproducible:
Easily, simply need a volume with the extra regex value set to something with
backslashes.

Steps to Reproduce:
1) Create a new volume
2) Set extra regex option:
     gluster volume set vol cluster.extra-hash-regex '"(.*)\\.tmp"'
3) Compile the code in attachment
4) Execute it
5) It should fail the 3rd time a virtual mount is created

Actual results:

[root at node test-native]# segfault-libgfapi
Creating virtual mount #0
Created virtual mount #0
Creating virtual mount #1
Created virtual mount #1
Creating virtual mount #2
Segmentation fault


Expected results:

[root at mtl-perf-assetstore-node01 test-native]# segfault-libgfapi
Creating virtual mount #0
Created virtual mount #0
Creating virtual mount #1
Created virtual mount #1
Creating virtual mount #2
Created virtual mount #2
Creating virtual mount #3
Created virtual mount #3
Creating virtual mount #4
Created virtual mount #4
Creating virtual mount #5
Created virtual mount #5
Creating virtual mount #6
Created virtual mount #6
Creating virtual mount #7
Created virtual mount #7
Creating virtual mount #8
Created virtual mount #8
Creating virtual mount #9
Created virtual mount #9
Creating virtual mount #10
Created virtual mount #10
[...]
Creating virtual mount #99
Created virtual mount #99


Additional info:
A valgrind output was attached along with the code.

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