[MDEV-16689] core-file should become a real server variable Created: 2018-07-04  Updated: 2020-08-25  Resolved: 2018-07-23

Status: Closed
Project: MariaDB Server
Component/s: Variables
Fix Version/s: 10.1.35, 10.2.17, 10.3.9

Type: Task Priority: Critical
Reporter: Hartmut Holzgraefe Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
PartOf

 Description   

The actual setting of core-file can't be detected at run time (unless applying some gdb magic maybe). So it is not possible to tell whether a mysqld process may write a core dump or not, or to identify servers where core-file may be missing from the configuration.

This was the same in MySQL until MySQL 5.5.x, but in MySQL 5.6 and above the value of core-file is exposed in SHOW VARIABLES output.

MySQL 5.6:

mysql> show variables like 'core_file';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| core_file     | ON    |
+---------------+-------+

MariaDB 10.3:

mysql> show variables like 'core_file';
Empty set (0.00 sec)



 Comments   
Comment by Hartmut Holzgraefe [ 2018-07-04 ]

Found the upstream report: https://bugs.mysql.com/bug.php?id=56124

and upstream changeset: https://github.com/mysql/mysql-server/commit/e84d1634413c183eba1488269e357b3546f890e5

Comment by Oleksandr Byelkin [ 2018-07-20 ]

revision-id: 46b3b77167242d97069e197ffe2fef25d6e53170 (mariadb-10.1.34-28-g46b3b771672)
parent(s): 323f269d4099b4a47530f0574af63292dfd89b8f
author: Oleksandr Byelkin
committer: Oleksandr Byelkin
timestamp: 2018-07-20 13:35:58 +0200
message:

MDEV-16689: core-file should become a real server variable

Port from mysql Bug#56124

Comment by Oleksandr Byelkin [ 2018-07-20 ]

revision-id: a0d33dc6ef6f380fb5a2d166e75ed6fed2dfce9d (mariadb-10.1.34-28-ga0d33dc6ef6)
parent(s): 323f269d4099b4a47530f0574af63292dfd89b8f
author: Oleksandr Byelkin
committer: Oleksandr Byelkin
timestamp: 2018-07-20 17:35:52 +0200
message:

MDEV-16689: core-file should become a real server variable

Mysql Bug#56124 bug analog fix using Sys_var_bit.

Comment by Oleksandr Byelkin [ 2018-07-23 ]

got OK from Wlad

Generated at Thu Feb 08 08:30:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.