[MDEV-31461] mariadb SIGSEGV when built with -DCLIENT_PLUGIN_DIALOG=STATIC Created: 2023-06-11 Updated: 2023-06-23 Resolved: 2023-06-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 11.0.2 |
| Fix Version/s: | 10.4.31, 10.5.22, 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Tom Donovan | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash | ||
| Environment: |
Debian GNU/Linux 12 (bookworm) x86_64 |
||
| Description |
|
If the dialog pluging is statically linked into the mariadb client app, it crashes when prompting for a password (-p),:
libmariadb/plugins/auth/dialog.c calls get_tty_password with three arguments, intending the 3-argument function in libmariadb/libmariadb/get_password.c. When statically linked, the identically named function in mysys/get_password.c apparently causes the problem. If the get_tty_password function is renamed in both libmariadb/plugins/auth/dialog.c and libmariadb/libmariadb/get_password.c, the mariadb client works correctly. |