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

Cassandra: DynCols: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "ha_cassandra::write_row"

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 10.0.0
    • None
    • None

    Description

      It happens on an attempt to insert a plain value into a dynamic column in a Cassandra table.

      5.5-cassandra-dyncol-read/sql/mysqld: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "ha_cassandra::write_row"
       
      [ERROR] mysqld got signal 6 ;

      #7  0xb7396c03 in abort () from /lib/libc.so.6
      #8  0x088c1878 in DbugExit (why=0xaccb52f4 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"ha_cassandra::write_row\"\n") at 5.5-cassandra-dyncol-read/dbug/dbug.c:1987
      #9  0x088c0610 in _db_return_ (_line_=5070, _stack_frame_=0xaccb5528) at 5.5-cassandra-dyncol-read/dbug/dbug.c:1178
      #10 0x083e8b6d in handler::ha_write_row (this=0x9cb70e0, buf=0x9cb7540 "\376\002") at 5.5-cassandra-dyncol-read/sql/handler.cc:5070
      #11 0x082337a7 in write_record (thd=0x9bb6e60, table=0x9c5f9f0, info=0xaccb5654) at 5.5-cassandra-dyncol-read/sql/sql_insert.cc:1800
      #12 0x08231815 in mysql_insert (thd=0x9bb6e60, table_list=0x9c66ba8, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at 5.5-cassandra-dyncol-read/sql/sql_insert.cc:965
      #13 0x0824dd5a in mysql_execute_command (thd=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:2922
      #14 0x0825578c in mysql_parse (thd=0x9bb6e60, rawbuf=0x9c66ab0 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", length=63, parser_state=0xaccb5d44) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:5736
      #15 0x08249ccb in dispatch_command (command=COM_QUERY, thd=0x9bb6e60, packet=0x9c60e19 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", packet_length=63) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:1055
      #16 0x08249197 in do_command (thd=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:794
      #17 0x08334eba in do_handle_one_connection (thd_arg=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_connect.cc:1253
      #18 0x08334a05 in handle_one_connection (arg=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_connect.cc:1168
      #19 0x0856063a in pfs_spawn_thread (arg=0x9ca18e8) at 5.5-cassandra-dyncol-read/storage/perfschema/pfs.cc:1015
      #20 0xb7742e32 in start_thread () from /lib/libpthread.so.0

      Query (0x9c66ab0): insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')
      Connection ID (thread ID): 2
      Status: NOT_KILLED

      5.5-cassandra-dyncol-read
      bzr version-info

      revision-id: sanja@montyprogram.com-20120926190923-oxdeydkyu12bmx1m
      date: 2012-09-26 22:09:23 +0300
      build-date: 2012-09-28 03:16:54 +0400
      revno: 3522

      Test case:

      # Make sure your cassandra is running,
      # and thrift is on LD_LIBRARY_PATH,
      # and cqlsh is on the system PATH
       
      --source include/have_cassandra.inc
       
      --remove_files_wildcard $MYSQLTEST_VARDIR test.cql
      --write_file $MYSQLTEST_VARDIR/test.cql
      DROP KEYSPACE bug_ks;
      EOF
      --error 0,1,2
      --system cqlsh -3 -f $MYSQLTEST_VARDIR/test.cql
       
      --remove_file $MYSQLTEST_VARDIR/test.cql
      --write_file $MYSQLTEST_VARDIR/test.cql
      CREATE KEYSPACE bug_ks
        WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy'
         AND strategy_options:replication_factor='1';
      USE bug_ks;
      create columnfamily cf5 (rowkey bigint primary key, uuidcol uuid);
      EOF
       
      --system cqlsh -3 -f $MYSQLTEST_VARDIR/test.cql
       
      DROP TABLE IF EXISTS t2;
      CREATE TABLE t2 (rowkey bigint PRIMARY KEY, dyn blob DYNAMIC_COLUMN_STORAGE=yes) 
      ENGINE=CASSANDRA thrift_host='localhost' keyspace='bug_ks' column_family = 'cf5';
      DELETE FROM t2;
      insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a');
       
      # Cleanup
      DROP TABLE t2;

      Attachments

        Issue Links

          Activity

            it was missing DBUG_RETURN (return instead of it)

            and this was masked by it:
            (gdb) where
            #0 0x00007ffff652a445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
            #1 0x00007ffff652dbab in __GI_abort () at abort.c:91
            #2 0x00007ffff652310e in __assert_fail_base (fmt=<optimized out>, assertion=0xe62050 "(uchar*) table->def_read_set.bitmap + table->s->column_bitmap_size == (uchar*) table->def_write_set.bitmap", file=0xe60dd0 "/home/bell/maria/bzr/work-maria-5.5-cassandra/sql/handler.cc", line=<optimized out>, function=<optimized out>) at assert.c:94
            #3 0x00007ffff65231b2 in _GI__assert_fail (assertion=0xe62050 "(uchar*) table->def_read_set.bitmap + table->s->column_bitmap_size == (uchar*) table->def_write_set.bitmap", file=0xe60dd0 "/home/bell/maria/bzr/work-maria-5.5-cassandra/sql/handler.cc", line=5040, function=0xe62280 "int handler::ha_reset()") at assert.c:103
            #4 0x000000000080a64c in handler::ha_reset (this=0x7fffe0041be8) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/handler.cc:5038
            #5 0x00000000005ec542 in close_thread_table (thd=0x1f19fa0, table_ptr=0x1f1a058) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_base.cc:1630
            #6 0x00000000005ebc13 in close_open_tables (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_base.cc:1373
            #7 0x00000000005ec29e in close_thread_tables (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_base.cc:1585
            #8 0x00000000006533bc in mysql_execute_command (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:4525
            #9 0x00000000006561a0 in mysql_parse (thd=0x1f19fa0, rawbuf=0x7fffe00179b8 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", length=63, parser_state=0x7fffeb7b7500) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:5736
            #10 0x00000000006499f7 in dispatch_command (command=COM_QUERY, thd=0x1f19fa0, packet=0x200ccf1 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", packet_length=63) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:1055
            #11 0x0000000000648cae in do_command (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:794
            #12 0x000000000074a21f in do_handle_one_connection (thd_arg=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_connect.cc:1253
            #13 0x0000000000749c0a in handle_one_connection (arg=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_connect.cc:1168
            #14 0x0000000000b7f3d4 in pfs_spawn_thread (arg=0x1f99010) at /home/bell/maria/bzr/work-maria-5.5-cassandra/storage/perfschema/pfs.cc:1015
            #15 0x00007ffff70c8e9a in start_thread (arg=0x7fffeb7b8700) at pthread_create.c:308
            #16 0x00007ffff65e64bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
            #17 0x0000000000000000 in ?? ()
            (gdb)

            sanja Oleksandr Byelkin added a comment - it was missing DBUG_RETURN (return instead of it) and this was masked by it: (gdb) where #0 0x00007ffff652a445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff652dbab in __GI_abort () at abort.c:91 #2 0x00007ffff652310e in __assert_fail_base (fmt=<optimized out>, assertion=0xe62050 "(uchar*) table->def_read_set.bitmap + table->s->column_bitmap_size == (uchar*) table->def_write_set.bitmap", file=0xe60dd0 "/home/bell/maria/bzr/work-maria-5.5-cassandra/sql/handler.cc", line=<optimized out>, function=<optimized out>) at assert.c:94 #3 0x00007ffff65231b2 in _ GI __assert_fail (assertion=0xe62050 "(uchar*) table->def_read_set.bitmap + table->s->column_bitmap_size == (uchar*) table->def_write_set.bitmap", file=0xe60dd0 "/home/bell/maria/bzr/work-maria-5.5-cassandra/sql/handler.cc", line=5040, function=0xe62280 "int handler::ha_reset()") at assert.c:103 #4 0x000000000080a64c in handler::ha_reset (this=0x7fffe0041be8) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/handler.cc:5038 #5 0x00000000005ec542 in close_thread_table (thd=0x1f19fa0, table_ptr=0x1f1a058) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_base.cc:1630 #6 0x00000000005ebc13 in close_open_tables (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_base.cc:1373 #7 0x00000000005ec29e in close_thread_tables (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_base.cc:1585 #8 0x00000000006533bc in mysql_execute_command (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:4525 #9 0x00000000006561a0 in mysql_parse (thd=0x1f19fa0, rawbuf=0x7fffe00179b8 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", length=63, parser_state=0x7fffeb7b7500) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:5736 #10 0x00000000006499f7 in dispatch_command (command=COM_QUERY, thd=0x1f19fa0, packet=0x200ccf1 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", packet_length=63) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:1055 #11 0x0000000000648cae in do_command (thd=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_parse.cc:794 #12 0x000000000074a21f in do_handle_one_connection (thd_arg=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_connect.cc:1253 #13 0x0000000000749c0a in handle_one_connection (arg=0x1f19fa0) at /home/bell/maria/bzr/work-maria-5.5-cassandra/sql/sql_connect.cc:1168 #14 0x0000000000b7f3d4 in pfs_spawn_thread (arg=0x1f99010) at /home/bell/maria/bzr/work-maria-5.5-cassandra/storage/perfschema/pfs.cc:1015 #15 0x00007ffff70c8e9a in start_thread (arg=0x7fffeb7b8700) at pthread_create.c:308 #16 0x00007ffff65e64bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #17 0x0000000000000000 in ?? () (gdb)

            People

              sanja Oleksandr Byelkin
              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.