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

Server crashes in TDBXML::WriteDB on inserting a NULL-only row into CONNECT table of type XML

    XMLWordPrintable

Details

    Description

      CREATE TABLE t4 (c INT) ENGINE=CONNECT TABLE_TYPE=XML FILE_NAME='t1.xml';
      INSERT INTO t4 (c) VALUES (null);

      #3  <signal handler called>
      #4  0x00007f92e89a799c in TDBXML::WriteDB (this=0x7f92e2400248, g=0x7f92e74e2000) at 10.0-connect/storage/connect/tabxml.cpp:901
      #5  0x00007f92e893ddbd in CntWriteRow (g=0x7f92e74e2000, tdbp=0x7f92e2400248) at 10.0-connect/storage/connect/connect.cc:499
      #6  0x00007f92e893301e in ha_connect::write_row (this=0x7f92e74a8c88, buf=0x7f92edfa3588 "\377") at 10.0-connect/storage/connect/ha_connect.cc:2134
      #7  0x000000000086062c in handler::ha_write_row (this=0x7f92e74a8c88, buf=0x7f92edfa3588 "\377") at 10.0-connect/sql/handler.cc:5877
      #8  0x0000000000654f59 in write_record (thd=0x7f92ee304070, table=0x7f92e7477870, info=0x7f9311e1a9e0) at 10.0-connect/sql/sql_insert.cc:1876
      #9  0x0000000000652c10 in mysql_insert (thd=0x7f92ee304070, table_list=0x7f92e740d178, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at 10.0-connect/sql/sql_insert.cc:1001
      #10 0x000000000067253c in mysql_execute_command (thd=0x7f92ee304070) at 10.0-connect/sql/sql_parse.cc:3434
      #11 0x000000000067a72c in mysql_parse (thd=0x7f92ee304070, rawbuf=0x7f92e740d088 "INSERT INTO t4 (c) VALUES (null)", length=32, parser_state=0x7f9311e1b630) at 10.0-connect/sql/sql_parse.cc:6397
      #12 0x000000000066d5e6 in dispatch_command (command=COM_QUERY, thd=0x7f92ee304070, packet=0x7f92edfec071 "INSERT INTO t4 (c) VALUES (null)", packet_length=32) at 10.0-connect/sql/sql_parse.cc:1296
      #13 0x000000000066c988 in do_command (thd=0x7f92ee304070) at 10.0-connect/sql/sql_parse.cc:993
      #14 0x0000000000785461 in do_handle_one_connection (thd_arg=0x7f92ee304070) at 10.0-connect/sql/sql_connect.cc:1379
      #15 0x00000000007851b4 in handle_one_connection (arg=0x7f92ee304070) at 10.0-connect/sql/sql_connect.cc:1293
      #16 0x0000000000a25e69 in pfs_spawn_thread (arg=0x7f92ee3dea90) at 10.0-connect/storage/perfschema/pfs.cc:1853
      #17 0x00007f93139ecb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #18 0x00007f9311ef7a7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Stack trace from:

      revision-id: bertrandop@gmail.com-20140321014027-r76qek2yyid119ij
      date: 2014-03-21 02:40:27 +0100
      build-date: 2014-03-21 23:25:54 +0400
      revno: 3994
      branch-nick: 10.0-connect

      Attachments

        Activity

          People

            bertrandop Olivier Bertrand
            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.