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

Stack trace is not resolved for shared objects

    XMLWordPrintable

Details

    • 10.1.29, 10.1.30, 5.5.59

    Description

      In the following example (which is quite common) only mysqld frames were resolved properly. Frames from shared objects are not resolved.

      This is because addr2line attempts to resolve shared object frames while it is being called against mysqld binary.

      To resolve shared object frames addr2line should be called individually for these objects.

      mysys/stacktrace.c:269(my_print_stacktrace)[0x56491efeceff]
      sql/signal_handler.cc:168(handle_fatal_signal)[0x56491e8126b5]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fcaf2825390]
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fcaf1bde428]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fcaf1be002a]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2dbd7)[0x7fcaf1bd6bd7]
      /lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7fcaf1bd6c82]
      /home/svoj/devel/maria/debug/mysql-test/var/plugins/proc_info.so(+0xd1f)[0x7fcaec38ad1f]
      sql/sql_show.cc:8350(get_schema_tables_result(JOIN*, enum_schema_table_state))[0x56491e600e92]
      sql/sql_select.cc:3511(JOIN::exec_inner())[0x56491e59ce16]
      sql/sql_select.cc:3344(JOIN::exec())[0x56491e59c4bc]
      sql/sql_select.cc:3745(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x56491e59d694]
      sql/sql_select.cc:378(handle_select(THD*, LEX*, select_result*, unsigned long))[0x56491e591c08]
      sql/sql_parse.cc:6467(execute_sqlcom_select(THD*, TABLE_LIST*))[0x56491e55cf79]
      sql/sql_parse.cc:3731(mysql_execute_command(THD*))[0x56491e55312c]
      sql/sql_parse.cc:7921(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x56491e5608a8]
      sql/sql_parse.cc:1821(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x56491e54db6b]
      sql/sql_parse.cc:1370(do_command(THD*))[0x56491e54c51a]
      sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*))[0x56491e6a325a]
      sql/sql_connect.cc:1325(handle_one_connection)[0x56491e6a2fad]
      perfschema/pfs.cc:1864(pfs_spawn_thread)[0x56491ea46791]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fcaf281b6ba]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fcaf1cb03dd]
      

      Attachments

        Issue Links

          Activity

            People

              cvicentiu Vicențiu Ciorbaru
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.