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

Assertion `thd' failed in my_malloc_size_cb_func upon writing status report into error log

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.12, 10.1.0
    • 10.0.14, 10.1.1
    • None
    • None

    Description

      Upon receiving SIGHUP, the server is supposed to print a bunch of status data in the error log. On 10.0 and 10.1 it can only able to print a part, up to and including Alarm status, but aborts before it can print Memory status:

      Current refresh version: 1
      mysqld: /home/elenst/bzr/10.0/sql/mysqld.cc:3871: void my_malloc_size_cb_func(long long int, my_bool): Assertion `thd' failed.
       
      Key caches:
      default
      Buffer_size:     134217728
      Block_size:           1024
      Division_limit:        100
      Age_threshold:         300
      Partitions:              0
      blocks used:             0
      not flushed:             0
      w_requests:              0
      writes:                  0
      r_requests:              0
      reads:                   0
       
       
      handler status:
      read_key:            0
      read_next:           0
      read_rnd             0
      read_first:          0
      write:               0
      delete               0
      update:              0
       
      Table status:
      Opened tables:          0
      Open tables:           63
      Open files:            24
      Open streams:           0
       
      Alarm status:
      Active alarms:   0
      Max used alarms: 0
      Next alarm time: 0
      140814  2:15:44 [ERROR] mysqld got signal 6 ;

      #6  0x00007f0456ebb6f1 in *__GI___assert_fail (assertion=0xf053af "thd", file=<optimized out>, line=3871, function=0xf0bf80 "void my_malloc_size_cb_func(long long int, my_bool)") at assert.c:81
      #7  0x00000000005beedd in my_malloc_size_cb_func (size=45152, is_thread_specific=1 '\001') at 10.0/sql/mysqld.cc:3871
      #8  0x0000000000e3b533 in update_malloc_size (size=45152, is_thread_specific=1 '\001') at 10.0/mysys/my_malloc.c:67
      #9  0x0000000000e3b68c in my_malloc (size=45152, my_flags=65536) at 10.0/mysys/my_malloc.c:117
      #10 0x0000000000e15130 in init_dynamic_array2 (array=0x7f0458e893e0, element_size=544, init_buffer=0x0, init_alloc=83, alloc_increment=50, my_flags=65536) at 10.0/mysys/array.c:67
      #11 0x0000000000733425 in display_table_locks () at 10.0/sql/sql_test.cc:472
      #12 0x0000000000733958 in mysql_print_status () at 10.0/sql/sql_test.cc:617
      #13 0x00000000005be73c in signal_hand (arg=0x0) at 10.0/sql/mysqld.cc:3384
      #14 0x00007f0458a74b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #15 0x00007f0456f6c20d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Stack trace from:

      revision-id: knielsen@knielsen-hq.org-20140813113428-8vxka9yqgwsjtbqy
      revno: 4351
      branch-nick: 10.0

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.