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

Segmentation fault on delete

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Duplicate
    • 11.2.2
    • N/A
    • Optimizer
    • None
    • Ubuntu 22.04

    Description

      mysql from 11.2.2-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper

      Sorry, we probably made a mistake, and this is a bug.

      Your assistance in bug reporting will enable us to fix this for the next release.
      To report this bug, see https://mariadb.com/kb/en/reporting-bugs

      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed,
      something is definitely wrong and this may fail.

      Server version: 11.2.2-MariaDB-1:11.2.2+maria~ubu2204-log source revision: 929532a9426d085111c24c63de9c23cc54382259
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=8
      max_threads=102
      thread_count=3
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 6831517 K bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.

      Thread pointer: 0x7f026c0008f8
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 0x7f02ade5cc38 thread_stack 0x49000
      /usr/sbin/mariadbd(my_print_stacktrace+0x32)[0x55b047805032]
      /usr/sbin/mariadbd(handle_fatal_signal+0x478)[0x55b0472d9158]
      /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f09de116520]
      /usr/sbin/mariadbd(handler_rowid_filter_check+0x58)[0x55b0472e74c8]
      /usr/sbin/mariadbd(+0xe767e4)[0x55b04768d7e4]
      /usr/sbin/mariadbd(+0xe7a027)[0x55b047691027]
      /usr/sbin/mariadbd(+0xdb65cc)[0x55b0475cd5cc]
      /usr/sbin/mariadbd(ZN7handler10ha_rnd_posEPhS0+0x22d)[0x55b0472e107d]
      /usr/sbin/mariadbd(_Z16rr_from_pointersP11READ_RECORD+0x3c)[0x55b046f8695c]
      /usr/sbin/mariadbd(_ZN12multi_delete16do_table_deletesEP5TABLEP9SORT_INFOb+0x98)[0x55b04700e658]
      /usr/sbin/mariadbd(_ZN12multi_delete10do_deletesEv+0x88)[0x55b04700e918]
      /usr/sbin/mariadbd(_ZN12multi_delete8send_eofEv+0x75)[0x55b04700e9f5]
      /usr/sbin/mariadbd(_ZN4JOIN10exec_innerEv+0xf62)[0x55b0470da302]
      /usr/sbin/mariadbd(_ZN4JOIN4execEv+0x3f)[0x55b0470da7af]
      /usr/sbin/mariadbd(_ZN11Sql_cmd_dml13execute_innerEP3THD+0x7a)[0x55b0470da8da]
      /usr/sbin/mariadbd(_ZN14Sql_cmd_delete13execute_innerEP3THD+0x2a)[0x55b04700e2fa]
      /usr/sbin/mariadbd(_ZN11Sql_cmd_dml7executeEP3THD+0xc3)[0x55b047092783]
      /usr/sbin/mariadbd(_Z21mysql_execute_commandP3THDb+0x44c7)[0x55b04705b857]
      /usr/sbin/mariadbd(_Z11mysql_parseP3THDPcjP12Parser_state+0x1e7)[0x55b04705c837]
      /usr/sbin/mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjb+0x14bd)[0x55b04705f01d]
      /usr/sbin/mariadbd(_Z10do_commandP3THDb+0x138)[0x55b047060df8]
      /usr/sbin/mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0x3bf)[0x55b04718cf7f]
      /usr/sbin/mariadbd(handle_one_connection+0x5d)[0x55b04718d2cd]
      /usr/sbin/mariadbd(+0xcf24c6)[0x55b0475094c6]
      /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3)[0x7f09de168ac3]
      /lib/x86_64-linux-gnu/libc.so.6(+0x126850)[0x7f09de1fa850]

      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f026d12b250): DELETE FROM import_consumptions WHERE pod IN(
      SELECT A.pod FROM
      ( SELECT ic.pod,sum(ic.total_consumption_re) AS re,sum(ic.total_consumption_re_3x) AS re_3x, ic.consumption_date from import_consumptions ic
      WHERE ic.energy_type='ERC' GROUP BY ic.pod,ic.consumption_date) A
      JOIN
      ( SELECT c.pod,sum(c.total_consumption_re) AS re,sum(c.total_consumption_re_3x) AS re_3x, c.consumption_date from consumptions c
      WHERE c.energy_type='ERC' GROUP BY c.pod,c.consumption_date) B ON A.consumption_date = B.Consumption_date AND A.pod = B.pod AND A.re = B.re AND A.re_3x = B.re_3x
      ) and energy_type = 'ERC'

      Connection ID (thread ID): 9005
      Status: NOT_KILLED

      Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off,hash_join_cardinality=on,cset_narrowing=off

      The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mariadbd/ contains
      information that should help you find out what is causing the crash.
      Writing a core file...
      Working directory at /var/lib/mysql
      Resource Limits:
      Limit Soft Limit Hard Limit Units
      Max cpu time unlimited unlimited seconds
      Max file size unlimited unlimited bytes
      Max data size unlimited unlimited bytes
      Max stack size 8388608 unlimited bytes
      Max core file size 0 unlimited bytes
      Max resident set unlimited unlimited bytes
      Max processes 200259 200259 processes
      Max open files 32768 32768 files
      Max locked memory 524288 524288 bytes
      Max address space unlimited unlimited bytes
      Max file locks unlimited unlimited locks
      Max pending signals 200259 200259 signals
      Max msgqueue size 819200 819200 bytes
      Max nice priority 0 0
      Max realtime priority 0 0
      Max realtime timeout unlimited unlimited us
      Core pattern: |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g – %E

      Kernel version: Linux version 5.15.0-92-generic (buildd@lcy02-amd64-005) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #102-Ubuntu SMP Wed Jan 10 09:33:48 UTC 2024

      2024-03-05 13:10:32 0 [Note] Starting MariaDB 11.2.2-MariaDB-1:11.2.2+maria~ubu2204-log source revision 929532a9426d085111c24c63de9c23cc54382259 as process 1879064

      id select_type table type possible_keys key key_len ref rows Extra
      1 PRIMARY import_consumptions ref energy_type,pod energy_type 14 const 1 Using index condition
      1 PRIMARY <derived3> ref key0 key0 152 ebs.import_consumptions.pod 1 Using where
      1 PRIMARY <derived4> eq_ref distinct_key distinct_key 168 ebs.import_consumptions.pod,A.re,A.re_3x,A.consumption_date 1 Using where; FirstMatch(import_consumptions)
      4 LATERAL DERIVED c ref energy_type,pod,consumption_date pod 122 A.pod 18 Using index condition; Using where
      3 DERIVED ic ref energy_type,pod,consumption_date energy_type 14 const 1 Using index condition; Using where; Using temporary; Using filesort

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              GabrielD Dina Gabriel
              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.