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

mariabackup does not produce a nice stacktrace on Linux

Details

    Description

      here is an example from the MDEV-15579

      addr2line: 'mariabackup': No such file
      mariabackup(my_print_stacktrace+0x2e)[0x55e29c08481e]
      mariabackup(handle_fatal_signal+0x345)[0x55e29bb81835]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f6e58cc4390]
      linux/raise.c:54(__GI_raise)[0x7f6e56f6b428]
      stdlib/abort.c:91(__GI_abort)[0x7f6e56f6d02a]
      addr2line: 'mariabackup': No such file
      mariabackup(+0x9fd6b6)[0x55e29be906b6]
      mariabackup(+0xa030f8)[0x55e29be960f8]
      mariabackup(+0xa031b2)[0x55e29be961b2]
      mariabackup(+0x4324dc)[0x55e29b8c54dc]
      mariabackup(+0x408cb7)[0x55e29b89bcb7]
      mariabackup(+0x437053)[0x55e29b8ca053]
      mariabackup(main+0x185)[0x55e29b8ad145]
      csu/libc-start.c:325(__libc_start_main)[0x7f6e56f56830]
      addr2line: 'mariabackup': No such file
      mariabackup(_start+0x29)[0x55e29b8c1f79]
      

      Attachments

        Issue Links

          Activity

            wlad Vladislav Vaintroub created issue -
            wlad Vladislav Vaintroub made changes -
            Field Original Value New Value
            Assignee Vicentiu Ciorbaru [ cvicentiu ]

            unlike mysqld, I think mariabackup does not try to export all symbols. I'm not sure it plays any role, but basically, mariabackup links to the same libraries as mysqld, so that might be the only difference I know.

            wlad Vladislav Vaintroub added a comment - unlike mysqld, I think mariabackup does not try to export all symbols. I'm not sure it plays any role, but basically, mariabackup links to the same libraries as mysqld, so that might be the only difference I know.

            diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
            index 274bf05..6ee7566 100644
            --- a/extra/mariabackup/xtrabackup.cc
            +++ b/extra/mariabackup/xtrabackup.cc
            @@ -5571,6 +5571,8 @@ static int main_low(char** argv)
                                    return(EXIT_FAILURE);
                            }
                    }
            +       my_setwd("/",MYF(MY_WME));
            +       abort();
             
                    if (!xtrabackup_print_param && !xtrabackup_prepare
                        && !strcmp(mysql_data_home, "./")) {
            

            This patch will reproduce the problem.

            cvicentiu VicenÈ›iu Ciorbaru added a comment - diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index 274bf05..6ee7566 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -5571,6 +5571,8 @@ static int main_low(char** argv) return(EXIT_FAILURE); } } + my_setwd("/",MYF(MY_WME)); + abort();   if (!xtrabackup_print_param && !xtrabackup_prepare && !strcmp(mysql_data_home, "./")) { This patch will reproduce the problem.
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            Fix Version/s 10.3 [ 22126 ]
            Fix Version/s 10.4 [ 22408 ]
            GeoffMontee Geoff Montee (Inactive) made changes -
            Assignee Vicentiu Ciorbaru [ cvicentiu ] Vladislav Lesin [ vlad.lesin ]
            GeoffMontee Geoff Montee (Inactive) made changes -
            Component/s Backup [ 13902 ]
            Component/s mariabackup [ 14500 ]
            julien.fritsch Julien Fritsch made changes -
            Assignee Vladislav Lesin [ vlad.lesin ] Vladislav Vaintroub [ wlad ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.5 [ 23123 ]
            wlad Vladislav Vaintroub made changes -
            Assignee Vladislav Vaintroub [ wlad ] Vicențiu Ciorbaru [ cvicentiu ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 86390 ] MariaDB v4 [ 140715 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.2 [ 14601 ]
            marko Marko Mäkelä made changes -
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.3 [ 22126 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.4 [ 22408 ]
            vlad.radu Vlad Radu made changes -
            Labels foundation

            People

              cvicentiu Vicențiu Ciorbaru
              wlad Vladislav Vaintroub
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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