Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-5491 CREATE OR REPLACE TABLE
  3. MDEV-5516

Server crashes in wait_while_table_is_used on CREATE OR REPLACE under lock

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.0.8
    • Component/s: None
    • Labels:
      None

      Description

      create table t1 (i int) engine=MyISAM;
      lock table t1 write;
      create or replace table t1 (j int);

      #3  <signal handler called>
      #4  0x000000000060495a in wait_while_table_is_used (thd=0x7ffca1335070, table=0x0, function=HA_EXTRA_NOT_USED) at /home/elenst/bzr/mariadb-monty/sql/sql_base.cc:1749
      #5  0x0000000000709f72 in mysql_rm_table_no_locks (thd=0x7ffca1335070, tables=0x7ffca8c8ce60, if_exists=false, drop_temporary=false, drop_view=false, dont_log_query=true) at /home/elenst/bzr/mariadb-monty/sql/sql_table.cc:2465
      #6  0x000000000070fd4c in create_table_impl (thd=0x7ffca1335070, db=0x7ffc9e501750 "test", table_name=0x7ffc9e501148 "t1", path=0x7ffca8c8d8c0 "./test/t1", create_info=0x7ffca8c8dcd0, alter_info=0x7ffca8c8dc40, create_table_mode=0, is_trans=0x7ffca8c8db66, key_info=0x7ffca8c8dae8, key_count=0x7ffca8c8dae4, frm=0x7ffca8c8dad0) at /home/elenst/bzr/mariadb-monty/sql/sql_table.cc:4606
      #7  0x0000000000710539 in mysql_create_table_no_lock (thd=0x7ffca1335070, db=0x7ffc9e501750 "test", table_name=0x7ffc9e501148 "t1", create_info=0x7ffca8c8dcd0, alter_info=0x7ffca8c8dc40, is_trans=0x7ffca8c8db66, create_table_mode=0) at /home/elenst/bzr/mariadb-monty/sql/sql_table.cc:4786
      #8  0x0000000000710675 in mysql_create_table (thd=0x7ffca1335070, create_table=0x7ffc9e501180, create_info=0x7ffca8c8dcd0, alter_info=0x7ffca8c8dc40) at /home/elenst/bzr/mariadb-monty/sql/sql_table.cc:4828
      #9  0x0000000000665916 in mysql_execute_command (thd=0x7ffca1335070) at /home/elenst/bzr/mariadb-monty/sql/sql_parse.cc:3012
      #10 0x000000000066eb84 in mysql_parse (thd=0x7ffca1335070, rawbuf=0x7ffc9e501088 "create or replace table t1 (j int)", length=34, parser_state=0x7ffca8c8e630) at /home/elenst/bzr/mariadb-monty/sql/sql_parse.cc:6386
      #11 0x0000000000661ade in dispatch_command (command=COM_QUERY, thd=0x7ffca1335070, packet=0x7ffca132b071 "create or replace table t1 (j int)", packet_length=34) at /home/elenst/bzr/mariadb-monty/sql/sql_parse.cc:1296
      #12 0x0000000000660e80 in do_command (thd=0x7ffca1335070) at /home/elenst/bzr/mariadb-monty/sql/sql_parse.cc:993
      #13 0x000000000077a721 in do_handle_one_connection (thd_arg=0x7ffca1335070) at /home/elenst/bzr/mariadb-monty/sql/sql_connect.cc:1379
      #14 0x000000000077a474 in handle_one_connection (arg=0x7ffca1335070) at /home/elenst/bzr/mariadb-monty/sql/sql_connect.cc:1293
      #15 0x0000000000a9d5dd in pfs_spawn_thread (arg=0x7ffca1b75530) at /home/elenst/bzr/mariadb-monty/storage/perfschema/pfs.cc:1853
      #16 0x00007ffca89dbb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #17 0x00007ffca752aa7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      revision-id: monty@askmonty.org-20140110135957-zqbnewaebjm4v8oi
      revno: 3965
      branch-nick: mariadb-monty
      BUILD/compile-pentium-debug-max-no-ndb

        Attachments

          Activity

            People

            • Assignee:
              monty Michael Widenius
              Reporter:
              elenst Elena Stepanova
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: