[Bugs] [Bug 1396327] gluster core dump due to assert failed GF_ASSERT ( brick_index < wordcount);

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 18 04:24:55 UTC 2016


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



--- Comment #2 from George <george.lian at nokia.com> ---
Sorry, the last fix is not work.
Now we have fix it on 3.6.9 version, main branch should also have the same
issue.
the changes patch on 3.6.9 FYI:

--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -544,6 +544,12 @@

         brick_index = index;

+        if (strcmp (words[brick_index], "force") == 0) {
+               cli_err ("Wrong brick name.");
+               ret = -1;
+               goto out;
+        }
+
         if (strcmp (words[wordcount - 1], "force") == 0) {
                 is_force = _gf_true;
                 wc = wordcount - 1;
@@ -1301,6 +1307,12 @@
         brick_index = index;

 parse_bricks:
+
+        if (strcmp (words[brick_index], "force") == 0) {
+               cli_err ("Wrong brick name.");
+               ret = -1;
+               goto out;
+        }

         if (strcmp (words[wordcount - 1], "force") == 0) {
                 is_force = _gf_true;

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