Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-16689

core-file should become a real server variable

Details

    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)
      

      Attachments

        Activity

          hholzgra Hartmut Holzgraefe added a comment - Found the upstream report: https://bugs.mysql.com/bug.php?id=56124 and upstream changeset: https://github.com/mysql/mysql-server/commit/e84d1634413c183eba1488269e357b3546f890e5

          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

          sanja Oleksandr Byelkin added a comment - 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 —

          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.

          sanja Oleksandr Byelkin added a comment - 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.

          got OK from Wlad

          sanja Oleksandr Byelkin added a comment - got OK from Wlad

          People

            sanja Oleksandr Byelkin
            hholzgra Hartmut Holzgraefe
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.