Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.0.4, 5.5.33a
-
None
Description
On INSTALL SONAME 'ha_tokudb.so' when TokuDB cannot be installed (for example, because transparent hugepages are enabled), MariaDB hangs.
The reason is the remove_status_vars() function that has incorrectly implemented binary search to remove plugin variables from the all-variables list. The code
for (; b-a > 0; c= (a+b)/2)
|
{
|
res= show_var_cmp(list, all+c);
|
if (res < 0)
|
b= c;
|
else if (res > 0)
|
a= c;
|
else
|
break;
|
}
|
in my test, a=129, b=130. So, c=129, in comparison I get res > 0, and the loop continues till infinity.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Alexander Barkov [ bar ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | defaullt [ 29417 ] | MariaDB v2 [ 42908 ] |
Workflow | MariaDB v2 [ 42908 ] | MariaDB v3 [ 61940 ] |
Workflow | MariaDB v3 [ 61940 ] | MariaDB v4 [ 147160 ] |