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

Debian packages: no line numbers

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2.21
    • 10.2
    • Packaging
    • None
    • Debian Stretch

    Description

      I installed MariaDB 10.2.21 from Debian Stretch packages on MariaDB.org.

      I also installed server debug symbols, as well as MyRocks together with its debug symbols:

      sudo apt-get install mariadb-server-10.2-dbgsym
      sudo apt-get install mariadb-plugin-rocksdb mariadb-plugin-rocksdb-dbgsym
      

      I start mariadb server, start the client, run there
      "select sleep(100) + sleep(2000);" , it is hanging.

      Then I start gdb and attach to the mysqld process. Let's check if we have line numbers in debug symbols:

      (gdb) thread apply all where 5
      

       
      ...
      Thread 7 (Thread 0x7f45a48d2700 (LWP 7235)):
      #0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
      #1  0x00007f45a6cf436a in inline_mysql_cond_timedwait (src_file=0x7f45a6fd48c8 "/home/buildbot/buildbot/build/mariadb-10.2.21/storage/rocksdb/ha_rocksdb.cc", 
          src_line=11314, abstime=0x7f45a48d1bd0, mutex=0x7f45a72c3698 <myrocks::rdb_drop_idx_thread+56>, that=0x7f45a72c36c8 <myrocks::rdb_drop_idx_thread+104>)
          at ./include/mysql/psi/mysql_thread.h:1186
      #2  myrocks::Rdb_drop_index_thread::run (this=0x7f45a72c3660 <myrocks::rdb_drop_idx_thread>) at ./storage/rocksdb/ha_rocksdb.cc:11314
      #3  0x00007f45a6d32322 in myrocks::Rdb_thread::thread_func (thread_ptr=0x7f45a72c3660 <myrocks::rdb_drop_idx_thread>) at ./storage/rocksdb/rdb_threads.cc:34
      #4  0x00007f45b1456494 in start_thread (arg=0x7f45a48d2700) at pthread_create.c:333
      (More stack frames follow...)
      

      ha_rocksdb.cc:11314, Good!.

      But this is ony for MyRocks. For SQL layer, no luck:

      Thread 38 (Thread 0x7f4595ac7700 (LWP 7276)):                                                                                                                          
      #0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225                                                           
      #1  0x000055c6e19ba7cf in Interruptible_wait::wait(st_mysql_cond*, st_mysql_mutex*) ()                                                                                 
      #2  0x000055c6e19ba99e in Item_func_sleep::val_int() ()                                                                                                                
      #3  0x000055c6e19b6fed in Item_func_plus::int_op() ()                                                                                                                  
      #4  0x000055c6e19b418c in Item_func_hybrid_field_type::val_int() ()                                                                                                    
      (More stack frames follow...)                                                                                                                                          
      

      Function names are here but we also MUST have line numbers as otherwise, it's impossible to diagnose any bugs.

      Attachments

        Issue Links

          Activity

            People

              cvicentiu Vicențiu Ciorbaru
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.