Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.5.8
-
None
-
Linux, likely any
Description
bash-5.1# mariadb --default-character-set=ascii -u dbadmin -p asterisk
|
Enter password:
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 429
|
Server version: 10.5.8-MariaDB Source distribution
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
MariaDB [asterisk]> select * from blacklist;
|
Segmentation fault
|
Location of segfault:
---------------------
in find_command (name=0x5555559e80c0 "select * from blacklist;") at /sources/mariadb-10.5.8/client/mysql.cc:2207
due to Nullptr in charset_info
Expected behavior:
-----------------
Sensible error message, about missing character-sets-dir vs. requested charset
Workaround:
-----------
Specify option character-sets-dir on commandline or in (client) config file
[client]
|
character-sets-dir=/usr/share/mysql/charsets
|
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
bash-5.1# mariadb --default-character-set=ascii -u dbadmin -p asterisk
Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 429 Server version: 10.5.8-MariaDB Source distribution Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [asterisk]> select * from blacklist; Segmentation fault Location of segfault: --------------------- in find_command (name=0x5555559e80c0 "select * from blacklist;") at /sources/mariadb-10.5.8/client/mysql.cc:2207 due to Nullptr in charset_info Expected bevaior: ----------------- Sensible error message, about missing character-sets-dir vs. requested charset Workaround: ----------- Specify option character-sets-dir on commandline or in (client) config file [client] character-sets-dir=/usr/share/mysql/charsets |
{noformat}
bash-5.1# mariadb --default-character-set=ascii -u dbadmin -p asterisk Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 429 Server version: 10.5.8-MariaDB Source distribution Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [asterisk]> select * from blacklist; Segmentation fault {noformat} Location of segfault: --------------------- in find_command (name=0x5555559e80c0 "select * from blacklist;") at /sources/mariadb-10.5.8/client/mysql.cc:2207 due to Nullptr in charset_info Expected behavior: ----------------- Sensible error message, about missing character-sets-dir vs. requested charset Workaround: ----------- Specify option character-sets-dir on commandline or in (client) config file {noformat} [client] character-sets-dir=/usr/share/mysql/charsets {noformat} |
Labels | beginner-friendly |
Labels | beginner-friendly |
Labels | need_feedback |
Labels | need_feedback |
Component/s | Scripts & Clients [ 11002 ] | |
Fix Version/s | 10.2.38 [ 25207 ] | |
Fix Version/s | 10.3.29 [ 25206 ] | |
Fix Version/s | 10.4.19 [ 25205 ] | |
Fix Version/s | 10.5.10 [ 25204 ] | |
Fix Version/s | 10.2.32, 10.3.24, 10.4.14, 10.5.5 [ 25720 ] | |
Assignee | Sergei Golubchik [ serg ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 10.2.32, 10.3.24, 10.4.14, 10.5.5 [ 25720 ] |
Workflow | MariaDB v3 [ 119185 ] | MariaDB v4 [ 158908 ] |
I cannot repeat that, there is no crash for me, charset_info isn't NULL, because ascii is a compiled-in charset, so it does not need any character-sets-dir.
How did you compile?