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

LP:693935 - Assert failure for a query with a single row subquery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The following query triggers an assert failure in the current mariadb 5.1 tree:

      select * from t2 where a=(select a from t1) and a='x';

      To reproduce the failure create and populate t1,t2 with these commands:
      create table t1 (a char(1) charset utf8);
      insert into t1 values ('a'), ('b');
      create table t2 (a binary(1));
      insert into t2 values ('x'), ('y');

      The failure looks like this (e.g in gdb):
      Version: '5.1.54-MariaDB-debug' socket: '/tmp/mysql.sock' port: 3307 Source distribution
      [New Thread 0x8ce62b90 (LWP 15193)]
      mysqld: item_strfunc.cc:2755: virtual String* Item_func_conv_charset::val_str(String*): Assertion `fixed == 1' failed.

      Program received signal SIGABRT, Aborted.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            igor Igor Babaev added a comment -

            Re: Assert failure for a query with a single row subquery
            Quite a similar bug was reported for the current tree of mysql-5.1:
            MySQL Bugs: #58727: jump to invalid code in Arg_comparator::compare
            bugs.mysql.com/bug.php?id=58727

            Show
            igor Igor Babaev added a comment - Re: Assert failure for a query with a single row subquery Quite a similar bug was reported for the current tree of mysql-5.1: MySQL Bugs: #58727: jump to invalid code in Arg_comparator::compare bugs.mysql.com/bug.php?id=58727
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 693935

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 693935

              People

              • Assignee:
                igor Igor Babaev
                Reporter:
                igor Igor Babaev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: