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

safe_mutex: Trying to lock unitialized mutex at mroonga/ha_mroonga.cpp, line 3095 on creating Mroonga table with FK

    XMLWordPrintable

    Details

      Description

      Note: also filed as https://github.com/mroonga/mroonga/issues/18

      Stack trace from 10.0 revno 4427

      safe_mutex: Trying to lock unitialized mutex at storage/mroonga/ha_mroonga.cpp, line 3095
      141005  1:11:12 [ERROR] mysqld got signal 6 ;
       
      #5  0x00007f48554617c0 in *__GI_abort () at abort.c:92
      #6  0x0000000000e4c0e1 in safe_mutex_lock (mp=0x7f48573d8830, my_flags=0, file=0x7f482ad66d50 "10.0/storage/mroonga/ha_mroonga.cpp", line=3095) at 10.0/mysys/thr_mutex.c:247
      #7  0x00007f482aa5d471 in inline_mysql_mutex_lock (that=0x7f48573d8830, src_file=0x7f482ad66d50 "10.0/storage/mroonga/ha_mroonga.cpp", src_line=3095) at 10.0/include/mysql/psi/mysql_thread.h:689
      #8  0x00007f482aa6779c in ha_mroonga::storage_create_foreign_key (this=0x7f4829cfd088, table=0x7f48573d8bd0, grn_table_name=0x7f48573d3fc8 "t2", field=0x7f482b069cc8, table_obj=0x7f482b0ca200, error=@0x7f48573d7ddc: 0) at 10.0/storage/mroonga/ha_mroonga.cpp:3095
      #9  0x00007f482aa6698c in ha_mroonga::storage_create (this=0x7f4829cfd088, name=0x7f48573da8d0 "./test/t2", table=0x7f48573d8bd0, info=0x7f48573dad00, tmp_share=0x7f482b02a070) at 10.0/storage/mroonga/ha_mroonga.cpp:2914
      #10 0x00007f482aa6a981 in ha_mroonga::create (this=0x7f4829cfd088, name=0x7f48573da8d0 "./test/t2", table=0x7f48573d8bd0, info=0x7f48573dad00) at 10.0/storage/mroonga/ha_mroonga.cpp:3691
      #11 0x0000000000870db0 in handler::ha_create (this=0x7f4829cfd088, name=0x7f48573da8d0 "./test/t2", form=0x7f48573d8bd0, info=0x7f48573dad00) at 10.0/sql/handler.cc:4285
      #12 0x0000000000871c8d in ha_create_table (thd=0x7f483cf17070, path=0x7f48573da8d0 "./test/t2", db=0x7f482b022798 "test", table_name=0x7f482b022188 "t2", create_info=0x7f48573dad00, frm=0x7f48573daae0) at 10.0/sql/handler.cc:4654
      #13 0x000000000076b545 in rea_create_table (thd=0x7f483cf17070, frm=0x7f48573daae0, path=0x7f48573da8d0 "./test/t2", db=0x7f482b022798 "test", table_name=0x7f482b022188 "t2", create_info=0x7f48573dad00, file=0x7f482b0dc088, no_ha_create_table=false) at 10.0/sql/unireg.cc:378
      #14 0x00000000007277c8 in create_table_impl (thd=0x7f483cf17070, orig_db=0x7f482b022798 "test", orig_table_name=0x7f482b022188 "t2", db=0x7f482b022798 "test", table_name=0x7f482b022188 "t2", path=0x7f48573da8d0 "./test/t2", create_info=0x7f48573dad00, alter_info=0x7f48573dac70, create_table_mode=0, is_trans=0x7f48573dab77, key_info=0x7f48573daaf8, key_count=0x7f48573daaf4, frm=0x7f48573daae0) at 10.0/sql/sql_table.cc:4839
      #15 0x0000000000727cef in mysql_create_table_no_lock (thd=0x7f483cf17070, db=0x7f482b022798 "test", table_name=0x7f482b022188 "t2", create_info=0x7f48573dad00, alter_info=0x7f48573dac70, is_trans=0x7f48573dab77, create_table_mode=0) at 10.0/sql/sql_table.cc:4953
      #16 0x0000000000727f2e in mysql_create_table (thd=0x7f483cf17070, create_table=0x7f482b0221c0, create_info=0x7f48573dad00, alter_info=0x7f48573dac70) at 10.0/sql/sql_table.cc:5014
      #17 0x000000000067c568 in mysql_execute_command (thd=0x7f483cf17070) at 10.0/sql/sql_parse.cc:3027
      #18 0x0000000000685877 in mysql_parse (thd=0x7f483cf17070, rawbuf=0x7f482b022088 "create table t2 (a int, foreign key(a) references t1(a)) engine=Mroonga", length=71, parser_state=0x7f48573db680) at 10.0/sql/sql_parse.cc:6415
      #19 0x000000000067868c in dispatch_command (command=COM_QUERY, thd=0x7f483cf17070, packet=0x7f483ce18071 "create table t2 (a int, foreign key(a) references t1(a)) engine=Mroonga", packet_length=71) at 10.0/sql/sql_parse.cc:1307
      #20 0x0000000000677a31 in do_command (thd=0x7f483cf17070) at 10.0/sql/sql_parse.cc:1004
      #21 0x00000000007942a6 in do_handle_one_connection (thd_arg=0x7f483cf17070) at 10.0/sql/sql_connect.cc:1379
      #22 0x0000000000793ff9 in handle_one_connection (arg=0x7f483cf17070) at 10.0/sql/sql_connect.cc:1293
      #23 0x00007f4857010b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #24 0x00007f485550820d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Test case

      # For MTR, replace it with however Mroonga should be properly initialized there
       
      source ./storage/mroonga/data/install.sql;
       
      create table t1 (a int primary key) engine=Mroonga;
      create table t2 (a int, foreign key(a) references t1(a)) engine=Mroonga;

        Attachments

          Activity

            People

            Assignee:
            Kentoku Kentoku Shiba
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.