[Bugs] [Bug 1335187] New: tier: uninitialized memory use

bugzilla at redhat.com bugzilla at redhat.com
Wed May 11 13:55:49 UTC 2016


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

            Bug ID: 1335187
           Summary: tier: uninitialized memory use
           Product: GlusterFS
           Version: mainline
         Component: tiering
          Assignee: bugs at gluster.org
          Reporter: kkeithle at redhat.com
        QA Contact: bugs at gluster.org
                CC: bugs at gluster.org



Description of problem:

  CC       tier.lo
tier.c:1922:13: warning: variable 'promote_thread' is used uninitialized
whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (ret) {
            ^~~
tier.c:1949:23: note: uninitialized use occurs here
        pthread_join (promote_thread, NULL);
                      ^~~~~~~~~~~~~~
tier.c:1922:9: note: remove the 'if' if its condition is always false
        if (ret) {
        ^~~~~~~~~~
tier.c:1897:33: note: initialize the variable 'promote_thread' to silence this
warning
        pthread_t promote_thread;



also release-3.8 and release-3.7


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list