Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
Description
When using a custom memory allocator, e.g.
[mysqld_safe]
|
malloc-lib=jemalloc
|
When starting MariaDB, the mysqld_safe script attempts to learn which lib directories to use by executing mysql_config command.
However this is only provided by the MariaDB-devel package, and so isn't installed on most production servers.
As such, we get an error each time we start MariaDB, in the form of:
180703 12:52:39 mysqld_safe Can not run mysql_config --variable=pkglibdir from '/usr/bin/mysql_config'
|
MariaDB still starts OK because the mysqld_safe script also looks in the normal lib directories, where jemalloc is installed to by CentOS.
I do not think we need to see this error, as it will be common for mysql_config not to be installed. Perhaps only show the error if the allocator library isn't found in any of the normal library directories?
Attachments
Issue Links
- relates to
-
MDEV-24130 Cannot launch mariadbd via mysqld_safe
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Issue Type | Task [ 3 ] | Bug [ 1 ] |
Affects Version/s | 5.5 [ 15800 ] | |
Affects Version/s | 10.0 [ 16000 ] | |
Affects Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Fix Version/s | 10.4 [ 22408 ] |
Labels | beginner-friendly |
Assignee | Anel Husakovic [ anel ] |
Description |
When using a custom memory allocator, e.g.
[mysqld_safe] malloc-lib=jemalloc When starting MariaDB, the mysqld_safe script attempts to learn which lib directories to use by executing mysql_config command. However this is only provided by the MariaDB-devel package, and so isn't installed on most production servers. As such, we get an error each time we start MariaDB, in the form of: {code} 180703 12:52:39 mysqld_safe Can not run mysql_config --variable=pkglibdir from '/usr/bin/mysql_config' {code} MariaDB still starts OK because the mysqld_safe script also looks in the normal lib directories, where jemalloc is installed to by CentOS. I do not think we need to see this error, as it will be common for mysql_config not to be installed. Perhaps only show the error if the allocator library isn't found in any of the normal library directories? |
When using a custom memory allocator, e.g.
{code:noformat} [mysqld_safe] malloc-lib=jemalloc {code} When starting {{MariaDB}}, the {{mysqld_safe}} script attempts to learn which lib directories to use by executing {{mysql_config}} command. However this is only provided by the {{MariaDB-devel}} package, and so isn't installed on most production servers. As such, we get an error each time we start {{MariaDB}}, in the form of: {code} 180703 12:52:39 mysqld_safe Can not run mysql_config --variable=pkglibdir from '/usr/bin/mysql_config' {code} {{MariaDB}} still starts OK because the {{mysqld_safe}} script also looks in the normal lib directories, where {{jemalloc}} is installed to by {{CentOS}}. I do not think we need to see this error, as it will be common for {{mysql_config}} not to be installed. Perhaps only show the error if the allocator library isn't found in any of the normal library directories? |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Assignee | Anel Husakovic [ anel ] | Daniel Black [ danblack ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.1 [ 16100 ] |
Fix Version/s | 10.0 [ 16000 ] |
Fix Version/s | 10.2.35 [ 25022 ] | |
Fix Version/s | 10.3.26 [ 25021 ] | |
Fix Version/s | 10.4.16 [ 25020 ] | |
Fix Version/s | 10.5.7 [ 25019 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Assignee | Daniel Black [ danblack ] | Anel Husakovic [ anel ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10002 ] | Closed [ 6 ] |
Link |
This issue is blocked by |
Link |
This issue is blocked by |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 88205 ] | MariaDB v4 [ 154620 ] |