+set height 0
+set print pretty on
+set print array on
+set print array-indexes on
+set print elements 4096
+thr apply all backtrace full

Thread 1 (Thread 0x7fd2bd657720 (LWP 2433)):
+backtrace full
#0  0x00000032c240e48d in read () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x00000000004d75c1 in rl_getc (stream=0x32c1f9d7e0)
    at /mysql2/mysql-next-mr-opt-backporting/cmd-line-utils/readline/input.c:466
        result = 32767
        c = 184 '\270'
#2  0x00000000004d758b in rl_read_key () at /mysql2/mysql-next-mr-opt-backporting/cmd-line-utils/readline/input.c:446
        c = 0
#3  0x00000000004c0b43 in readline_internal_char ()
    at /mysql2/mysql-next-mr-opt-backporting/cmd-line-utils/readline/readline.c:483
        lastc = -1
        c = 0
        code = 0
        lk = 0
#4  0x00000000004c0c7d in readline_internal_charloop ()
    at /mysql2/mysql-next-mr-opt-backporting/cmd-line-utils/readline/readline.c:544
        eof = 1
#5  0x00000000004c0ca9 in readline_internal ()
    at /mysql2/mysql-next-mr-opt-backporting/cmd-line-utils/readline/readline.c:558
        eof = 0
#6  0x00000000004c0708 in readline (prompt=0x25f8780 "mysql> ")
    at /mysql2/mysql-next-mr-opt-backporting/cmd-line-utils/readline/readline.c:321
        value = 0x7fffb8bda530 "\340\247\275\270\377\177"
#7  0x000000000040fb92 in read_and_execute (interactive=true)
    at /mysql2/mysql-next-mr-opt-backporting/client/mysql.cc:1907
        prompt = 0x25f8780 "mysql> "
        line = 0x260b670 ";"
        in_string = 0 '\000'
        com = 0x0
        line_number = 0
        ml_comment = false
#8  0x000000000040eccd in main (argc=4, argv=0x25af3b0) at /mysql2/mysql-next-mr-opt-backporting/client/mysql.cc:1229
        buff =           "Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n"
        _db_stack_frame_ = {
          func = 0x4eaf8d "?func", 
          file = 0x4eaf93 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
+quit
A debugging session is active.

	Inferior 1 [process 2433] will be detached.

Quit anyway? (y or n) Detaching from program: /mysql2/mysql-5.6.2-m5-linux-x86_64-debug-max/bin/mysql, process 2433
+set height 0
+set print pretty on
+set print array on
+set print array-indexes on
+set print elements 4096
+thr apply all backtrace full

Thread 59 (Thread 0x7f2ab1fa4700 (LWP 2065)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b66b000, min_nr=1, nr=256, events=0x46f5310, 
    timeout=0x7f2ab1fa3d70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x46e9780, segment=0, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 0
        end_pos = 256
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x46f5310
        io_ctx = 0x7f2a6b66b000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=0, message1=0x7f2ab1fa3e70, message2=0x7f2ab1fa3e68, 
    type=0x7f2ab1fa3e60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 0
        array = 0x46e9780
        slot = 0x46f5248
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=0)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 3
        fil_node = 0x0
        message = 0x7f2ab1fa49c0
        type = 140735088909072
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e100)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 0
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 58 (Thread 0x7f29e3c6e700 (LWP 2066)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b668000, min_nr=1, nr=256, events=0x4702eb0, 
    timeout=0x7f29e3c6dd70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x46f7320, segment=0, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 0
        end_pos = 256
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x4702eb0
        io_ctx = 0x7f2a6b668000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=1, message1=0x7f29e3c6de70, message2=0x7f29e3c6de68, 
    type=0x7f29e3c6de60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 0
        array = 0x46f7320
        slot = 0x4702de8
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=1)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 1
        fil_node = 0x9546fd8
        message = 0x9547169
        type = 11
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e108)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 1
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 57 (Thread 0x7f29e346d700 (LWP 2067)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b636000, min_nr=1, nr=256, events=0x4705270, 
    timeout=0x7f29e346cd70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x4704ec0, segment=0, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 0
        end_pos = 256
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x4705270
        io_ctx = 0x7f2a6b636000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=2, message1=0x7f29e346ce70, message2=0x7f29e346ce68, 
    type=0x7f29e346ce60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 0
        array = 0x4704ec0
        slot = 0x7f2a6b644758
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=2)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 0
        fil_node = 0x0
        message = 0x0
        type = 0
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e110)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 2
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 56 (Thread 0x7f29e2c6c700 (LWP 2068)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b633000, min_nr=1, nr=256, events=0x4707270, 
    timeout=0x7f29e2c6bd70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x4704ec0, segment=1, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 256
        end_pos = 512
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x4707270
        io_ctx = 0x7f2a6b633000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=3, message1=0x7f29e2c6be70, message2=0x7f29e2c6be68, 
    type=0x7f29e2c6be60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 1
        array = 0x4704ec0
        slot = 0x7f2a6b64ff58
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=3)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 0
        fil_node = 0x0
        message = 0x0
        type = 0
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e118)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 3
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 55 (Thread 0x7f29e246b700 (LWP 2069)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b630000, min_nr=1, nr=256, events=0x4709270, 
    timeout=0x7f29e246ad70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x4704ec0, segment=2, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 512
        end_pos = 768
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x4709270
        io_ctx = 0x7f2a6b630000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=4, message1=0x7f29e246ae70, message2=0x7f29e246ae68, 
    type=0x7f29e246ae60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 2
        array = 0x4704ec0
        slot = 0x7f2a6b65b758
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=4)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 0
        fil_node = 0x0
        message = 0x0
        type = 0
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e120)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 4
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 54 (Thread 0x7f29e1c6a700 (LWP 2070)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b62d000, min_nr=1, nr=256, events=0x470b270, 
    timeout=0x7f29e1c69d70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x4704ec0, segment=3, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 768
        end_pos = 1024
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x470b270
        io_ctx = 0x7f2a6b62d000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=5, message1=0x7f29e1c69e70, message2=0x7f29e1c69e68, 
    type=0x7f29e1c69e60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 3
        array = 0x4704ec0
        slot = 0x7f2a6b666f58
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=5)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 0
        fil_node = 0x0
        message = 0x0
        type = 0
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e128)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 5
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 53 (Thread 0x7f29e1469700 (LWP 2071)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b5fb000, min_nr=1, nr=256, events=0x470d630, 
    timeout=0x7f29e1468d70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x470d280, segment=0, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 0
        end_pos = 256
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x470d630
        io_ctx = 0x7f2a6b5fb000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=6, message1=0x7f29e1468e70, message2=0x7f29e1468e68, 
    type=0x7f29e1468e60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 0
        array = 0x470d280
        slot = 0x7f2a6b609758
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=6)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 1
        fil_node = 0x7f29d4041b68
        message = 0x7f29e7334ea8
        type = 11
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e130)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 6
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 52 (Thread 0x7f29e0c68700 (LWP 2072)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b5f8000, min_nr=1, nr=256, events=0x470f630, 
    timeout=0x7f29e0c67d70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x470d280, segment=1, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 256
        end_pos = 512
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x470f630
        io_ctx = 0x7f2a6b5f8000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=7, message1=0x7f29e0c67e70, message2=0x7f29e0c67e68, 
    type=0x7f29e0c67e60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 1
        array = 0x470d280
        slot = 0x7f2a6b614f58
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=7)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 1
        fil_node = 0x9546a58
        message = 0x7f29e7322128
        type = 11
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e138)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 7
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 51 (Thread 0x7f29e0467700 (LWP 2073)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b5f5000, min_nr=1, nr=256, events=0x4711630, 
    timeout=0x7f29e0466d70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x470d280, segment=2, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 512
        end_pos = 768
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x4711630
        io_ctx = 0x7f2a6b5f5000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=8, message1=0x7f29e0466e70, message2=0x7f29e0466e68, 
    type=0x7f29e0466e60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 2
        array = 0x470d280
        slot = 0x7f2a6b620758
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=8)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 1
        fil_node = 0x9546a58
        message = 0x7f29e732b3b8
        type = 11
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e140)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 8
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 50 (Thread 0x7f29dfc66700 (LWP 2074)):
+backtrace full
#0  0x00007f2ab1fab614 in __io_getevents_0_4 (ctx=0x7f2a6b5f2000, min_nr=1, nr=256, events=0x4713630, 
    timeout=0x7f29dfc65d70) at io_getevents.c:25
        __res = <value optimized out>
#1  0x0000000000b05c6e in os_aio_linux_collect (array=0x470d280, segment=3, seg_size=256)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4438
        i = 0
        ret = 0
        start_pos = 768
        end_pos = 1024
        timeout = {
          tv_sec = 0, 
          tv_nsec = 500000000
        }
        events = 0x4713630
        io_ctx = 0x7f2a6b5f2000
#2  0x0000000000b05fc9 in os_aio_linux_handle (global_seg=9, message1=0x7f29dfc65e70, message2=0x7f29dfc65e68, 
    type=0x7f29dfc65e60) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0file.c:4571
        segment = 3
        array = 0x470d280
        slot = 0x7f2a6b62bf58
        n = 256
        i = 256
        ret = 0
#3  0x0000000000aaa9ea in fil_aio_wait (segment=9)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/fil/fil0fil.c:4534
        ret = 1
        fil_node = 0x9546a58
        message = 0x7f29e730cdf8
        type = 11
#4  0x00000000009ecb08 in io_handler_thread (arg=0x142e148)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0start.c:483
        segment = 9
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 49 (Thread 0x7f29de9ed700 (LWP 2101)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x9545b80, mp=0x9545b00, abstime=0x7f29de9ece40, 
    file=0xd63410 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c", line=177)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 32767
#2  0x0000000000b07fcc in os_cond_wait_timed (cond=0x9545b80, fast_mutex=0x9545b00, abstime=0x7f29de9ece40)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c:177
        mutex = 0x9545b00
        ret = 0
#3  0x0000000000b08ae9 in os_event_wait_time_low (event=0x9545b00, time_in_usec=1000000, reset_sig_count=48)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c:755
        timed_out = 0
        old_signal_count = 48
        abstime = {
          tv_sec = 1300140078, 
          tv_nsec = 787036000
        }
#4  0x0000000000ae95ca in lock_wait_timeout_thread (arg=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/lock/lock0wait.c:483
        slot = 0x7f29e4182220
        sig_count = 48
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 48 (Thread 0x7f29de1ec700 (LWP 2102)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x3ce1b30, mp=0x3ce1ab0, abstime=0x7f29de1ebe20, 
    file=0xd63410 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c", line=177)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 32767
#2  0x0000000000b07fcc in os_cond_wait_timed (cond=0x3ce1b30, fast_mutex=0x3ce1ab0, abstime=0x7f29de1ebe20)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c:177
        mutex = 0x3ce1ab0
        ret = 0
#3  0x0000000000b08ae9 in os_event_wait_time_low (event=0x3ce1ab0, time_in_usec=1000000, reset_sig_count=1)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c:755
        timed_out = 0
        old_signal_count = 1
        abstime = {
          tv_sec = 1300140078, 
          tv_nsec = 787013000
        }
#4  0x00000000009e9cbe in srv_error_monitor_thread (arg=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0srv.c:1927
        fatal_cnt = 0
        old_lsn = 6031995
        new_lsn = 6031995
        sig_count = 1
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 47 (Thread 0x7f29dd9eb700 (LWP 2103)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x3ce1c00, mp=0x3ce1b80, abstime=0x7f29dd9eae00, 
    file=0xd63410 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c", line=177)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 32767
#2  0x0000000000b07fcc in os_cond_wait_timed (cond=0x3ce1c00, fast_mutex=0x3ce1b80, abstime=0x7f29dd9eae00)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c:177
        mutex = 0x3ce1b80
        ret = 0
#3  0x0000000000b08ae9 in os_event_wait_time_low (event=0x3ce1b80, time_in_usec=5000000, reset_sig_count=1)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0sync.c:755
        timed_out = 0
        old_signal_count = 1
        abstime = {
          tv_sec = 1300140078, 
          tv_nsec = 942132000
        }
#4  0x00000000009e97b3 in srv_monitor_thread (arg=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0srv.c:1714
        sig_count = 1
        time_elapsed = 5
        current_time = 1300140073
        last_table_monitor_time = 1300136168
        last_tablespace_monitor_time = 1300136168
        last_monitor_time = 1300140068
        mutex_skipped = 0
        last_srv_print_monitor = 0
#5  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 46 (Thread 0x7f29dd1ea700 (LWP 2104)):
+backtrace full
#0  0x00000032c1cdceb3 in select () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000000000b093d7 in os_thread_sleep (tm=1000000)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0thread.c:274
        t = {
          tv_sec = 0, 
          tv_usec = 163638
        }
#2  0x00000000009ea81b in srv_master_sleep ()
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0srv.c:2499
No locals.
#3  0x00000000009ea968 in srv_master_thread (arg=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/srv/srv0srv.c:2548
        slot = 0
        old_activity_count = 11962
        event = 0x0
        last_print_time = 1300136169
#4  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#5  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 45 (Thread 0x7f29dc9e9700 (LWP 2105)):
+backtrace full
#0  0x00000032c1cdceb3 in select () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000000000b093d7 in os_thread_sleep (tm=999000)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0thread.c:274
        t = {
          tv_sec = 0, 
          tv_usec = 107154
        }
#2  0x0000000000a65f6b in page_cleaner_sleep_if_needed (next_loop_time=1300140078793)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/buf/buf0flu.c:2337
        cur_time = 1300140077794
#3  0x0000000000a66026 in buf_flush_page_cleaner_thread (arg=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/buf/buf0flu.c:2377
        next_loop_time = 1300140078793
        n_flushed = 0
        last_activity = 11962
        i = 0
#4  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#5  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 44 (Thread 0x7f29dc1e8700 (LWP 2106)):
+backtrace full
#0  0x00000032c240f17c in sigwait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000057110e in signal_hand (arg=0x0) at /mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc:2704
        error = 0
        set = {
          __val =             {[0] = 548869,
            [1] = 0 <repeats 15 times>}
        }
        sig = 0
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#2  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 43 (Thread 0x7f2ab17a3700 (LWP 2125)):
+backtrace full
#0  0x00000032c240ed23 in pread64 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000911f72 in my_pread (Filedes=19, Buffer=0x7f29d4250f59 "", Count=8, offset=72, MyFlags=4)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/my_pread.c:75
        readbytes = 13643406
        error = 0
        _db_stack_frame_ = {
          func = 0xd0c5f6 "mi_read_dynamic_record", 
          file = 0xd0c350 "/mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_dynrec.c", 
          level = 2147483673, 
          prev = 0x7f2ab179fee0
        }
#2  0x0000000000943288 in inline_mysql_file_pread (
    src_file=0xd0c350 "/mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_dynrec.c", src_line=201, file=19, 
    buffer=0x7f29d4250f59 "", count=8, offset=72, flags=4)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_file.h:1167
        result = 13681488
        locker = 0x0
        state = {
          m_flags = 13643330, 
          m_file = 0x7f29d4250f30, 
          m_thread = 0x7f29d40009e0, 
          m_number_of_bytes = 139817628527680, 
          m_timer_start = 139821342916192, 
          m_timer = 0x910f9f <my_realloc+188>, 
          m_operation = 13681910, 
          m_src_file = 0x40d40009e0 <Address 0x40d40009e0 out of bounds>, 
          m_src_line = 129, 
          m_wait = 0x0
        }
#3  0x00000000009439ec in mi_nommap_pread (info=0x7f29d4113250, Buffer=0x7f29d4250f59 "", Count=8, offset=72, 
    MyFlags=4) at /mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_dynrec.c:201
No locals.
#4  0x0000000000947d93 in _mi_read_dynamic_record (info=0x7f29d4113250, filepos=72, buf=0x7f29d41c7330 "")
    at /mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_dynrec.c:1517
        block_of_record = 1
        b_type = 3
        left_length = 8
        to = 0x7f29d4250f59 ""
        block_info = {
          header =             "\001\000\031\000\374\005\000pvfwp\t\000\000\000\020/%", 
          rec_len = 25, 
          data_len = 8, 
          block_len = 25, 
          blob_len = 139821342916496, 
          filepos = 55, 
          next_filepos = 18446744073709551615, 
          prev_filepos = 27, 
          second_read = 0, 
          offset = 0
        }
        file = 19
        _db_stack_frame_ = {
          func = 0xd0c60d "_mi_cmp_dynamic_unique", 
          file = 0xd0c350 "/mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_dynrec.c", 
          level = 2147483672, 
          prev = 0x7f2ab179ffc0
        }
#5  0x0000000000947fb1 in _mi_cmp_dynamic_unique (info=0x7f29d4113250, def=0x7f29d414ec40, 
    record=0x7f29d406d4b8 "\374\005", pos=52) at /mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_dynrec.c:1557
        rec_buff = 0x7f29d444cd68 ""
        old_record = 0x7f29d41c7330 ""
        error = 0
        _db_stack_frame_ = {
          func = 0xd0e081 "mi_check_unique", 
          file = 0xd0e040 "/mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_unique.c", 
          level = 2147483671, 
          prev = 0x7f2ab17a0050
        }
#6  0x000000000096669d in mi_check_unique (info=0x7f29d4113250, def=0x7f29d414ec40, record=0x7f29d406d4b8 "\374\005", 
    unique_hash=1753567147, disk_pos=18446744073709551615)
    at /mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_unique.c:46
        lastpos = 24
        key = 0x7f29d414ebd0
        key_buff = 0x7f29d4113e6d "h\205O\253"
        _db_stack_frame_ = {
          func = 0xd0e1b0 "mi_write", 
          file = 0xd0e170 "/mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_write.c", 
          level = 2147483670, 
          prev = 0x7f2ab17a00c0
        }
#7  0x0000000000967be8 in mi_write (info=0x7f29d4113250, record=0x7f29d406d4b8 "\374\005")
    at /mysql2/mysql-next-mr-opt-backporting/storage/myisam/mi_write.c:87
        share = 0x7f29d414e6a0
        i = 0
        save_errno = 157355456
        filepos = 424
        buff = 0x579f5a "\311\303UH\211\345H\211}\370H\213E\370H\213@`\311\303UH\211\345H\203\354\020H\211}\370H\213E\370H\211\307\350\362\366\377\377\311\303UH\211\345H\211}\370H\213E\370H\213\025\225", <incomplete sequence \352\272>
        lock_tree = 0 '\000'
        _db_stack_frame_ = {
          func = 0xc392fb "handler::ha_write_row", 
          file = 0xc37f08 "/mysql2/mysql-next-mr-opt-backporting/sql/handler.cc", 
          level = 2147483669, 
          prev = 0x7f2ab17a01d0
        }
#8  0x00000000009265fe in ha_myisam::write_row (this=0x7f29d4081430, buf=0x7f29d406d4b8 "\374\005")
    at /mysql2/mysql-next-mr-opt-backporting/storage/myisam/ha_myisam.cc:787
No locals.
#9  0x000000000058b4a3 in handler::ha_write_row (this=0x7f29d4081430, buf=0x7f29d406d4b8 "\374\005")
    at /mysql2/mysql-next-mr-opt-backporting/sql/handler.cc:5871
        locker = 0x0
        state = {
          m_flags = 2977563040, 
          m_table = 0x7f2ab17a01e0, 
          m_table_share = 0x7f29d41680d8, 
          m_thread = 0x140fcc0, 
          m_timer_start = 139821342917056, 
          m_timer = 0x5ae2f1 <List_iterator_fast<Item>::operator++(int)+27>, 
          m_io_operation = 3558244568, 
          m_index = 0, 
          m_src_file = 0x7f2ab17a01e0 "\024", 
          m_src_line = -1317404128, 
          m_wait = 0x7360af
        }
        error = 0
        log_func = 0x58ea1c <Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, uchar const*, uchar const*)>
        _db_stack_frame_ = {
          func = 0xc6bd55 "end_unique_update", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483668, 
          prev = 0x7f2ab17a0250
        }
#10 0x000000000072fa51 in end_unique_update (join=0x7f29d4167f70, join_tab=0x7f29d4405530, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:18924
        table = 0x7f29d4450df0
        error = 32553
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483667, 
          prev = 0x7f2ab17a0350
        }
#11 0x0000000000871ad6 in JOIN_CACHE::generate_full_extensions (this=0x7f29d44072b0, rec_ptr=0x7f29d4137ec4 "")
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1956
        res = 0
        rc = NESTED_LOOP_OK
#12 0x000000000087185a in JOIN_CACHE_BNL::join_matching_records (this=0x7f29d44072b0, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1848
        skip_record = false
        consider_record = true
        cnt = 18422
        tab = 0x7f29d4405280
        info = 0x7f29d4405308
        select = 0x0
        error = 0
        rc = NESTED_LOOP_OK
#13 0x0000000000871239 in JOIN_CACHE::join_records (this=0x7f29d44072b0, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1654
        tab = 0x7f29d40eb03d
        outer_join_first_inner = false
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xc6bb13 "sub_select_cache", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483666, 
          prev = 0x7f2ab17a03b0
        }
#14 0x000000000072bfcb in sub_select_cache (join=0x7f29d4167f70, join_tab=0x7f29d4405280, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17300
        rc = 32553
        cache = 0x7f29d44072b0
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state sub_select_cache(JOIN*, JOIN_TAB*, bool)"
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483665, 
          prev = 0x7f2ab17a04a0
        }
#15 0x0000000000871ad6 in JOIN_CACHE::generate_full_extensions (this=0x7f29d44071a8, rec_ptr=0x7f29d40eb03d "")
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1956
        res = 0
        rc = NESTED_LOOP_OK
#16 0x000000000087185a in JOIN_CACHE_BNL::join_matching_records (this=0x7f29d44071a8, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1848
        skip_record = false
        consider_record = true
        cnt = 1
        tab = 0x7f29d4404fd0
        info = 0x7f29d4405058
        select = 0x0
        error = 0
        rc = NESTED_LOOP_OK
#17 0x0000000000871239 in JOIN_CACHE::join_records (this=0x7f29d44071a8, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1654
        tab = 0x7f29d4222fc0
        outer_join_first_inner = false
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xc6bb13 "sub_select_cache", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483664, 
          prev = 0x7f2ab17a0500
        }
#18 0x000000000072bfcb in sub_select_cache (join=0x7f29d4167f70, join_tab=0x7f29d4404fd0, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17300
        rc = 32553
        cache = 0x7f29d44071a8
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state sub_select_cache(JOIN*, JOIN_TAB*, bool)"
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483663, 
          prev = 0x7f2ab17a05f0
        }
#19 0x0000000000871ad6 in JOIN_CACHE::generate_full_extensions (this=0x7f29d44070d0, rec_ptr=0x7f29d4222fc0 "|\005")
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1956
        res = 0
        rc = NESTED_LOOP_OK
#20 0x000000000087185a in JOIN_CACHE_BNL::join_matching_records (this=0x7f29d44070d0, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1848
        skip_record = false
        consider_record = true
        cnt = 4585
        tab = 0x7f29d4404d20
        info = 0x7f29d4404da8
        select = 0x0
        error = 0
        rc = NESTED_LOOP_OK
#21 0x0000000000871239 in JOIN_CACHE::join_records (this=0x7f29d44070d0, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1654
        tab = 0xd44047c0
        outer_join_first_inner = false
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483662, 
          prev = 0x7f2ab17a0640
        }
#22 0x00000000008713aa in JOIN_CACHE::join_records (this=0x7f29d4406fc8, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1700
        tab = 0xd44047c0
        outer_join_first_inner = false
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483661, 
          prev = 0x7f2ab17a0690
        }
#23 0x000000000087127f in JOIN_CACHE::join_records (this=0x7f29d4406d58, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1668
        tab = 0x7f29d44047c0
        outer_join_first_inner = true
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xc6bb13 "sub_select_cache", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483660, 
          prev = 0x7f2ab17a06f0
        }
#24 0x000000000072bee7 in sub_select_cache (join=0x7f29d4167f70, join_tab=0x7f29d44047c0, end_of_records=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17280
        rc = NESTED_LOOP_OK
        cache = 0x7f29d4406d58
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state sub_select_cache(JOIN*, JOIN_TAB*, bool)"
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483659, 
          prev = 0x7f2ab17a0750
        }
#25 0x000000000072c0a3 in sub_select (join=0x7f29d4167f70, join_tab=0x7f29d4404510, end_of_records=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17450
        nls = 7534884
        _db_stack_frame_ = {
          func = 0xc6ba1b "do_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483658, 
          prev = 0x7f2ab17a07d0
        }
        error = -1
        rc = NESTED_LOOP_OK
        info = 0x7f29d4404598
#26 0x000000000072b6c9 in do_select (join=0x7f29d4167f70, fields=0x0, table=0x7f29d4450df0, procedure=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17025
        join_tab = 0x7f29d4404510
        end_select = 0x72f924 <end_unique_update(JOIN*, JOIN_TAB*, bool)>
        __PRETTY_FUNCTION__ =           "int do_select(JOIN*, List<Item>*, TABLE*, Procedure*)"
        rc = 0
        error = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xc6a950 "JOIN::exec", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483657, 
          prev = 0x7f2ab17a0870
        }
#27 0x0000000000709caa in JOIN::exec (this=0x7f29d4167f70)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:2921
        _db_stack_frame_ = {
          func = 0xc7710a "st_select_lex_unit::exec", 
          file = 0xc77070 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc", 
          level = 2147483656, 
          prev = 0x7f2ab17a09b0
        }
        __FUNCTION__ =           "exec"
        tmp_error = 32553
        curr_join = 0x7f29d4167f70
        curr_fields_list = 0x9613218
        __PRETTY_FUNCTION__ =           "void JOIN::exec()"
        columns_list = 0x9613218
        has_group_by = true
        curr_all_fields = 0x7f29d41681f8
        curr_tmp_table = 0x7f29d4450df0
#28 0x0000000000781a1b in st_select_lex_unit::exec (this=0x9612ad8)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc:531
        records_at_start = 0
        error = 16809769
        sl = 0x9613110
        select_cursor = 0x9613110
        examined_rows = 0
        __PRETTY_FUNCTION__ =           "bool st_select_lex_unit::exec()"
        lex_select_save = 0x7f29d4170748
        add_rows = 0
        _db_stack_frame_ = {
          func = 0xc770a7 "mysql_union", 
          file = 0xc77070 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc", 
          level = 2147483655, 
          prev = 0x7f2ab17a0a90
        }
#29 0x0000000000780053 in mysql_union (thd=0x9610dc0, lex=0x9612a28, result=0x7f29d4219da0, unit=0x9612ad8, 
    setup_tables_done_option=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc:38
        _db_stack_frame_ = {
          func = 0xc6a398 "handle_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483654, 
          prev = 0x7f2ab17a0b50
        }
        res = false
#30 0x0000000000702760 in handle_select (thd=0x9610dc0, lex=0x9612a28, result=0x7f29d4219da0, 
    setup_tables_done_option=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:301
        res = false
        select_lex = 0x9612a28
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab17a1c00
        }
#31 0x00000000006e66c6 in execute_sqlcom_select (thd=0x9610dc0, all_tables=0x7f29d40be510)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4503
        lex = 0x9612a28
        result = 0x7f29d4219da0
        res = false
#32 0x00000000006df545 in mysql_execute_command (thd=0x9610dc0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x9612a28
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab17a1ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9613110
        first_table = 0x7f29d40be510
        all_tables = 0x7f29d40be510
        unit = 0x9612ad8
        have_table_map_for_update = false
#33 0x00000000006e8823 in mysql_parse (thd=0x9610dc0, 
    rawbuf=0x7f29d40bd680 "(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1", length=1487, parser_state=0x7f2ab17a2610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x9612a28
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab17a2b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#34 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9610dc0, 
    packet=0x966c5d1 "(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1", packet_length=1487) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29d40bdc4f ""
        parser_state = {
          m_lip = {
            m_thd = 0x9610dc0, 
            yylineno = 57, 
            yytoklen = 1, 
            yylval = 0x7f2ab17a0680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29d40bdc50 ") and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 des(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1", 
            m_tok_start = 0x7f29d40bdc50 ") and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 des(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1", 
            m_tok_end = 0x7f29d40bdc50 ") and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 des(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1", 
            m_end_of_query = 0x7f29d40bdc4f "", 
            m_tok_start_prev = 0x7f29d40bdc4f "", 
            m_buf = 0x7f29d40bd680 "(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1", 
            m_buf_length = 1487, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29d40bdcb0 "(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1", 
            m_cpp_ptr = 0x7f29d40be27f "", 
            m_cpp_tok_start = 0x7f29d40be27f "", 
            m_cpp_tok_start_prev = 0x7f29d40be27f "", 
            m_cpp_tok_end = 0x7f29d40be27f "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29d40be27e "1", 
            m_cpp_text_end = 0x7f29d40be27f "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x9611038
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab17a2d00
        }
#35 0x00000000006dc1ad in do_command (thd=0x9610dc0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x966c5d0 "\003(\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non (t9.col78 is not null )\n \t\n\t right join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t right join `test`.`t2` as `t2`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non ( '1'  )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t9` as `t9` force index (idx55,idx48)\n\t natural left outer join `test`.`t27` as `t27` ignore index (idx241,idx242,idx239,idx246)\n \t\n\t inner join `test`.`t17` as `t17`  \non ( '1'  )\n \t\n\t right join `test`.`t22` as `t22`  \non (@var7 + @var5 )\n \t\n\t right join `test`.`t2` as `t2`  \non ( des_decrypt((t9.col67),(t9.col66)) sounds like  greatest((t2.col14),(t2.col16),(t2.col8),(t2.col8),(t2.col18)) )\n \t\n\t right join `test`.`t8` as `t8` use index (PRIMARY,idx37,idx37) \non (t9.col80 is not false )\n  where\nt9.col73  collate latin1_bin <= '2010-08-17 10:02:17' or \nt9.col70 > all( select '1' ) and \n row(t9.col67 ,t9.col75 )< row(( select '1' ) ,( select '1' ) )\n \ngroup by \n\tt9.col78 desc,\n\tt9.col66\n \n having `col78` | `col78`\n \nlimit 1\n   lock in share mode) order by 1"
        packet_length = 1488
        net = 0x9611038
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#36 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9610dc0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9611038
        rc = false
        thd = 0x9610dc0
#37 0x00000000006b6753 in handle_one_connection (arg=0x9610dc0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9610dc0
#38 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#39 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 42 (Thread 0x7f2ab1762700 (LWP 2351)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x9670720, mp=0x96706b0, abstime=0x7f2ab175f160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x9670720, mutex=0x96706b0, abstime=0x7f2ab175f160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2977296464, 
          m_cond = 0x91e646, 
          m_mutex = 0x96706b0, 
          m_thread = 0x9670788, 
          m_timer_start = 139821342650496, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96706b0 "", 
          m_src_line = 157746976, 
          m_wait = 0x96705e0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96706b0, owner=0x96706a8, abs_timeout=0x7f2ab175f160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96706b0, mdl_request=0x7f29c8166c50, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29c8145e90
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc009810
        abs_timeout = {
          tv_sec = 1331674207, 
          tv_nsec = 370025200
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96705e0, ot_ctx=0x7f2ab175fa10, mdl_request=0x7f29c8166c50, 
    flags=0, mdl_ticket=0x7f2ab175f840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab175fa10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29c80009e0, 
          prev_in_list = 0x7f2ab175f320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\363u\261*\177\000\000p\362u\261*\177\000\000\000J\221\000\000\000\000\000\300\t\000\310)\177\000\000\340\t\000\310)\177\000\000\r\000\000\000\000\000\000\000Ѕ\v\250)\177\000\000\360\205\v\250)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\300\b\000\310\000\000\001\000\340\204\v\250)\177\000\000\000J\221\000\000\000\000\000\300\t\000\310)\177\000\000\300\b\000\310)\177\000\000\360\362u\261*\177\000\000i|\272\000\000\000\000\000\300\t\000\310)\177\000\000\340\t\000\310)\177\000\000 \363u\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\340\t\000ȯ\n\000\000\340\t\000\310)\177\000\000\t\000\000\000\000\000\000\000`\363u\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\300\215\v\250)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\370u\261*\177\000\000\220\363u\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, "Ѕ\v\250)\177\000\000\300\b\000\310\000\000\001\000\260\363u\261*\177\000\000V\257\272\000\000\000\000\000\300h\026\310)\177\000\000Z\237W\000\000\000\000\000\000\364u\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96705e0, table_list=0x7f29c81668c0, mem_root=0x7f2ab175f9d0, 
    ot_ctx=0x7f2ab175fa10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab175fa10
        key =           "test\000t26\000\000\000\000\000\004\000\000\000\370u\261*\177\000\000٢\272\000\000\000\000\000\360\370u\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000\320\370u\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\372u\261*\177\000\000\340\366u\261*\177\000\000̪i\000\000\000\000\000\000\371u\261*\177\000\000\320\370u\261*\177\000\000p\371u\261*\177\000\000\030\005i\000\000\000\000\000\020\367u\261*\177\000\000\202(\241\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "x\\\000\310)\177\000\000\000J\221\000\000\000\000\000\330\371\000\270)\177\000\000\300\b\000\310)\177\000\000P\367u\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\340\t\000\310)\177\000\000P\370u\261*\177\000\000\377\243\272\000\000\000\000\000H\"g\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\300\b\000\310)\177\000\000\240\367u\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\310)\177\000\000\240\370u\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\370u\261*\177\000\000\360\367u\261*\177\000\000\300\b\000\310\000\000\001\000x\\\000\310)\177\000\000\340\t"
        alias = 0x7f29c8006890 "t26"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab175f8f0
        }
        mdl_ticket = 0x7f29c80009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3355445696
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96705e0, lex=0x9672248, tables=0x7f29c81668c0, 
    counter=0x7f2ab175fb34, flags=0, prelocking_strategy=0x7f2ab175fb80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab175fa10, new_frm_mem=0x7f2ab175f9d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab175fa40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96705e0, start=0x7f2ab175faf0, counter=0x7f2ab175fb34, flags=0, 
    prelocking_strategy=0x7f2ab175fb80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab175fb00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29c8005c80
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96722d0
        tables = 0x7f29c81668c0
        error = false
        new_frm_mem = {
          free = 0x7f29c8031030, 
          used = 0x0, 
          pre_alloc = 0x7f29c8031030, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96705e0, tables=0x7f29c80056d0, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab175fb80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 3
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1760c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96705e0, tables=0x7f29c80056d0, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x96705e0, all_tables=0x7f29c80056d0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x9672248
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x96705e0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x9672248
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1760ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9672930
        first_table = 0x7f29c80056d0
        all_tables = 0x7f29c80056d0
        unit = 0x96722f8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96705e0, 
    rawbuf=0x7f29c8004c70 "(\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non ( concat_ws((t29.col289),(t29.col279),(t29.col285)) <>  date_add((t4.col29),interval (t4.col24) month) )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (t29.col289 / @var8 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non (@var1 rlike @var2 )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var4 rlike @var1 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) order by 1", length=951, 
    parser_state=0x7f2ab1761610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x9672248
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1761b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96705e0, 
    packet=0x96736f1 "(\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non ( concat_ws((t29.col289),(t29.col279),(t29.col285)) <>  date_add((t4.col29),interval (t4.col24) month) )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (t29.col289 / @var8 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non (@var1 rlike @var2 )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var4 rlike @var1 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) order by 1", packet_length=951)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c8005027 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96705e0, 
            yylineno = 45, 
            yytoklen = 1, 
            yylval = 0x7f2ab175f680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c8005028 "", 
            m_tok_start = 0x7f29c8005028 "", 
            m_tok_end = 0x7f29c8005028 "", 
            m_end_of_query = 0x7f29c8005027 "", 
            m_tok_start_prev = 0x7f29c8005027 "", 
            m_buf = 0x7f29c8004c70 "(\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non ( concat_ws((t29.col289),(t29.col279),(t29.col285)) <>  date_add((t4.col29),interval (t4.col24) month) )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (t29.col289 / @var8 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non (@var1 rlike @var2 )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var4 rlike @var1 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) order by 1", 
            m_buf_length = 951, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c8005088 "(\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non ( concat_ws((t29.col289),(t29.col279),(t29.col285)) <>  date_add((t4.col29),interval (t4.col24) month) )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (t29.col289 / @var8 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non (@var1 rlike @var2 )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var4 rlike @var1 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) order by 1", 
            m_cpp_ptr = 0x7f29c800543f "", 
            m_cpp_tok_start = 0x7f29c800543f "", 
            m_cpp_tok_start_prev = 0x7f29c800543f "", 
            m_cpp_tok_end = 0x7f29c800543f "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 127 '\177', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c800543e "1", 
            m_cpp_text_end = 0x7f29c800543f "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x9670858
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1761d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96705e0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96736f0 "\003(\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non ( concat_ws((t29.col289),(t29.col279),(t29.col285)) <>  date_add((t4.col29),interval (t4.col24) month) )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (t29.col289 / @var8 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) union all (\nselect   count(*) from\n\t`test`.`t29` as `t29` force index (idx266,idx265)\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural left join `test`.`t26` as `t26` \n \t\n\t natural right join `test`.`t14` as `t14` \n \t\n\t left join `test`.`t4` as `t4` force index (idx19) \non (@var1 rlike @var2 )\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var4 rlike @var1 )\n  \n \ngroup by \n\tt29.a29\n \n \n \nlimit 1\n   lock in share mode) order by 1"
        packet_length = 952
        net = 0x9670858
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96705e0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9670858
        rc = false
        thd = 0x96705e0
#17 0x00000000006b6753 in handle_one_connection (arg=0x96705e0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96705e0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 41 (Thread 0x7f2ab1721700 (LWP 2352)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x9677840, mp=0x96777d0, abstime=0x7f2ab171e5d0, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x9677840, mutex=0x96777d0, abstime=0x7f2ab171e5d0, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2977031360, 
          m_cond = 0x91e646, 
          m_mutex = 0x96777d0, 
          m_thread = 0x96778a8, 
          m_timer_start = 139821342385392, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96777d0 "", 
          m_src_line = 157775936, 
          m_wait = 0x9677700
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96777d0, owner=0x96777c8, abs_timeout=0x7f2ab171e5d0, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96777d0, mdl_request=0x7f29cc12fc00, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29cc061450
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331672574, 
          tv_nsec = 811665100
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x9677700, ot_ctx=0x7f2ab171ee80, mdl_request=0x7f29cc12fc00, 
    flags=0, mdl_ticket=0x7f2ab171ecb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x7f2ab171ed90
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab171ee80, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29cc0009e0, 
          prev_in_list = 0x7f2ab171e790, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 30632, 
            m_db_name_length = 52240, 
            m_ptr =               ")\177\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\240\347q\261*\177\000\000\340\346q\261*\177\000\000\270\f\006\314)\177\000\000w\023\320", '\000' <repeats 13 times>, "X\347\317\000\000\000\000\000\300\b\000\314\000\000\001\000\020\347q\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\314)\177\000\000\340\t\000\314)\177\000\000@\351q\261*\177\000\000٢\272\000\000\000\000\000`\351q\261*\177\000\000\300\b\000\314\360\000\000\000P\347q\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\314)\177\000\000\340\t\000\314)\177\000\000\200\351q\261*\177\000\000٢\272\000\000\000\000\000\240\351q\261*\177\000\000V\257\272\000\360\000\000\000w\023\320", '\000' <repeats 13 times>"\260, \351q\261*\177\000\000\300\b\000\314\000\000\001\000\260\347q\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\314)\177\000\000\340\t\000\314)\177\000\000\240\000\305", '\000' <repeats 14 times>"\352, q\261*\177\000\000\300\b\000\314\000\000\001\000\360\347q\261*\177\000\000V\257\272\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, " \352q\261*\177\000\000\300\b\000\314\000\000\001\000 \350q\261*\177\000\000V\257\272\000\000\000\000\000p\370\022\314)\177\000\000Z\237W\000\000\000\000\000p\350q\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x9677700, table_list=0x7f29cc12f870, mem_root=0x7f2ab171ee40, 
    ot_ctx=0x7f2ab171ee80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab171ee80
        key =           "test\000t6\000\000\000\000\000\005\000\000\000\020\355q\261*\177\000\000٢\272\000\000\000\000\000`\355q\261*\177\000\000p\223g\t\244\021\000\000\000wg\t\000\000\000\000\030u\020\314)\177\000\000\033\000\004\000\005test\000trg_t10_after_delete\000\000P\353q\261*\177\000\000̪i\000\000\000\000\000p\355q\261*\177\000\000@\355q\261*\177\000\000\340\355q\261*\177\000\000\030\005i\000\000\000\000\000\021 \305", '\000' <repeats 13 times>"\200, \063\341\001", '\000' <repeats 12 times>, "8\255\022\314)\177\000\000\000J\221\000\000\000\000\000\300\t\000\314)\177\000\000\300\b\000\314)\177\000\000\300\353q\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\340\t\000\314)\177\000\000\300\354q\261*\177\000\000\377\243\272\000\000\000\000\000h\223g\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\300\b\000\314)\177\000\000\020\354q\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\314)\177\000\000\020\355q\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000 \355q\261*\177\000\000`\354q\261*\177\000\000\300\b\000\314\000\000\001\000\070\255\022\314)\177\000\000\340\t"
        alias = 0x7f29cc12fdc0 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab171ed60
        }
        mdl_ticket = 0x7f29cc0009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 3422554560
#7  0x000000000068fb90 in open_and_process_table (thd=0x9677700, lex=0x9679368, tables=0x7f29cc12f870, 
    counter=0x7f2ab171efa4, flags=0, prelocking_strategy=0x7f2ab171eff0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab171ee80, new_frm_mem=0x7f2ab171ee40) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4369
        no_such_table_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1114030, 
            m_prev_internal_handler = 0x0
          }, 
          members of No_such_table_error_handler: 
          m_handled_errors = 0, 
          m_unhandled_errors = 0
        }
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab171eeb0
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x9677700, start=0x7f2ab171ef60, counter=0x7f2ab171efa4, flags=0, 
    prelocking_strategy=0x7f2ab171eff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab171ef70
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29cc12ad40
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96793f0
        tables = 0x7f29cc12f870
        error = false
        new_frm_mem = {
          free = 0x7f29cc12b7b0, 
          used = 0x0, 
          pre_alloc = 0x7f29cc12b7b0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x9677700, tables=0x7f29cc12a798, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab171eff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 9
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab171fc00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x9677700, tables=0x7f29cc12a798, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e1923 in mysql_execute_command (thd=0x9677700)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2957
        aux_tables = 0x7f29cc005390
        del_result = 0x7f2ab171e400
        res = 0
        lex = 0x9679368
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab171fee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9679a50
        first_table = 0x7f29cc12a798
        all_tables = 0x7f29cc12a798
        unit = 0x9679418
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x9677700, 
    rawbuf=0x7f29cc004c70 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t17` as `t17` force index (idx119,PRIMARY,idx119)\n\t cross join `test`.`t7` as `t7` force index (PRIMARY) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t26` as `t26` \n \t\n\t natural left outer join `test`.`t3` as `t3` force index (idx15,idx15,PRIMARY)\n \t\n\t straight_join `test`.`t27` as `t27` ignore index (idx247) \non ( insert(( cast((t17.a17) as unsigned)),( interval((t17.col186),(t17.col185),(t17.col185))),( ((t17.col185) in ((t17.col186),(t17.col186),(t17.a17),(t17.col185),(t17.a17)))),( current_timestamp())) | t17.col186 )\n \t\n\t straight_join `test`.`t8` as `t8`  \non (t17.col185 regexp @var9 )\n \t\n\t left join `test`.`t10` as `t10` force index (PRIMARY) \non (@var0 is not unknown )\n  \n \ngroup by \n\tt10.col90\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col86>x.a17", length=825, parser_state=0x7f2ab1720610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x9679368
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1720b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9677700, 
    packet=0x967a811 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t17` as `t17` force index (idx119,PRIMARY,idx119)\n\t cross join `test`.`t7` as `t7` force index (PRIMARY) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t26` as `t26` \n \t\n\t natural left outer join `test`.`t3` as `t3` force index (idx15,idx15,PRIMARY)\n \t\n\t straight_join `test`.`t27` as `t27` ignore index (idx247) \non ( insert(( cast((t17.a17) as unsigned)),( interval((t17.col186),(t17.col185),(t17.col185))),( ((t17.col185) in ((t17.col186),(t17.col186),(t17.a17),(t17.col185),(t17.a17)))),( current_timestamp())) | t17.col186 )\n \t\n\t straight_join `test`.`t8` as `t8`  \non (t17.col185 regexp @var9 )\n \t\n\t left join `test`.`t10` as `t10` force index (PRIMARY) \non (@var0 is not unknown )\n  \n \ngroup by \n\tt10.col90\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col86>x.a17\n", packet_length=826)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29cc004fa9 ""
        parser_state = {
          m_lip = {
            m_thd = 0x9677700, 
            yylineno = 29, 
            yytoklen = 3, 
            yylval = 0x7f2ab171e680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29cc004faa "", 
            m_tok_start = 0x7f29cc004faa "", 
            m_tok_end = 0x7f29cc004faa "", 
            m_end_of_query = 0x7f29cc004fa9 "", 
            m_tok_start_prev = 0x7f29cc004fa9 "", 
            m_buf = 0x7f29cc004c70 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t17` as `t17` force index (idx119,PRIMARY,idx119)\n\t cross join `test`.`t7` as `t7` force index (PRIMARY) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t26` as `t26` \n \t\n\t natural left outer join `test`.`t3` as `t3` force index (idx15,idx15,PRIMARY)\n \t\n\t straight_join `test`.`t27` as `t27` ignore index (idx247) \non ( insert(( cast((t17.a17) as unsigned)),( interval((t17.col186),(t17.col185),(t17.col185))),( ((t17.col185) in ((t17.col186),(t17.col186),(t17.a17),(t17.col185),(t17.a17)))),( current_timestamp())) | t17.col186 )\n \t\n\t straight_join `test`.`t8` as `t8`  \non (t17.col185 regexp @var9 )\n \t\n\t left join `test`.`t10` as `t10` force index (PRIMARY) \non (@var0 is not unknown )\n  \n \ngroup by \n\tt10.col90\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col86>x.a17", 
            m_buf_length = 825, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29cc005008 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t17` as `t17` force index (idx119,PRIMARY,idx119)\n\t cross join `test`.`t7` as `t7` force index (PRIMARY) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t26` as `t26` \n \t\n\t natural left outer join `test`.`t3` as `t3` force index (idx15,idx15,PRIMARY)\n \t\n\t straight_join `test`.`t27` as `t27` ignore index (idx247) \non ( insert(( cast((t17.a17) as unsigned)),( interval((t17.col186),(t17.col185),(t17.col185))),( ((t17.col185) in ((t17.col186),(t17.col186),(t17.a17),(t17.col185),(t17.a17)))),( current_timestamp())) | t17.col186 )\n \t\n\t straight_join `test`.`t8` as `t8`  \non (t17.col185 regexp @var9 )\n \t\n\t left join `test`.`t10` as `t10` force index (PRIMARY) \non (@var0 is not unknown )\n  \n \ngroup by \n\tt10.col90\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col86>x.a17", 
            m_cpp_ptr = 0x7f29cc005341 "", 
            m_cpp_tok_start = 0x7f29cc005341 "", 
            m_cpp_tok_start_prev = 0x7f29cc005341 "", 
            m_cpp_tok_end = 0x7f29cc005341 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29cc00533e "a17", 
            m_cpp_text_end = 0x7f29cc005341 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x9677978
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1720d00
        }
#14 0x00000000006dc1ad in do_command (thd=0x9677700) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x967a810 "\003delete t10 from  (\nselect   count(*) from\n\t`test`.`t17` as `t17` force index (idx119,PRIMARY,idx119)\n\t cross join `test`.`t7` as `t7` force index (PRIMARY) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t26` as `t26` \n \t\n\t natural left outer join `test`.`t3` as `t3` force index (idx15,idx15,PRIMARY)\n \t\n\t straight_join `test`.`t27` as `t27` ignore index (idx247) \non ( insert(( cast((t17.a17) as unsigned)),( interval((t17.col186),(t17.col185),(t17.col185))),( ((t17.col185) in ((t17.col186),(t17.col186),(t17.a17),(t17.col185),(t17.a17)))),( current_timestamp())) | t17.col186 )\n \t\n\t straight_join `test`.`t8` as `t8`  \non (t17.col185 regexp @var9 )\n \t\n\t left join `test`.`t10` as `t10` force index (PRIMARY) \non (@var0 is not unknown )\n  \n \ngroup by \n\tt10.col90\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col86>x.a17\n"
        packet_length = 827
        net = 0x9677978
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9677700)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9677978
        rc = false
        thd = 0x9677700
#16 0x00000000006b6753 in handle_one_connection (arg=0x9677700)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9677700
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 40 (Thread 0x7f2ab16e0700 (LWP 2356)):
+backtrace full
#0  os_thread_get_curr_id () at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/os/os0thread.c:93
No locals.
#1  0x0000000000a4e475 in mutex_enter_func (mutex=0x7f29e77c5670, 
    file_name=0xd3bad8 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/buf/buf0buf.c", line=4645)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/include/sync0sync.ic:215
No locals.
#2  0x0000000000a4e56f in pfs_mutex_enter_func (mutex=0x7f29e77c5670, 
    file_name=0xd3bad8 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/buf/buf0buf.c", line=4645)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/include/sync0sync.ic:251
        locker = 0x0
        state = {
          m_flags = 2976777984, 
          m_mutex = 0x7f2ab16e0700, 
          m_thread = 0x7f2ab16dc4e0, 
          m_timer_start = 139817954071640, 
          m_timer = 0xb4da, 
          m_operation = 3883684968, 
          m_src_file = 0x7f2ab16dc500 " \305m\261", 
          m_src_line = 10806199, 
          m_wait = 0x1b2001bc
        }
        result = 0
#3  0x0000000000a5c8a5 in buf_pool_validate_instance (buf_pool=0x472fe68)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/buf/buf0buf.c:4645
        j = 121622
        block = 0x7f29e77c55c0
        b = 0xa502f2
        chunk = 0x4730588
        i = 0
        n_lru_flush = 0
        n_list_flush = 0
        n_lru = 793
        n_flush = 0
        n_free = 8653
        n_zip = 0
        fold = 455082428
        space = 434
        offset = 10
#4  0x0000000000a5d10b in buf_validate () at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/buf/buf0buf.c:4850
        buf_pool = 0x472fe68
        i = 0
#5  0x0000000000a59751 in buf_page_optimistic_get (rw_latch=1, block=0x7f29e731ecd0, modify_clock=1, 
    file=0xd20c38 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/row/row0sel.c", line=3178, 
    mtr=0x7f2ab16dcb20) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/buf/buf0buf.c:3436
        buf_pool = 0x7f29d000a498
        access_time = 3056078741
        success = 1
        fix_type = 1
#6  0x0000000000a44528 in btr_pcur_restore_position_func (latch_mode=1, cursor=0x7f29d000a3b8, 
    file=0xd20c38 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/row/row0sel.c", line=3178, 
    mtr=0x7f2ab16dcb20) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/btr/btr0pcur.c:262
        index = 0x7f29d40185a8
        tuple = 0x1
        mode = 139821342116640
        old_mode = 11536611
        heap = 0x7f2ab16dc6e0
#7  0x00000000009d42d4 in sel_restore_position_for_mysql (same_user_rec=0x7f2ab16dcff0, latch_mode=1, 
    pcur=0x7f29d000a3b8, moves_up=1, mtr=0x7f2ab16dcb20)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/row/row0sel.c:3178
        success = 139821342115696
        relative_position = 1
#8  0x00000000009d5a3e in row_search_for_mysql (buf=0x7f29d0009770 "\377", mode=1, prebuilt=0x7f29d0018748, 
    match_mode=0, direction=1) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/row/row0sel.c:3961
        need_to_process = 8404964
        index = 0x7f29d40185a8
        comp = 1
        search_tuple = 0x7f29d0018b38
        pcur = 0x7f29d000a3b8
        trx = 0x7f29b800f9d8
        clust_index = 0x7f29d40185a8
        thr = 0x7f29d0018f48
        rec = 0x579f5a "\311\303UH\211\345H\211}\370H\213E\370H\213@`\311\303UH\211\345H\203\354\020H\211}\370H\213E\370H\211\307\350\362\366\377\377\311\303UH\211\345H\211}\370H\213E\370H\213\025\225", <incomplete sequence \352\272>
        result_rec = 0x967e820 "\020F\021\001"
        clust_rec = 0x967e820 "\020F\021\001"
        err = 10
        unique_search = 0
        mtr_has_extra_clust_latch = 0
        moves_up = 1
        set_also_gap_locks = 1
        did_semi_consistent_read = 0
        next_offs = 139817157396960
        same_user_rec = 1
        mtr = {
          state = 12231, 
          memo = {
            heap = 0x0, 
            used = 16, 
            data =               "\001\000\000\000\000\000\000\000\320\354\061\347)\177\000\000&\000\000\000\000\000\000\000*\000\000\000\000\000\000\000C\000\000\000\000\000\000\000E", '\000' <repeats 15 times>, "t\207", '\000' <repeats 14 times>, "0\000\000\000\000\000\000\000\067", '\000' <repeats 15 times>, "\003", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, " \000\000\000\000\000\000\000#\000\000\000\000\000\000\000#\000\000\000\000\000\000\000$\000\000\000\000\000\000\000,\000\000\000\000\000\000\000\064\000\000\000\000\000\000\000<\000\000\000\000\000\000\000A\000\000\000\000\000\000\000Z\000\000\000\000\000\000\000s\000\000\000\000\000\000\000\b\320m\261*\177\000\000\370\317m\261*\177\000\000@\322m\261*\177\000\000@\314m\261*\177\000\000\271\021\260\000\000\000\000\000\330\371\000\270)\177\000\000\360\317m\261*\177\000\000\220\325m\261*\177\000\000\000\000\000\000\000\000\000\000t\207", '\000' <repeats 14 times>, "\020\000\000\000\000\000\000\000\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 39 times>, "t\207", '\000' <repeats 14 times>, "@\000\000\000\000\000\000\000\067", '\000' <repeats 15 times>, "\003", '\000' <repeats 15 times>, "\003", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\016\000\000\000\000\000\000\000\025\000\000\000\000\000\000\000\025\000\000\000\000\000\000\000.\000\000\000\000\000\000\000\342\006t\000\000\000\000\000\210v\034\270)\177\000\000\000\000\000\000\000\000\064@\000\316m\261\001\000\000", 
            base = {
              count = 126, 
              start = 0x7f29b81c70b8, 
              end = 0x7f29b81c5aa0
            }, 
            list = {
              prev = 0x7f2ab16dcd70, 
              next = 0x73dbb9
            }, 
            buf_end = 0, 
            magic_n = 375767
          }, 
          log = {
            heap = 0x0, 
            used = 0, 
            data =               "t\207\000\000\000\000\000\000\300\b\000\270\000\000\001\000\260\315m\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\270)\177\000\000\340\t\000\270)\177\000\000\340\317m\261*\177\000\000٢\272\000\000\000\000\000 \320m\261*\177\000\000\361\342Z\000\037\030\000\000h\233\034\270\000\000\000\000\000\316m\261*\177\000\000''\321", '\000' <repeats 13 times>, "\020\316m\261*\177\000\000\300\b\000\270\000\000\001\000 \316m\261*\177\000\000V\257\272\000\000\000\000\000\304(\321", '\000' <repeats 13 times>, "P\320m\261*\177\000\000\300\b\000\270\000\000\001\000P\316m\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\270)\177\000\000\340\t\000\270)\177\000\000\266(\321", '\000' <repeats 13 times>"\240, \320m\261*\177\000\000\300\b\000\270\000\000\001\000\220\316m\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\270)\177\000\000\340\t\000\270)\177\000\000\300\320m\261*\177\000\000٢\272\000\000\000\000\000\360\320m\261*\177\000\000\340\t\000\270\357\030\000\000\340\320m\261*\177\000\000٢\272\000\000\000\000\000\177&\321", '\000' <repeats 21 times>"\300, \b\000\270\000\000\001\000\000\317m\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\270)\177\000\000\340\t\000\270)\177\000\000\060\321m\261*\177\000\000٢\272\000\000\000\000\000P\321m\261*\177\000\000\n\000\000\000\352\026\000\000@\317m\261*\177\000\000\006ö\353)\177\000\000N\273\306", '\000' <repeats 13 times>"\250, \205\001\324)\177\000\000\300\b\000\270\000\000\001\000p\317m\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\270)\177\000\000\340\t\000\270)\177\000\000\240\321m\261*\177\000\000٢\272\000\000\000\000", 
            base = {
              count = 139821342118352, 
              start = 0x45bd000004f1, 
              end = 0x0
            }, 
            list = {
              prev = 0x1, 
              next = 0x1
            }, 
            buf_end = 0, 
            magic_n = 375767
          }, 
          modifications = 0, 
          n_log_recs = 0, 
          log_mode = 21, 
          start_lsn = 139817157396960, 
          end_lsn = 22, 
          magic_n = 54551
        }
        heap = 0x0
        offsets_ =           {[0] = 100,
          [1] = 10,
          [2] = 139818025009488,
          [3] = 139817627256232,
          [4] = 2147483658,
          [5] = 4,
          [6] = 10,
          [7] = 17,
          [8] = 21,
          [9] = 25,
          [10] = 30,
          [11] = 31,
          [12] = 39,
          [13] = 42,
          [14] = 46,
          [15] = 139816755948688,
          [16] = 139821342116952,
          [17] = 139821342117536,
          [18] = 139821342116000,
          [19] = 11538873,
          [20] = 139817157458392,
          [21] = 139816755948688,
          [22] = 139821342118384,
          [23] = 10319086,
          [24] = 4166,
          [25] = 151,
          [26] = 176,
          [27] = 180,
          [28] = 181,
          [29] = 1,
          [30] = 0,
          [31] = 139816755070424,
          [32] = 1,
          [33] = 139816755948688,
          [34] = 345,
          [35] = 348,
          [36] = 373,
          [37] = 139821342116128,
          [38] = 100,
          [39] = 22,
          [40] = 139818031883301,
          [41] = 139817627865960,
          [42] = 2147483666,
          [43] = 25,
          [44] = 50,
          [45] = 56,
          [46] = 63,
          [47] = 67,
          [48] = 92,
          [49] = 117,
          [50] = 142,
          [51] = 167,
          [52] = 171,
          [53] = 173,
          [54] = 198,
          [55] = 198,
          [56] = 199,
          [57] = 323,
          [58] = 331,
          [59] = 356,
          [60] = 359,
          [61] = 363,
          [62] = 388,
          [63] = 391,
          [64] = 416,
          [65] = 759,
          [66] = 767,
          [67] = 1,
          [68] = 0,
          [69] = 139816757104280,
          [70] = 1,
          [71] = 139816757915072,
          [72] = 840,
          [73] = 0,
          [74] = 34676,
          [75] = 0,
          [76] = 48,
          [77] = 55,
          [78] = 0,
          [79] = 3,
          [80] = 0,
          [81] = 1,
          [82] = 0,
          [83] = 19,
          [84] = 23,
          [85] = 26,
          [86] = 752,
          [87] = 753,
          [88] = 755,
          [89] = 756,
          [90] = 757,
          [91] = 802,
          [92] = 806,
          [93] = 807,
          [94] = 815,
          [95] = 823,
          [96] = 848,
          [97] = 856,
          [98] = 881,
          [99] = 885}
        offsets = 0x7f2ab16dc7f0
        table_lock_waited = 0
#9  0x0000000000996c3a in ha_innobase::general_fetch (this=0x7f29d00094b0, buf=0x7f29d0009770 "\377", direction=1, 
    match_mode=0) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/handler/ha_innodb.cc:6359
        ret = 0
        error = 0
        _db_stack_frame_ = {
          func = 0xd128db "rnd_next", 
          file = 0xd10ff0 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/handler/ha_innodb.cc", 
          level = 2147483669, 
          prev = 0x7f2ab16dd150
        }
#10 0x00000000009970ad in ha_innobase::rnd_next (this=0x7f29d00094b0, buf=0x7f29d0009770 "\377")
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/handler/ha_innodb.cc:6553
        error = 0
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483668, 
          prev = 0x7f2ab16dd280
        }
#11 0x00000000005843fe in handler::ha_rnd_next (this=0x7f29d00094b0, buf=0x7f29d0009770 "\377")
    at /mysql2/mysql-next-mr-opt-backporting/sql/handler.cc:2225
        result = 0
        locker = 0x0
        state = {
          m_flags = 3088889032, 
          m_table = 0x0, 
          m_table_share = 0x7f29b81c9408, 
          m_thread = 0x7f29b81bf718, 
          m_timer_start = 13024036, 
          m_timer = 0xc6a360, 
          m_io_operation = 2147483668, 
          m_index = 32554, 
          m_src_file = 0x7f2ab16dd280 "N\273", <incomplete sequence \306>, 
          m_src_line = -1207957056, 
          m_wait = 0x0
        }
#12 0x000000000085d9f7 in rr_sequential (info=0x7f29b81c9490)
    at /mysql2/mysql-next-mr-opt-backporting/sql/records.cc:458
        tmp = 32553
#13 0x000000000072c1c9 in sub_select (join=0x7f29b81bf718, join_tab=0x7f29b81c9408, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17490
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483667, 
          prev = 0x7f2ab16dd300
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29b81c9490
#14 0x000000000072cc3a in evaluate_join_record (join=0x7f29b81bf718, join_tab=0x7f29b81c9158, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = NESTED_LOOP_OK
        return_tab = 0x7f29b81c9158
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x7f29b81ea988
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483666, 
          prev = 0x7f2ab16dd3b0
        }
#15 0x000000000072c225 in sub_select (join=0x7f29b81bf718, join_tab=0x7f29b81c9158, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17495
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483665, 
          prev = 0x7f2ab16dd430
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29b81c91e0
#16 0x000000000072cc3a in evaluate_join_record (join=0x7f29b81bf718, join_tab=0x7f29b81c8ea8, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = NESTED_LOOP_OK
        return_tab = 0x7f29b81c8ea8
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x7f29b81cb730
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483664, 
          prev = 0x7f2ab16dd4e0
        }
#17 0x000000000072c225 in sub_select (join=0x7f29b81bf718, join_tab=0x7f29b81c8ea8, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17495
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483663, 
          prev = 0x7f2ab16dd5f0
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29b81c8f30
#18 0x0000000000871ad6 in JOIN_CACHE::generate_full_extensions (this=0x7f29b81eadb8, 
    rec_ptr=0x7f29b8130fa7  <incomplete sequence \373>)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1956
        res = 0
        rc = NESTED_LOOP_OK
#19 0x000000000087185a in JOIN_CACHE_BNL::join_matching_records (this=0x7f29b81eadb8, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1848
        skip_record = false
        consider_record = true
        cnt = 3057
        tab = 0x7f29b81c8bf8
        info = 0x7f29b81c8c80
        select = 0x0
        error = 0
        rc = NESTED_LOOP_OK
#20 0x0000000000871239 in JOIN_CACHE::join_records (this=0x7f29b81eadb8, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1654
        tab = 0xb81c8698
        outer_join_first_inner = false
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483662, 
          prev = 0x7f2ab16dd640
        }
#21 0x00000000008713aa in JOIN_CACHE::join_records (this=0x7f29b81eace8, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1700
        tab = 0xb81c8698
        outer_join_first_inner = false
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xce1b3f "JOIN_CACHE::join_records", 
          file = 0xce1a80 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc", 
          level = 2147483661, 
          prev = 0x7f2ab16dd690
        }
#22 0x00000000008713aa in JOIN_CACHE::join_records (this=0x7f29b81eab40, skip_last=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_join_cache.cc:1700
        tab = 0x7f29b81c8698
        outer_join_first_inner = false
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state JOIN_CACHE::join_records(bool)"
        rc = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xc6bb13 "sub_select_cache", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483660, 
          prev = 0x7f2ab16dd6f0
        }
#23 0x000000000072bee7 in sub_select_cache (join=0x7f29b81bf718, join_tab=0x7f29b81c8698, end_of_records=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17280
        rc = NESTED_LOOP_OK
        cache = 0x7f29b81eab40
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state sub_select_cache(JOIN*, JOIN_TAB*, bool)"
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483659, 
          prev = 0x7f2ab16dd750
        }
#24 0x000000000072c0a3 in sub_select (join=0x7f29b81bf718, join_tab=0x7f29b81c83e8, end_of_records=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17450
        nls = 7531529
        _db_stack_frame_ = {
          func = 0xc6ba1b "do_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483658, 
          prev = 0x7f2ab16dd7d0
        }
        error = -1
        rc = NESTED_LOOP_OK
        info = 0x7f29b81c8470
#25 0x000000000072b6c9 in do_select (join=0x7f29b81bf718, fields=0x7f29b81bfa30, table=0x0, procedure=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17025
        join_tab = 0x7f29b81c83e8
        end_select = 0x72ec09 <end_send_group(JOIN*, JOIN_TAB*, bool)>
        __PRETTY_FUNCTION__ =           "int do_select(JOIN*, List<Item>*, TABLE*, Procedure*)"
        rc = 0
        error = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xc6a950 "JOIN::exec", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483657, 
          prev = 0x7f2ab16dd870
        }
#26 0x000000000070b79e in JOIN::exec (this=0x7f29b81bf718)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:3365
        _db_stack_frame_ = {
          func = 0xc7710a "st_select_lex_unit::exec", 
          file = 0xc77070 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc", 
          level = 2147483656, 
          prev = 0x7f2ab16dd9b0
        }
        __FUNCTION__ =           "exec"
        tmp_error = 32553
        curr_join = 0x7f29b81bf718
        curr_fields_list = 0x7f29b81bfa30
        __PRETTY_FUNCTION__ =           "void JOIN::exec()"
        columns_list = 0x7f29b812a320
        has_group_by = false
        curr_all_fields = 0x7f29b81bf9e8
        curr_tmp_table = 0x0
#27 0x0000000000781a1b in st_select_lex_unit::exec (this=0x9680538)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc:531
        records_at_start = 1
        error = 0
        sl = 0x7f29b812a218
        select_cursor = 0x9680b70
        examined_rows = 0
        __PRETTY_FUNCTION__ =           "bool st_select_lex_unit::exec()"
        lex_select_save = 0x7f29b812a4e0
        add_rows = 0
        _db_stack_frame_ = {
          func = 0xc770a7 "mysql_union", 
          file = 0xc77070 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc", 
          level = 2147483655, 
          prev = 0x7f2ab16dda90
        }
#28 0x0000000000780053 in mysql_union (thd=0x967e820, lex=0x9680488, result=0x7f29b805c6a0, unit=0x9680538, 
    setup_tables_done_option=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc:38
        _db_stack_frame_ = {
          func = 0xc6a398 "handle_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483654, 
          prev = 0x7f2ab16ddb50
        }
        res = false
#29 0x0000000000702760 in handle_select (thd=0x967e820, lex=0x9680488, result=0x7f29b805c6a0, 
    setup_tables_done_option=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:301
        res = false
        select_lex = 0x9680488
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab16dec00
        }
#30 0x00000000006e66c6 in execute_sqlcom_select (thd=0x967e820, all_tables=0x7f29b8005758)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4503
        lex = 0x9680488
        result = 0x7f29b805c6a0
        res = false
#31 0x00000000006df545 in mysql_execute_command (thd=0x967e820)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x9680488
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab16deee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9680b70
        first_table = 0x7f29b8005758
        all_tables = 0x7f29b8005758
        unit = 0x9680538
        have_table_map_for_update = false
#32 0x00000000006e8823 in mysql_parse (thd=0x967e820, 
    rawbuf=0x7f29b8004c70 "(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1", length=1076, 
    parser_state=0x7f2ab16df610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x9680488
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab16dfb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#33 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x967e820, 
    packet=0x9681931 "(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1", packet_length=1076)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b80050a4 ""
        parser_state = {
          m_lip = {
            m_thd = 0x967e820, 
            yylineno = 45, 
            yytoklen = 1, 
            yylval = 0x7f2ab16dd680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b80050a5 "\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (t7.col57 i(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1", 
            m_tok_start = 0x7f29b80050a5 "\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (t7.col57 i(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1", 
            m_tok_end = 0x7f29b80050a5 "\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (t7.col57 i(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1", 
            m_end_of_query = 0x7f29b80050a4 "", 
            m_tok_start_prev = 0x7f29b80050a4 "", 
            m_buf = 0x7f29b8004c70 "(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1", 
            m_buf_length = 1076, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b8005108 "(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1", 
            m_cpp_ptr = 0x7f29b800553c "", 
            m_cpp_tok_start = 0x7f29b800553c "", 
            m_cpp_tok_start_prev = 0x7f29b800553c "", 
            m_cpp_tok_end = 0x7f29b800553c "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b800553b "1", 
            m_cpp_text_end = 0x7f29b800553c "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x967ea98
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab16dfd00
        }
#34 0x00000000006dc1ad in do_command (thd=0x967e820) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x9681930 "\003(\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non (@var0 is not unknown )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non (@var6 = t1.col3 )\n  \n\n \n \n \nlimit 1\n   ) union all (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t natural left join `test`.`t5` as `t5` \n \t\n\t cross join `test`.`t16` as `t16`  \non ( export_set(( des_encrypt((t7.a7))),( ((t7.a7) < (t7.col58))),( ((t7.a7) in ((t7.col58),(t7.col56),(t7.col56),(t7.col56),(t7.col57))))) |  des_encrypt((t16.col179)) )\n \t\n\t natural join `test`.`t18` as `t18` force index (idx128)\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx267)\n \t\n\t left join `test`.`t1` as `t1`  \non ( ((t7.a7) not in ((t7.col58),(t7.a7),(t7.col57),(t7.col56),(t7.col57))) = @var0 )\n  \n\n \n \n \nlimit 1\n   ) order by 1"
        packet_length = 1077
        net = 0x967ea98
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#35 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x967e820)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x967ea98
        rc = false
        thd = 0x967e820
#36 0x00000000006b6753 in handle_one_connection (arg=0x967e820)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x967e820
#37 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#38 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 39 (Thread 0x7f2ab169f700 (LWP 2357)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x9685a80, mp=0x9685a10, abstime=0x7f2ab169cb90, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x9685a80, mutex=0x9685a10, abstime=0x7f2ab169cb90, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2976500368, 
          m_cond = 0x9685a08, 
          m_mutex = 0x7f2ab169cab0, 
          m_thread = 0x967e820, 
          m_timer_start = 139821341854448, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x9685a10 "", 
          m_src_line = 157833856, 
          m_wait = 0x9685940
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x9685a10, owner=0x9685a08, abs_timeout=0x7f2ab169cb90, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0x0
        result = 32554
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x9685a10, mdl_request=0x7f2ab169cc50, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 961233500
        }
        ticket = 0x7f29bc3135b0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29b4058770
        abs_timeout = {
          tv_sec = 1331672633, 
          tv_nsec = 7480900
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063ce89 in MDL_context::upgrade_shared_lock_to_exclusive (this=0x9685a10, mdl_ticket=0x7f29bc040520, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1994
        mdl_xlock_request = {
          type = MDL_EXCLUSIVE, 
          duration = MDL_TRANSACTION, 
          next_in_list = 0x83765b, 
          prev_in_list = 0xc55792, 
          ticket = 0x0, 
          key = {
            m_length = 10, 
            m_db_name_length = 4, 
            m_ptr =               "\002test\000t16\000\000\000\222W\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200*\177\000\000\000\315i\261*\177\000\000hZ\000\274)\177\000\000\020\235%\274)\177\000\000\320\314i\261\000\000\000\000Xa\000\274)\177\000\000i\006", '\000' <repeats 14 times>, "`\315i\261*\177\000\000\205\"i\000\000\000\000\000hZ\000\274)\177\000\000\000J\221\000\000\000\000\000hZ\000\274)\177\000\000\300\b\000\274)\177\000\000 \315i\261*\177\000\000i|\272\000\002\000\001\000\001\000\000\000\000\000\000\000\000J\221\000\000\000\000\000 \316i\261*\177\000\000\300\b\000\274)\177\000\000P\315i\261*\177\000\000i|\272\000\002\000\001\000aH\305\000\000\000\000\000\340\t\000\274)\177\000\000P\316i\261*\177\000\000\377\243\272\000\000\000\000\000\360\315i\261*\177\000\000\320N\305\000\000\000\000\000\b\000\000\000\060\000\000\000`\316i\261*\177\000\000\240\315i\261*\177\000\000\300\202a\302\062\000\000\000\001\000\000\000\000\000\000\000\340\t\000\274)\177\000\000\330U\305\000\000\000\000\000\355\346\006\324)\177\000\000\200\343\006\324)\177\000\000'\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\065\t\000\000\000\000\000\000\360\315i\261*\177\000\000\300\b\000\274\000\000\001\000hZ\000\274)\177\000\000\000J\221\000\000\000\000\000\300\t\000\274)\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        mdl_svp = {
          m_stmt_ticket = 0x7f29bc08af80, 
          m_trans_ticket = 0x7f29bc040520
        }
        __PRETTY_FUNCTION__ =           "bool MDL_context::upgrade_shared_lock_to_exclusive(MDL_ticket*, ulong)"
        is_new_ticket = false
        _db_stack_frame_ = {
          func = 0xc54eb0 "wait_while_table_is_used", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab169ce80
        }
#6  0x000000000068c185 in wait_while_table_is_used (thd=0x9685940, table=0x7f29c00d3670, 
    function=HA_EXTRA_FORCE_REOPEN) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2224
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab169cf90
        }
#7  0x00000000007796f4 in mysql_create_or_drop_trigger (thd=0x9685940, tables=0x7f29bc005a68, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:489
        lock_upgrade_done = false
        mdl_ticket = 0x7f29bc040520
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000bc0008c0, 
          query_tables_last = 0x7f2ab169cf10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139817224505792, 
            key_length = 139817224505824, 
            blength = 139821341855584, 
            records = 12230971, 
            flags = 2976501648, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29bc0009e0, 
            charset = 0x7f29bc0009e0
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab169cf60
          }, 
          sroutines_list_own_last = 0x7f29bc0009c0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2976501712
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f29c00d3670
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab169dc00
        }
#8  0x00000000006e56a9 in mysql_execute_command (thd=0x9685940)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x96875a8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab169dee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9687c90
        first_table = 0x7f29bc005a68
        all_tables = 0x7f29bc005a68
        unit = 0x9687658
        have_table_map_for_update = false
#9  0x00000000006e8823 in mysql_parse (thd=0x9685940, 
    rawbuf=0x7f29bc004c70 "create trigger `trg_t16_before_delete` before delete on `t16` for each row\nbegin\ndelete t20 from  (\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non ( elt(( @@global.tmpdir),( interval((t26.col255),(t26.a26),(t26.a26),(t26.col256),(t26.col257),(t26.col255))),( ((t26.a26) - (t26.a26))),( least((t26.col254),(t26.col256),(t26.col257),(t26.a26))),( ((t26.col255) not between (t26.a26) and (t26.col257))),( get_format(datetime,'internal'))) -  least((t10.a10),(t10.col87),(t10.col89),(t10.col89),(t10.col87)) )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col257 and t5.col42 )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (t26.col256 is not null )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\nt20 as t20 \nwhere t20.col214>x.col35\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (@var3 not rlike t10.a10 )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (@var4 is unknown )\n \t\n\t straight_join `test`.`t13` as `t13`  \non ( '1'  )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t5` as `t5` set `t5`.`col47`=`x`.`col39`\n;\n\n\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (t26.a26 is not unknown )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col256 is true )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (@var4 <= t13.a13 )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", length=1641, 
    parser_state=0x7f2ab169e610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96875a8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab169eb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#10 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9685940, 
    packet=0x9688a51 "create trigger `trg_t16_before_delete` before delete on `t16` for each row\nbegin\ndelete t20 from  (\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non ( elt(( @@global.tmpdir),( interval((t26.col255),(t26.a26),(t26.a26),(t26.col256),(t26.col257),(t26.col255))),( ((t26.a26) - (t26.a26))),( least((t26.col254),(t26.col256),(t26.col257),(t26.a26))),( ((t26.col255) not between (t26.a26) and (t26.col257))),( get_format(datetime,'internal'))) -  least((t10.a10),(t10.col87),(t10.col89),(t10.col89),(t10.col87)) )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col257 and t5.col42 )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (t26.col256 is not null )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\nt20 as t20 \nwhere t20.col214>x.col35\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (@var3 not rlike t10.a10 )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (@var4 is unknown )\n \t\n\t straight_join `test`.`t13` as `t13`  \non ( '1'  )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t5` as `t5` set `t5`.`col47`=`x`.`col39`\n;\n\n\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (t26.a26 is not unknown )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col256 is true )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (@var4 <= t13.a13 )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend;\n", packet_length=1643)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29bc0052d9 ""
        parser_state = {
          m_lip = {
            m_thd = 0x9685940, 
            yylineno = 74, 
            yytoklen = 4, 
            yylval = 0x7f2ab169c680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29bc0052da "", 
            m_tok_start = 0x7f29bc0052da "", 
            m_tok_end = 0x7f29bc0052da "", 
            m_end_of_query = 0x7f29bc0052d9 "", 
            m_tok_start_prev = 0x7f29bc0052d9 "", 
            m_buf = 0x7f29bc004c70 "create trigger `trg_t16_before_delete` before delete on `t16` for each row\nbegin\ndelete t20 from  (\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non ( elt(( @@global.tmpdir),( interval((t26.col255),(t26.a26),(t26.a26),(t26.col256),(t26.col257),(t26.col255))),( ((t26.a26) - (t26.a26))),( least((t26.col254),(t26.col256),(t26.col257),(t26.a26))),( ((t26.col255) not between (t26.a26) and (t26.col257))),( get_format(datetime,'internal'))) -  least((t10.a10),(t10.col87),(t10.col89),(t10.col89),(t10.col87)) )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col257 and t5.col42 )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (t26.col256 is not null )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\nt20 as t20 \nwhere t20.col214>x.col35\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (@var3 not rlike t10.a10 )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (@var4 is unknown )\n \t\n\t straight_join `test`.`t13` as `t13`  \non ( '1'  )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t5` as `t5` set `t5`.`col47`=`x`.`col39`\n;\n\n\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (t26.a26 is not unknown )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col256 is true )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (@var4 <= t13.a13 )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_buf_length = 1641, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29bc005338 "create trigger `trg_t16_before_delete` before delete on `t16` for each row\nbegin\ndelete t20 from  (\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non ( elt(( @@global.tmpdir),( interval((t26.col255),(t26.a26),(t26.a26),(t26.col256),(t26.col257),(t26.col255))),( ((t26.a26) - (t26.a26))),( least((t26.col254),(t26.col256),(t26.col257),(t26.a26))),( ((t26.col255) not between (t26.a26) and (t26.col257))),( get_format(datetime,'internal'))) -  least((t10.a10),(t10.col87),(t10.col89),(t10.col89),(t10.col87)) )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col257 and t5.col42 )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (t26.col256 is not null )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\nt20 as t20 \nwhere t20.col214>x.col35\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (@var3 not rlike t10.a10 )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (@var4 is unknown )\n \t\n\t straight_join `test`.`t13` as `t13`  \non ( '1'  )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t5` as `t5` set `t5`.`col47`=`x`.`col39`\n;\n\n\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (t26.a26 is not unknown )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col256 is true )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (@var4 <= t13.a13 )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_cpp_ptr = 0x7f29bc0059a1 "", 
            m_cpp_tok_start = 0x7f29bc0059a1 "", 
            m_cpp_tok_start_prev = 0x7f29bc0059a1 "", 
            m_cpp_tok_end = 0x7f29bc0059a1 "", 
            m_body_utf8 = 0x7f29bc32d990 "\nbegin\ndelete t20 from  (\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non ( elt(( @@global.tmpdir),( interval((t26.col255),(t26.a26),(t26.a26),(t26.col256),(t26.col257),(t26.col255))),( ((t26.a26) - (t26.a26))),( least((t26.col254),(t26.col256),(t26.col257),(t26.a26))),( ((t26.col255) not between (t26.a26) and (t26.col257))),( get_format(datetime,'internal'))) -  least((t10.a10),(t10.col87),(t10.col89),(t10.col89),(t10.col87)) )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col257 and t5.col42 )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (t26.col256 is not null )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\nt20 as t20 \nwhere t20.col214>x.col35\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (@var3 not rlike t10.a10 )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (@var4 is unknown )\n \t\n\t straight_join `test`.`t13` as `t13`  \non ( '1'  )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t5` as `t5` set `t5`.`col47`=`x`.`col39`\n;\n\n\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (t26.a26 is not unknown )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col256 is true )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (@var4 <= t13.a13 )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29bc32dfaf "", 
            m_cpp_utf8_processed_ptr = 0x7f29bc0059a1 "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 111 'o', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29bc005995 "var1` ;\n\nend", 
            m_cpp_text_end = 0x7f29bc005999 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x9685bb8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab169ed00
        }
#11 0x00000000006dc1ad in do_command (thd=0x9685940) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x9688a50 "\003create trigger `trg_t16_before_delete` before delete on `t16` for each row\nbegin\ndelete t20 from  (\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non ( elt(( @@global.tmpdir),( interval((t26.col255),(t26.a26),(t26.a26),(t26.col256),(t26.col257),(t26.col255))),( ((t26.a26) - (t26.a26))),( least((t26.col254),(t26.col256),(t26.col257),(t26.a26))),( ((t26.col255) not between (t26.a26) and (t26.col257))),( get_format(datetime,'internal'))) -  least((t10.a10),(t10.col87),(t10.col89),(t10.col89),(t10.col87)) )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col257 and t5.col42 )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (t26.col256 is not null )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\nt20 as t20 \nwhere t20.col214>x.col35\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (@var3 not rlike t10.a10 )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (@var4 is unknown )\n \t\n\t straight_join `test`.`t13` as `t13`  \non ( '1'  )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t5` as `t5` set `t5`.`col47`=`x`.`col39`\n;\n\n\nselect  \t col39,col35 from\n\t`test`.`t26` as `t26` \n\t right join `test`.`t10` as `t10`  \non (t26.a26 is not unknown )\n \t\n\t left outer join `test`.`t5` as `t5`  \non (t26.col256 is true )\n \t\n\t straight_join `test`.`t13` as `t13`  \non (@var4 <= t13.a13 )\n  where\nt5.col41 not like 'l' or \nt13.col140 & t10.col84 and not \nt5.col46 = t10.col82 \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend;\n"
        packet_length = 1644
        net = 0x9685bb8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#12 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9685940)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9685bb8
        rc = false
        thd = 0x9685940
#13 0x00000000006b6753 in handle_one_connection (arg=0x9685940)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9685940
#14 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#15 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 38 (Thread 0x7f2ab165e700 (LWP 2358)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x968cba0, mp=0x968cb30, abstime=0x7f2ab165ae60, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x968cba0, mutex=0x968cb30, abstime=0x7f2ab165ae60, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2976230736, 
          m_cond = 0x91e646, 
          m_mutex = 0x968cb30, 
          m_thread = 0x968cc08, 
          m_timer_start = 139821341584768, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x968cb30 "", 
          m_src_line = 157862816, 
          m_wait = 0x968ca60
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x968cb30, owner=0x968cb28, abs_timeout=0x7f2ab165ae60, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x968cb30, mdl_request=0x7f29ac005120, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29ac004b90
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc065510
        abs_timeout = {
          tv_sec = 1331673680, 
          tv_nsec = 29766500
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x968ca60, ot_ctx=0x7f2ab165b710, mdl_request=0x7f29ac005120, 
    flags=0, mdl_ticket=0x7f2ab165b540) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab165b710, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = MDL_INTENTION_EXCLUSIVE, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x258ac000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000\300H/\254)\177\000\000\a\000\000\000\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000h\375\000\254)\177\000\000\030\001.\003\000\000\000\000\260\257e\261*\177\000\000L\036\306\001\000\000\000\000\260\257e\261*\177\000\000\314\345\221\000\000\000\000\000X\375\000\254)\177\000\000\340\313h\t\000\000\000\000\340\257e\261*\177\000\000\332\354c\000\000\000\000\000P\375\000\254)\177\000\000\340\313h\t\000\000\000\000L\036\306\001\000\000\000\000L\036\306\001\000\000\000\000@\260e\261*\177\000\000\336\300c\000\000\000\000\000\060\260e\261*\177\000\000\250\260e\261*\177\000\000P\261e\261*\177\000\000\060\313h\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000P\375\000\254)\177\000\000p\261e\261*\177\000\000І~M\000\000\000\000L\036\306\001\000\000\000\000\000\261e\261*\177\000\000\204\305c\000\000\000\000\000\200\260e\261*\177\000\000\000\300h\313t\002\034\000\200\260e\261*\177\000\000\200\063\341\001\000\000\000\000P\261e\261*\177\000\000\060\313h\t\000\000\000\000\240\260e\261*\177\000\000%\340c\000\000\000\000\000P\272_O\000\000\000\000L\036\306\001\000\000\000\000\220M\000\254\000\000\000\000p\261e\261*\177\000\000\000\261e\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x968ca60, table_list=0x7f29ac004d90, mem_root=0x7f2ab165b6d0, 
    ot_ctx=0x7f2ab165b710) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab165b710
        key =           "test\000t27\000\000\000\000\000\b\000\000\000\t\000\254)\177\000\000\b\000\000\000\000\000\000\000\300\263e\261*\177\000\000R>\217", '\000' <repeats 13 times>, "еe\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\b\000\000\200*\177\000\000@\267e\261*\177\000\000\340\263e\261*\177\000\000̪i\000\000\000\000\000\000\266e\261*\177\000\000еe\261*\177\000\000p\266e\261*\177\000\000\030\005i\000\000\000\000\000 \264e\261*\177\000\000\360\265e\261\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\220, M\000\254)\177\000\000`\312h\t\000\000\000\000\260\264e\261*\177\000\000QX\263\000\000\000\000\000\360\265e\261*\177\000\000h\332\002\324)\177\000\000\005\000\000\000\000\000\000\000\212\000\341\353)\177\000\000\200\264e\261*\177\000\000K:\263\000\000\000\000\000\310\346h\t\000\000\000\000\000J\221\000\000\000\000\000\001\000\000\000\000\000\000\000\300\b\000\254)\177\000\000\240\264e\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\254)\177\000\000\240\265e\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\265e\261*\177\000\000\360\264e\261*\177\000\000\300\b\000\254)\177\000\000\000\265e\261*\177\000\000\340\t"
        alias = 0x7f29ac004d88 "t27"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483657, 
          prev = 0x7f2ab165b5f0
        }
        mdl_ticket = 0x7f29ac0009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 2885683648
#7  0x000000000068fbe0 in open_and_process_table (thd=0x968ca60, lex=0x968e6c8, tables=0x7f29ac004d90, 
    counter=0x7f2ab165b834, flags=0, prelocking_strategy=0x7f2ab165b880, has_prelocking_list=false, 
    ot_ctx=0x7f2ab165b710, new_frm_mem=0x7f2ab165b6d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab165b740
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x968ca60, start=0x7f2ab165b7f0, counter=0x7f2ab165b834, flags=0, 
    prelocking_strategy=0x7f2ab165b880) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab165b800
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab165b7f0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x968e750
        tables = 0x7f29ac004d90
        error = false
        new_frm_mem = {
          free = 0x7f29ac2d81c0, 
          used = 0x0, 
          pre_alloc = 0x7f29ac2d81c0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x968ca60, tables=0x7f29ac004d90, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab165b880) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xce0fa0 "mysql_delete", 
          file = 0xce0f68 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_delete.cc", 
          level = 2147483654, 
          prev = 0x7f2ab165bf00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x968ca60, tables=0x7f29ac004d90, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x000000000086940f in mysql_delete (thd=0x968ca60, table_list=0x7f29ac004d90, conds=0x7f29ac005450, 
    order_list=0x968ef68, limit=1, options=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_delete.cc:71
        info = {
          table = 0x7f2ab165be80, 
          file = 0x8, 
          forms = 0x7f2ab165be80, 
          unlock_row = 0x6800fe <get_cached_schema_access(GRANT_INTERNAL_INFO*, char const*)+49>, 
          read_record = 0x7f29ac0009e0, 
          thd = 0x6, 
          select = 0x7f2ab165bf20, 
          cache_records = 7236957, 
          ref_length = 0, 
          struct_length = 0, 
          reclength = 0, 
          rec_cache_size = 2885701640, 
          error_offset = 32553, 
          index = 13002240, 
          ref_pos = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          record = 0x80000006 <Address 0x80000006 out of bounds>, 
          rec_buf = 0x7f2ab165bff0 "\260\355h\t", 
          cache = 0xc66600 "delete_precheck", 
          cache_pos = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          cache_end = 0x0, 
          read_positions = 0x8 <Address 0x8 out of bounds>, 
          io_cache = 0x968da38, 
          print_error = false, 
          ignore_not_found_rows = false, 
          copy_field = 0x100000000, 
          copy_field_end = 0x0
        }
        deleted = 0
        select_lex = 0x968edb0
        loc_error = 7157794
        using_limit = true
        safe_update = false
        order = 0x0
        usable_index = 64
        query_type = THD::ROW_QUERY_TYPE
        __FUNCTION__ =           "mysql_delete"
        will_batch = false
        error = 32554
        table = 0x968ca60
        const_cond = false
        reverse = false
        skip_record = 101
        select = 0x0
        transactional_table = false
        const_cond_result = false
        killed_status = THD::NOT_KILLED
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab165cc00
        }
        __PRETTY_FUNCTION__ =           "bool mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List<st_order>*, ha_rows, ulonglong)"
#12 0x00000000006e17db in mysql_execute_command (thd=0x968ca60)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2937
        res = 0
        lex = 0x968e6c8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab165cee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x968edb0
        first_table = 0x7f29ac004d90
        all_tables = 0x7f29ac004d90
        unit = 0x968e778
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x968ca60, 
    rawbuf=0x7f29ac004c70 "delete from `test`.`t27` where `col258` <= 0 limit 1", length=52, 
    parser_state=0x7f2ab165d610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x968e6c8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab165db60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x968ca60, 
    packet=0x968fb71 "delete from `test`.`t27` where `col258` <= 0 limit 1", packet_length=52)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29ac004ca4 ""
        parser_state = {
          m_lip = {
            m_thd = 0x968ca60, 
            yylineno = 1, 
            yytoklen = 1, 
            yylval = 0x7f2ab165b680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29ac004ca5 "force index (idx114,PRIMARY)\n\t natural left join `test`.`t5` as `t5` \n \t\n\t left outer join `test`.`delete from `test`.`t27` where `col258` <= 0 limit 1", 
            m_tok_start = 0x7f29ac004ca5 "force index (idx114,PRIMARY)\n\t natural left join `test`.`t5` as `t5` \n \t\n\t left outer join `test`.`delete from `test`.`t27` where `col258` <= 0 limit 1", 
            m_tok_end = 0x7f29ac004ca5 "force index (idx114,PRIMARY)\n\t natural left join `test`.`t5` as `t5` \n \t\n\t left outer join `test`.`delete from `test`.`t27` where `col258` <= 0 limit 1", 
            m_end_of_query = 0x7f29ac004ca4 "", 
            m_tok_start_prev = 0x7f29ac004ca4 "", 
            m_buf = 0x7f29ac004c70 "delete from `test`.`t27` where `col258` <= 0 limit 1", 
            m_buf_length = 52, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29ac004d08 "delete from `test`.`t27` where `col258` <= 0 limit 1", 
            m_cpp_ptr = 0x7f29ac004d3c "", 
            m_cpp_tok_start = 0x7f29ac004d3c "", 
            m_cpp_tok_start_prev = 0x7f29ac004d3c "", 
            m_cpp_tok_end = 0x7f29ac004d3c "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29ac004d3b "1", 
            m_cpp_text_end = 0x7f29ac004d3c "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x968ccd8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab165dd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x968ca60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x968fb70 "\003delete from `test`.`t27` where `col258` <= 0 limit 1"
        packet_length = 53
        net = 0x968ccd8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x968ca60)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x968ccd8
        rc = false
        thd = 0x968ca60
#17 0x00000000006b6753 in handle_one_connection (arg=0x968ca60)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x968ca60
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 37 (Thread 0x7f2ab161d700 (LWP 2359)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x9693cc0, mp=0x9693c50, abstime=0x7f2ab161a160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x9693cc0, mutex=0x9693c50, abstime=0x7f2ab161a160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2975965264, 
          m_cond = 0x91e646, 
          m_mutex = 0x9693c50, 
          m_thread = 0x9693d28, 
          m_timer_start = 139821341319296, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x9693c50 "", 
          m_src_line = 157891776, 
          m_wait = 0x9693b80
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x9693c50, owner=0x9693c48, abs_timeout=0x7f2ab161a160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x9693c50, mdl_request=0x7f29a8006798, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29a8082010
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29bc070100
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 966101300
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x9693b80, ot_ctx=0x7f2ab161aa10, mdl_request=0x7f29a8006798, 
    flags=0, mdl_ticket=0x7f2ab161a840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab161aa10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29a80009e0, 
          prev_in_list = 0x7f2ab161a320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 8, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\243a\261*\177\000\000p\242a\261*\177\000\000\000J\221\000\000\000\000\000\300\t\000\250)\177\000\000\340\t\000\250)\177\000\000\016\000\000\000\000\000\000\000\200\320\006\314)\177\000\000\240\320\006\314)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\300\b\000\250\000\000\001\000\220\317\006\314)\177\000\000\000J\221\000\000\000\000\000\300\t\000\250)\177\000\000\300\b\000\250)\177\000\000\360\242a\261*\177\000\000i|\272\000\000\000\000\000\300\t\000\250)\177\000\000\340\t\000\250)\177\000\000 \243a\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\340\t\000\250\257\n\000\000\340\t\000\250)\177\000\000\t\000\000\000\000\000\000\000`\243a\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000p\330\006\314)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\250a\261*\177\000\000\220\243a\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>"\200, \320\006\314)\177\000\000\300\b\000\250\000\000\001\000\260\243a\261*\177\000\000V\257\272\000\000\000\000\000\bd\000\250)\177\000\000Z\237W\000\000\000\000\000\000\244a\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x9693b80, table_list=0x7f29a8006408, mem_root=0x7f2ab161a9d0, 
    ot_ctx=0x7f2ab161aa10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab161aa10
        key =           "test\000t25\000\000\000\000\000\t\000\000\000\250a\261*\177\000\000٢\272\000\000\000\000\000\360\250a\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000Шa\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\252a\261*\177\000\000\340\246a\261*\177\000\000̪i\000\000\000\000\000\000\251a\261*\177\000\000Шa\261*\177\000\000p\251a\261*\177\000\000\030\005i\000\000\000\000\000\020q\006\250)\177\000\000\300r\006\250\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\230, W\000\250)\177\000\000\000J\221\000\000\000\000\000\020q\006\250)\177\000\000\300\b\000\250)\177\000\000P\247a\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\340\t\000\250)\177\000\000P\250a\261*\177\000\000\377\243\272\000\000\000\000\000\350Wi\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\300\b\000\250)\177\000\000\240\247a\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\250)\177\000\000\240\250a\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\250a\261*\177\000\000\360\247a\261*\177\000\000\300\b\000\250\000\000\001\000\230W\000\250)\177\000\000\340\t"
        alias = 0x7f29a80063b0 "t25"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab161a8f0
        }
        mdl_ticket = 0x7f29a80009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 2818574784
#7  0x000000000068fbe0 in open_and_process_table (thd=0x9693b80, lex=0x96957e8, tables=0x7f29a8006408, 
    counter=0x7f2ab161ab34, flags=0, prelocking_strategy=0x7f2ab161ab80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab161aa10, new_frm_mem=0x7f2ab161a9d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab161aa40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x9693b80, start=0x7f2ab161aaf0, counter=0x7f2ab161ab34, flags=0, 
    prelocking_strategy=0x7f2ab161ab80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab161ab00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29a80057a0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x9695870
        tables = 0x7f29a8006408
        error = false
        new_frm_mem = {
          free = 0x7f29a80acff0, 
          used = 0x0, 
          pre_alloc = 0x7f29a80acff0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x9693b80, tables=0x7f29a8005180, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab161ab80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 3
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab161bc00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x9693b80, tables=0x7f29a8005180, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x9693b80, all_tables=0x7f29a8005180)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x96957e8
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x9693b80)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x96957e8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab161bee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9695ed0
        first_table = 0x7f29a8005180
        all_tables = 0x7f29a8005180
        unit = 0x9695898
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x9693b80, 
    rawbuf=0x7f29a8004c70 "explain \nselect sql_no_cache all   count(*) from\n\t`test`.`t20` as `t20` \n\t natural join `test`.`t2` as `t2` ignore index (idx7,PRIMARY)\n \t\n\t natural left join `test`.`t25` as `t25` force index (PRIMARY)\n \t\n\t left join `test`.`t4` as `t4`  \non ( '1'  )\n  \n\n \n having `col207` & `col207` and \n\t`col207` || `col207`\n \n\n   for update", length=329, parser_state=0x7f2ab161c610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96957e8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab161cb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9693b80, 
    packet=0x9696c91 "explain \nselect sql_no_cache all   count(*) from\n\t`test`.`t20` as `t20` \n\t natural join `test`.`t2` as `t2` ignore index (idx7,PRIMARY)\n \t\n\t natural left join `test`.`t25` as `t25` force index (PRIMARY)\n \t\n\t left join `test`.`t4` as `t4`  \non ( '1'  )\n  \n\n \n having `col207` & `col207` and \n\t`col207` || `col207`\n \n\n   for update", packet_length=329) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29a8004db9 ""
        parser_state = {
          m_lip = {
            m_thd = 0x9693b80, 
            yylineno = 17, 
            yytoklen = 6, 
            yylval = 0x7f2ab161a680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29a8004dba "+\001\377\377\377\377", 
            m_tok_start = 0x7f29a8004dba "+\001\377\377\377\377", 
            m_tok_end = 0x7f29a8004dba "+\001\377\377\377\377", 
            m_end_of_query = 0x7f29a8004db9 "", 
            m_tok_start_prev = 0x7f29a8004db9 "", 
            m_buf = 0x7f29a8004c70 "explain \nselect sql_no_cache all   count(*) from\n\t`test`.`t20` as `t20` \n\t natural join `test`.`t2` as `t2` ignore index (idx7,PRIMARY)\n \t\n\t natural left join `test`.`t25` as `t25` force index (PRIMARY)\n \t\n\t left join `test`.`t4` as `t4`  \non ( '1'  )\n  \n\n \n having `col207` & `col207` and \n\t`col207` || `col207`\n \n\n   for update", 
            m_buf_length = 329, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29a8004e18 "explain \nselect sql_no_cache all   count(*) from\n\t`test`.`t20` as `t20` \n\t natural join `test`.`t2` as `t2` ignore index (idx7,PRIMARY)\n \t\n\t natural left join `test`.`t25` as `t25` force index (PRIMARY)\n \t\n\t left join `test`.`t4` as `t4`  \non ( '1'  )\n  \n\n \n having `col207` & `col207` and \n\t`col207` || `col207`\n \n\n   for update", 
            m_cpp_ptr = 0x7f29a8004f61 "", 
            m_cpp_tok_start = 0x7f29a8004f61 "", 
            m_cpp_tok_start_prev = 0x7f29a8004f61 "", 
            m_cpp_tok_end = 0x7f29a8004f61 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0x7f29a8088212 "", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29a8004f49 "col207`\n \n\n   for update", 
            m_cpp_text_end = 0x7f29a8004f4f "`\n \n\n   for update", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x9693df8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab161cd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x9693b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x9696c90 "\003explain \nselect sql_no_cache all   count(*) from\n\t`test`.`t20` as `t20` \n\t natural join `test`.`t2` as `t2` ignore index (idx7,PRIMARY)\n \t\n\t natural left join `test`.`t25` as `t25` force index (PRIMARY)\n \t\n\t left join `test`.`t4` as `t4`  \non ( '1'  )\n  \n\n \n having `col207` & `col207` and \n\t`col207` || `col207`\n \n\n   for update"
        packet_length = 330
        net = 0x9693df8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9693b80)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9693df8
        rc = false
        thd = 0x9693b80
#17 0x00000000006b6753 in handle_one_connection (arg=0x9693b80)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9693b80
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 36 (Thread 0x7f2ab15dc700 (LWP 2360)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x969ade0, mp=0x969ad70, abstime=0x7f2ab15d9870, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x969ade0, mutex=0x969ad70, abstime=0x7f2ab15d9870, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2975700848, 
          m_cond = 0x969ad68, 
          m_mutex = 0x7f2ab15d9790, 
          m_thread = 0x96d7920, 
          m_timer_start = 139821341054928, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x969ad70 "", 
          m_src_line = 157920736, 
          m_wait = 0x969aca0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x969ad70, owner=0x969ad68, abs_timeout=0x7f2ab15d9870, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x969ad70, mdl_request=0x7f29c0005840, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 787057200
        }
        ticket = 0x7f29c009fa60
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29bc070100
        abs_timeout = {
          tv_sec = 1331672650, 
          tv_nsec = 511818600
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063cc6e in MDL_context::acquire_locks (this=0x969ad70, mdl_requests=0x7f2ab15d9be0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1925
        sort_buf = 0x7f29c01a5730
        p_req = 0x7f29c01a5740
        mdl_svp = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        it = {
          list = 0x7f2ab15d9be0, 
          current = 0x0
        }
        req_count = 3
#6  0x00000000006904f9 in lock_table_names (thd=0x969aca0, tables_start=0x7f29c00054b0, tables_end=0x0, 
    lock_wait_timeout=31536000, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4604
        mdl_requests = {
          <I_P_List_counter> = {
            m_counter = 3
          }, 
          <I_P_List_no_push_back<MDL_request>> = {<No data fields>}, 
          members of I_P_List<MDL_request, I_P_List_adapter<MDL_request, &(MDL_request::next_in_list), &(MDL_request::prev_in_list)>, I_P_List_counter, I_P_List_no_push_back<MDL_request> >: 
          m_first = 0x7f2ab15d99c0
        }
        schema_set = {
          m_hash = {
            key_offset = 0, 
            key_length = 0, 
            blength = 2, 
            records = 1, 
            flags = 0, 
            array = {
              buffer = 0x7f29c01a56a0 "\377\377\377\377)\177", 
              elements = 1, 
              max_element = 8, 
              alloc_increment = 511, 
              size_of_element = 16
            }, 
            get_key = 0x69019e <schema_set_get_key(uchar const*, size_t*, my_bool)>, 
            free = 0, 
            charset = 0x1174280
          }
        }
        __PRETTY_FUNCTION__ =           "bool lock_table_names(THD*, TABLE_LIST*, TABLE_LIST*, ulong, uint)"
        table = 0x0
        global_request = {
          type = MDL_INTENTION_EXCLUSIVE, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29c00059f8, 
          prev_in_list = 0x7f2ab15d9be8, 
          ticket = 0x7f29c0064670, 
          key = {
            m_length = 3, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\340\t\000\300)\177\000\000 \234]\261*\177\000\000٢\272\000\000\000\000\000\220\235]\261*\177\000\000\000J\221\000\000\000\000\000\324\023\320\000\000\000\000\000\300\b\000\300)\177\000\000@\232]\261*\177\000\000i|\272\000\002\000\001\000\216.\320\000\000\000\000\000\340\t\000\300)\177\000\000@\233]\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000\223.\320\000\000\000\000\000\220\235]\261*\177\000\000\000J\221\000\000\000\000\000\220\232]\261*\177\000\000\300\b\000\300)\177\000\000\240\232]\261*\177\000\000i|\272\000\002\000\001\000ܥ\305\000\000\000\000\000\340\t\000\300)\177\000\000|\225\306", '\000' <repeats 13 times>"\220, \236]\261*\177\000\000\300\b\000\300\000\000\001\000\340\232]\261*\177\000\000V\257\272\000\000\000\000\000\300\t\000\300)\177\000\000\340\t\000\300)\177\000\000\060\233]\261*\177\000\000;\241\272\000\000\000\000\000p\233]\261*\177\000\000ZE\305\000P\001\000\000ؔ\306\000\000\000\000\000|\225\306\000\000\000\000\000\210\022\000\000\000\000\000\000\340\t\000\300)\177\000\000\340\t\000\300)\177\000\000\t\000\000\000\000\000\000\000\240\233]\261*\177\000\000\026\367o\000\000\000\000\000\240\233]\261*\177\000\000\300\b\000\300\210\022\000\000ZE\305\000\000\000\000\000\226m\305\000\000\000\000\000 U\305\000\000\000", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
#7  0x000000000069084e in open_tables (thd=0x969aca0, start=0x7f2ab15d9d90, counter=0x7f2ab15d9dd4, flags=0, 
    prelocking_strategy=0x7f2ab15d9e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4781
        table = 0x7f29c00009e0
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab15d9da0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab15d9d90
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x969c990
        tables = 0xbaa2f4
        error = false
        new_frm_mem = {
          free = 0x7f29c0203b10, 
          used = 0x0, 
          pre_alloc = 0x7f29c0203b10, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#8  0x00000000006917c8 in open_and_lock_tables (thd=0x969aca0, tables=0x7f29c00054b0, derived=false, flags=0, 
    prelocking_strategy=0x7f2ab15d9e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 0
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc555d8 "open_n_lock_single_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab15d9e20
        }
#9  0x000000000069128d in open_n_lock_single_table (thd=0x969aca0, table_l=0x7f29c00054b0, 
    lock_type=TL_READ_NO_INSERT, flags=0, prelocking_strategy=0x7f2ab15d9e90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5262
        save_next_global = 0x0
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab15d9f90
        }
#10 0x0000000000774b19 in open_n_lock_single_table (thd=0x969aca0, table_l=0x7f29c00054b0, 
    lock_type=TL_READ_NO_INSERT, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:471
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x0000000000779684 in mysql_create_or_drop_trigger (thd=0x969aca0, tables=0x7f29c00054b0, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:479
        lock_upgrade_done = false
        mdl_ticket = 0x0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000c00008c0, 
          query_tables_last = 0x7f2ab15d9f10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139817291614656, 
            key_length = 139817291614688, 
            blength = 139821341056864, 
            records = 12230971, 
            flags = 2975702928, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29c00009e0, 
            charset = 0x7f29c00009e0
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab15d9f60
          }, 
          sroutines_list_own_last = 0x7f29c00009c0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2975702992
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f2ab15da010
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab15dac00
        }
#12 0x00000000006e56a9 in mysql_execute_command (thd=0x969aca0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x969c908
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab15daee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x969cff0
        first_table = 0x7f29c00054b0
        all_tables = 0x7f29c00054b0
        unit = 0x969c9b8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x969aca0, 
    rawbuf=0x7f29c0004c70 "create trigger `trg_t25_after_update` after update on `t25` for each row\nbegin\ndelete t18 from  (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt18 as t18 \nwhere t18.col189>x.col268\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non (@var2 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col72`=`x`.`col268`\n;\n\n\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( ((t11.col102) not in ((t11.col110),(t11.col98),(t11.col94),(t11.col99))) ||  ((t28.col260) not in ((t28.col259),(t28.col272),(t28.col274))) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", length=908, parser_state=0x7f2ab15db610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x969c908
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab15dbb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x969aca0, 
    packet=0x969ddb1 "create trigger `trg_t25_after_update` after update on `t25` for each row\nbegin\ndelete t18 from  (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt18 as t18 \nwhere t18.col189>x.col268\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non (@var2 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col72`=`x`.`col268`\n;\n\n\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( ((t11.col102) not in ((t11.col110),(t11.col98),(t11.col94),(t11.col99))) ||  ((t28.col260) not in ((t28.col259),(t28.col272),(t28.col274))) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n", packet_length=910) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c0004ffc ""
        parser_state = {
          m_lip = {
            m_thd = 0x969aca0, 
            yylineno = 47, 
            yytoklen = 4, 
            yylval = 0x7f2ab15d9680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c0004ffd "ere `col172`<=> \"<x><hq wz='myr'  zfr='sa' ><fh b='d'  l='a'  s='dcr' >f</fh></hq></x>\" limit 1", 
            m_tok_start = 0x7f29c0004ffd "ere `col172`<=> \"<x><hq wz='myr'  zfr='sa' ><fh b='d'  l='a'  s='dcr' >f</fh></hq></x>\" limit 1", 
            m_tok_end = 0x7f29c0004ffd "ere `col172`<=> \"<x><hq wz='myr'  zfr='sa' ><fh b='d'  l='a'  s='dcr' >f</fh></hq></x>\" limit 1", 
            m_end_of_query = 0x7f29c0004ffc "", 
            m_tok_start_prev = 0x7f29c0004ffc "", 
            m_buf = 0x7f29c0004c70 "create trigger `trg_t25_after_update` after update on `t25` for each row\nbegin\ndelete t18 from  (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt18 as t18 \nwhere t18.col189>x.col268\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non (@var2 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col72`=`x`.`col268`\n;\n\n\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( ((t11.col102) not in ((t11.col110),(t11.col98),(t11.col94),(t11.col99))) ||  ((t28.col260) not in ((t28.col259),(t28.col272),(t28.col274))) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_buf_length = 908, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c0005060 "create trigger `trg_t25_after_update` after update on `t25` for each row\nbegin\ndelete t18 from  (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt18 as t18 \nwhere t18.col189>x.col268\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non (@var2 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col72`=`x`.`col268`\n;\n\n\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( ((t11.col102) not in ((t11.col110),(t11.col98),(t11.col94),(t11.col99))) ||  ((t28.col260) not in ((t28.col259),(t28.col272),(t28.col274))) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_cpp_ptr = 0x7f29c00053ec "", 
            m_cpp_tok_start = 0x7f29c00053ec "", 
            m_cpp_tok_start_prev = 0x7f29c00053ec "", 
            m_cpp_tok_end = 0x7f29c00053ec "", 
            m_body_utf8 = 0x7f29c03099a0 "\nbegin\ndelete t18 from  (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt18 as t18 \nwhere t18.col189>x.col268\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non (@var2 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col72`=`x`.`col268`\n;\n\n\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( ((t11.col102) not in ((t11.col110),(t11.col98),(t11.col94),(t11.col99))) ||  ((t28.col260) not in ((t28.col259),(t28.col272),(t28.col274))) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29c0309ce4 "", 
            m_cpp_utf8_processed_ptr = 0x7f29c00053ec "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c00053e0 "var0` ;\n\nend", 
            m_cpp_text_end = 0x7f29c00053e4 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x969af18
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab15dbd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x969aca0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x969ddb0 "\003create trigger `trg_t25_after_update` after update on `t25` for each row\nbegin\ndelete t18 from  (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt18 as t18 \nwhere t18.col189>x.col268\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non (@var2 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col72`=`x`.`col268`\n;\n\n\nselect   count(*) from\n\t`test`.`t11` as `t11` ignore index (idx76,idx66,idx79)\n\t right join `test`.`t28` as `t28` ignore index (idx255,idx255) \non ( ((t11.col102) not in ((t11.col110),(t11.col98),(t11.col94),(t11.col99))) ||  ((t28.col260) not in ((t28.col259),(t28.col272),(t28.col274))) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n"
        packet_length = 911
        net = 0x969af18
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x969aca0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x969af18
        rc = false
        thd = 0x969aca0
#17 0x00000000006b6753 in handle_one_connection (arg=0x969aca0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x969aca0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 35 (Thread 0x7f2ab159b700 (LWP 2361)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96a1f00, mp=0x96a1e90, abstime=0x7f2ab1598250, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96a1f00, mutex=0x96a1e90, abstime=0x7f2ab1598250, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2975433024, 
          m_cond = 0x91e646, 
          m_mutex = 0x96a1e90, 
          m_thread = 0x96a1f68, 
          m_timer_start = 139821340787056, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96a1e90 "", 
          m_src_line = 157949696, 
          m_wait = 0x96a1dc0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96a1e90, owner=0x96a1e88, abs_timeout=0x7f2ab1598250, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96a1e90, mdl_request=0x7f29a0005170, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29a00d3c20
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc065510
        abs_timeout = {
          tv_sec = 1331672678, 
          tv_nsec = 368455300
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96a1dc0, ot_ctx=0x7f2ab1598b00, mdl_request=0x7f29a0005170, 
    flags=0, mdl_ticket=0x7f2ab1598930) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1598b00, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 2975433504, 
          duration = 32554, 
          next_in_list = 0x258a0000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000\240\205Y\261*\177\000\000V\257\272\000\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000\030\242\r\240)\177\000\000\030\001.\003\000\000\000\000\240\203Y\261*\177\000\000\304\033\366\025\000\000\000\000\240\203Y\261*\177\000\000\314\345\221\000\000\000\000\000\b\242\r\240)\177\000\000@\037j\t\000\000\000\000ЃY\261*\177\000\000\332\354c\000\000\000\000\000\000\242\r\240)\177\000\000@\037j\t\000\000\000\000\304\033\366\025\000\000\000\000\304\033\366\025\000\000\000\000\060\204Y\261*\177\000\000\336\300c\000\000\000\000\000 \204Y\261*\177\000\000\230\204Y\261*\177\000\000@\205Y\261*\177\000\000\220\036j\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\000\242\r\240)\177\000\000`\205Y\261*\177\000\000\346\202~M\000\000\000\000\304\033\366\025\000\000\000\000\360\204Y\261*\177\000\000\204\305c\000\000\000\000\000`\204Y\261*\177\000\000\000\300h\313t\002\034\000\300\t\000\240)\177\000\000\200\063\341\001\000\000\000\000@\205Y\261*\177\000\000\220\036j\t\000\000\000\000\260\206Y\261*\177\000\000%\340c\000\000\000\000\000f\266_O\000\000\000\000\304\033\366\025\000\000\000\000\340M\000\240\000\000\000\000`\205Y\261*\177\000\000\360\204Y\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96a1dc0, table_list=0x7f29a0004de0, mem_root=0x7f2ab1598ac0, 
    ot_ctx=0x7f2ab1598b00) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1598b00
        key =           "test\000t27\000\000\000\000\000\v\000\000\000\t\000\240)\177\000\000\a\000\000\000\000\000\000\000\260\207Y\261*\177\000\000R>\217", '\000' <repeats 13 times>"\300, \211Y\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000\060\213Y\261*\177\000\000ЇY\261*\177\000\000̪i\000\000\000\000\000\360\211Y\261*\177\000\000\300\211Y\261*\177\000\000`\212Y\261*\177\000\000\030\005i\000\000\000\000\000w\023\320", '\000' <repeats 13 times>"\200, \063\341\001", '\000' <repeats 12 times>"\340, M\000\240)\177\000\000\300\035j\t\000\000\000\000 \000\000\240)\177\000\000\370W\000\240)\177\000\000\000\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000h\037\000\000\000\000\000\000ؘ\307\301\062\000\000\000p\210Y\261*\177\000\000F\260\272\000\000\000\000\000(:j\t\000\000\000\000\000J\221\000\000\000\000\000\340\t\000\240)\177\000\000\300\b\000\240)\177\000\000\220\210Y\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\240)\177\000\000\220\211Y\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\240\211Y\261*\177\000\000\340\210Y\261*\177\000\000\300\b\000\240)\177\000\000\360\210Y\261*\177\000\000\340\t"
        alias = 0x7f29a0004dd8 "t27"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab15989e0
        }
        mdl_ticket = 0x7f29a00009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 2684357056
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96a1dc0, lex=0x96a3a28, tables=0x7f29a0004de0, 
    counter=0x7f2ab1598f78, flags=0, prelocking_strategy=0x7f2ab1598be0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1598b00, new_frm_mem=0x7f2ab1598ac0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1598b30
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96a1dc0, start=0x7f2ab1598c50, counter=0x7f2ab1598f78, flags=0, 
    prelocking_strategy=0x7f2ab1598be0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc77529 "mysql_update", 
          file = 0xc774b0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1598f10
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1598c50
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96a3ab0
        tables = 0x7f29a0004de0
        error = false
        new_frm_mem = {
          free = 0x7f29a004b300, 
          used = 0x0, 
          pre_alloc = 0x7f29a004b300, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006c155d in open_tables (thd=0x96a1dc0, tables=0x7f2ab1598c50, counter=0x7f2ab1598f78, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:461
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#10 0x0000000000783324 in mysql_update (thd=0x96a1dc0, table_list=0x7f29a0004de0, fields=..., values=..., 
    conds=0x7f29a00057f8, order_num=0, order=0x0, limit=1, handle_duplicates=DUP_ERROR, ignore=true, 
    found_return=0x7f2ab1599ca8, updated_return=0x7f2ab1599ca0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc:284
        safe_update = false
        used_index = 0
        want_privilege = 0
        __FUNCTION__ =           "mysql_update"
        transactional_table = false
        will_batch = false
        reverse = false
        table_count = 1
        id = 7235753
        used_key_is_modified = false
        select_lex = 0x96a4110
        res = -1319530512
        dup_key_found = 2975436752
        found = 139821340790800
        old_covering_keys = {
          map = 0
        }
        table = 0x0
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1599c00
        }
        loc_error = 157956824
        need_sort = true
        updated = 7157794
        select = 0x7f29a0005920
        info = {
          table = 0x7f2ab1598e80, 
          file = 0x6800fe, 
          forms = 0x7f29a00009e0, 
          unlock_row = 0x5, 
          read_record = 0x7f2ab1598f20, 
          thd = 0x6e6d5d, 
          select = 0x0, 
          cache_records = 2684375128, 
          ref_length = 32553, 
          struct_length = 12998845, 
          reclength = 0, 
          rec_cache_size = 12997536, 
          error_offset = 0, 
          index = 2147483653, 
          ref_pos = 0x7f2ab1599c00 "gc", <incomplete sequence \306>, 
          record = 0xc658bd "mysql_execute_command", 
          rec_buf = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          cache = 0x0, 
          cache_pos = 0x4 <Address 0x4 out of bounds>, 
          cache_end = 0x96a2d98 ".\362", <incomplete sequence \302>, 
          read_positions = 0x0, 
          io_cache = 0x100000000, 
          print_error = false, 
          ignore_not_found_rows = false, 
          copy_field = 0x96a2d98, 
          copy_field_end = 0x4
        }
        __PRETTY_FUNCTION__ =           "int mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, uint, ORDER*, ha_rows, enum_duplicates, bool, ha_rows*, ha_rows*)"
        using_limit = true
        error = 32554
        all_fields = {
          <base_list> = {
            <Sql_alloc> = {<No data fields>}, 
            members of base_list: 
            first = 0x140fcc0, 
            last = 0x7f2ab1598f50, 
            elements = 0
          }, <No data fields>}
        killed_status = THD::NOT_KILLED
#11 0x00000000006e0ddf in mysql_execute_command (thd=0x96a1dc0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2710
        found = 0
        updated = 0
        res = 0
        lex = 0x96a3a28
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1599ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96a4110
        first_table = 0x7f29a0004de0
        all_tables = 0x7f29a0004de0
        unit = 0x96a3ad8
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x96a1dc0, 
    rawbuf=0x7f29a0004c70 "update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1", length=95, parser_state=0x7f2ab159a610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96a3a28
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab159ab60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96a1dc0, 
    packet=0x96a52f1 "update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1", packet_length=95) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29a0004ccf ""
        parser_state = {
          m_lip = {
            m_thd = 0x96a1dc0, 
            yylineno = 4, 
            yytoklen = 1, 
            yylval = 0x7f2ab1598680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29a0004cd0 "52` = 0,\n`col153` = -1,\n`col154` = 0,\n`col155` = 9223372036854775807,\n`col156` = 0,\n`col157` = 'update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1", 
            m_tok_start = 0x7f29a0004cd0 "52` = 0,\n`col153` = -1,\n`col154` = 0,\n`col155` = 9223372036854775807,\n`col156` = 0,\n`col157` = 'update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1", 
            m_tok_end = 0x7f29a0004cd0 "52` = 0,\n`col153` = -1,\n`col154` = 0,\n`col155` = 9223372036854775807,\n`col156` = 0,\n`col157` = 'update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1", 
            m_end_of_query = 0x7f29a0004ccf "", 
            m_tok_start_prev = 0x7f29a0004ccf "", 
            m_buf = 0x7f29a0004c70 "update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1", 
            m_buf_length = 95, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29a0004d30 "update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1", 
            m_cpp_ptr = 0x7f29a0004d8f "", 
            m_cpp_tok_start = 0x7f29a0004d8f "", 
            m_cpp_tok_start_prev = 0x7f29a0004d8f "", 
            m_cpp_tok_end = 0x7f29a0004d8f "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29a0004d8e "1", 
            m_cpp_text_end = 0x7f29a0004d8f "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96a2038
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab159ad00
        }
#14 0x00000000006dc1ad in do_command (thd=0x96a1dc0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96a52f0 "\003update ignore `test`.`t27` set\n`a27` = '',\n`col258` = '17:18:58'\nwhere `col258`&& 23661 limit 1"
        packet_length = 96
        net = 0x96a2038
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96a1dc0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96a2038
        rc = false
        thd = 0x96a1dc0
#16 0x00000000006b6753 in handle_one_connection (arg=0x96a1dc0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96a1dc0
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 34 (Thread 0x7f2ab155a700 (LWP 2362)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96a9560, mp=0x96a94f0, abstime=0x7f2ab15575d0, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96a9560, mutex=0x96a94f0, abstime=0x7f2ab15575d0, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2975167680, 
          m_cond = 0x91e646, 
          m_mutex = 0x96a94f0, 
          m_thread = 0x96a95c8, 
          m_timer_start = 139821340521712, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96a94f0 "", 
          m_src_line = 157980000, 
          m_wait = 0x96a9420
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96a94f0, owner=0x96a94e8, abs_timeout=0x7f2ab15575d0, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96a94f0, mdl_request=0x7f29c4122450, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29c407f9f0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc009810
        abs_timeout = {
          tv_sec = 1331672729, 
          tv_nsec = 154573400
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96a9420, ot_ctx=0x7f2ab1557e80, mdl_request=0x7f29c4122450, 
    flags=0, mdl_ticket=0x7f2ab1557cb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1557e80, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29c40009e0, 
          prev_in_list = 0x7f2ab1557790, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\240wU\261*\177\000\000\340vU\261*\177\000\000\000J\221\000\000\000\000\000\300\t\000\304)\177\000\000\340\t\000\304)\177\000\000\f\000\000\000\000\000\000\000\300\322\a\314)\177\000\000\340\322\a\314)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\300\b\000\304\000\000\001\000\320\321\a\314)\177\000\000\000J\221\000\000\000\000\000\300\t\000\304)\177\000\000\300\b\000\304)\177\000\000`wU\261*\177\000\000i|\272\000\000\000\000\000\300\t\000\304)\177\000\000\340\t\000\304)\177\000\000\220wU\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\340\t\000į\n\000\000\340\t\000\304)\177\000\000\t\000\000\000\000\000\000\000\320wU\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\260\332\a\314)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\200|U\261*\177\000\000\000xU\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>"\300, \322\a\314)\177\000\000\300\b\000\304\000\000\001\000 xU\261*\177\000\000V\257\272\000\000\000\000\000\300 \022\304)\177\000\000Z\237W\000\000\000\000\000pxU\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96a9420, table_list=0x7f29c41220c0, mem_root=0x7f2ab1557e40, 
    ot_ctx=0x7f2ab1557e80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1557e80
        key =           "test\000t26\000\000\000\000\000\f\000\000\000}U\261*\177\000\000٢\272\000\000\000\000\000`}U\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000@}U\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000\260~U\261*\177\000\000P{U\261*\177\000\000̪i\000\000\000\000\000p}U\261*\177\000\000@}U\261*\177\000\000\340}U\261*\177\000\000\030\005i\000\000\000\000\000\021 \305", '\000' <repeats 13 times>"\200, \063\341\001", '\000' <repeats 12 times>, "P\346\027\304)\177\000\000\000J\221\000\000\000\000\000\300\t\000\304)\177\000\000\300\b\000\304)\177\000\000\300{U\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\340\t\000\304)\177\000\000\300|U\261*\177\000\000\377\243\272\000\000\000\000\000\210\260j\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\300\b\000\304)\177\000\000\020|U\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\304)\177\000\000\020}U\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000 }U\261*\177\000\000`|U\261*\177\000\000\300\b\000\304\000\000\001\000P\346\027\304)\177\000\000\340\t"
        alias = 0x7f29c417f268 "t26"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab1557d60
        }
        mdl_ticket = 0x7f29c40009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3288336832
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96a9420, lex=0x96ab088, tables=0x7f29c41220c0, 
    counter=0x7f2ab1557fa4, flags=0, prelocking_strategy=0x7f2ab1557ff0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1557e80, new_frm_mem=0x7f2ab1557e40) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1557eb0
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96a9420, start=0x7f2ab1557f60, counter=0x7f2ab1557fa4, flags=0, 
    prelocking_strategy=0x7f2ab1557ff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1557f70
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29c417e658
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96ab110
        tables = 0x7f29c41220c0
        error = false
        new_frm_mem = {
          free = 0x7f29c414d540, 
          used = 0x0, 
          pre_alloc = 0x7f29c414d540, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96a9420, tables=0x7f29c412b668, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab1557ff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 4
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1558c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96a9420, tables=0x7f29c412b668, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e1923 in mysql_execute_command (thd=0x96a9420)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2957
        aux_tables = 0x7f29c40052b0
        del_result = 0x7f2ab1557400
        res = 0
        lex = 0x96ab088
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1558ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96ab770
        first_table = 0x7f29c412b668
        all_tables = 0x7f29c412b668
        unit = 0x96ab138
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x96a9420, 
    rawbuf=0x7f29c4004c70 "delete t15 from  (\nselect   count(*) from\n\t`test`.`t28` as `t28` use index (idx250,idx250)\n\t right outer join `test`.`t18` as `t18`  \non (t28.a28 & @var6 )\n \t\n\t natural left join `test`.`t19` as `t19` \n \t\n\t right join `test`.`t26` as `t26` use index (idx220,PRIMARY,idx229) \non ( datediff((t28.col264),(t28.col263)) <  elt((t26.col256),(t26.col257),(t26.a26),(t26.a26)) )\n \t\n\t left join `test`.`t2` as `t2` use index (idx8,idx8) \non ( '1'  )\n \t\n\t inner join `test`.`t9` as `t9`  \non ( '1'  )\n \t\n\t right outer join `test`.`t4` as `t4`  \non ( coalesce((t28.col263),(t28.col270),(t28.col263),(t28.col266)) &&  null )\n  \n \ngroup by \n\tt18.col192,\n\tt28.col266\n \n \n \nlimit 1\n   ) `x`,\nt15 as t15 \nwhere t15.col170>x.col30", length=714, parser_state=0x7f2ab1559610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96ab088
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1559b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96a9420, 
    packet=0x96ace71 "delete t15 from  (\nselect   count(*) from\n\t`test`.`t28` as `t28` use index (idx250,idx250)\n\t right outer join `test`.`t18` as `t18`  \non (t28.a28 & @var6 )\n \t\n\t natural left join `test`.`t19` as `t19` \n \t\n\t right join `test`.`t26` as `t26` use index (idx220,PRIMARY,idx229) \non ( datediff((t28.col264),(t28.col263)) <  elt((t26.col256),(t26.col257),(t26.a26),(t26.a26)) )\n \t\n\t left join `test`.`t2` as `t2` use index (idx8,idx8) \non ( '1'  )\n \t\n\t inner join `test`.`t9` as `t9`  \non ( '1'  )\n \t\n\t right outer join `test`.`t4` as `t4`  \non ( coalesce((t28.col263),(t28.col270),(t28.col263),(t28.col266)) &&  null )\n  \n \ngroup by \n\tt18.col192,\n\tt28.col266\n \n \n \nlimit 1\n   ) `x`,\nt15 as t15 \nwhere t15.col170>x.col30\n", packet_length=715)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c4004f3a ""
        parser_state = {
          m_lip = {
            m_thd = 0x96a9420, 
            yylineno = 31, 
            yytoklen = 5, 
            yylval = 0x7f2ab1557680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c4004f3b "", 
            m_tok_start = 0x7f29c4004f3b "", 
            m_tok_end = 0x7f29c4004f3b "", 
            m_end_of_query = 0x7f29c4004f3a "", 
            m_tok_start_prev = 0x7f29c4004f3a "", 
            m_buf = 0x7f29c4004c70 "delete t15 from  (\nselect   count(*) from\n\t`test`.`t28` as `t28` use index (idx250,idx250)\n\t right outer join `test`.`t18` as `t18`  \non (t28.a28 & @var6 )\n \t\n\t natural left join `test`.`t19` as `t19` \n \t\n\t right join `test`.`t26` as `t26` use index (idx220,PRIMARY,idx229) \non ( datediff((t28.col264),(t28.col263)) <  elt((t26.col256),(t26.col257),(t26.a26),(t26.a26)) )\n \t\n\t left join `test`.`t2` as `t2` use index (idx8,idx8) \non ( '1'  )\n \t\n\t inner join `test`.`t9` as `t9`  \non ( '1'  )\n \t\n\t right outer join `test`.`t4` as `t4`  \non ( coalesce((t28.col263),(t28.col270),(t28.col263),(t28.col266)) &&  null )\n  \n \ngroup by \n\tt18.col192,\n\tt28.col266\n \n \n \nlimit 1\n   ) `x`,\nt15 as t15 \nwhere t15.col170>x.col30", 
            m_buf_length = 714, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c4004f98 "delete t15 from  (\nselect   count(*) from\n\t`test`.`t28` as `t28` use index (idx250,idx250)\n\t right outer join `test`.`t18` as `t18`  \non (t28.a28 & @var6 )\n \t\n\t natural left join `test`.`t19` as `t19` \n \t\n\t right join `test`.`t26` as `t26` use index (idx220,PRIMARY,idx229) \non ( datediff((t28.col264),(t28.col263)) <  elt((t26.col256),(t26.col257),(t26.a26),(t26.a26)) )\n \t\n\t left join `test`.`t2` as `t2` use index (idx8,idx8) \non ( '1'  )\n \t\n\t inner join `test`.`t9` as `t9`  \non ( '1'  )\n \t\n\t right outer join `test`.`t4` as `t4`  \non ( coalesce((t28.col263),(t28.col270),(t28.col263),(t28.col266)) &&  null )\n  \n \ngroup by \n\tt18.col192,\n\tt28.col266\n \n \n \nlimit 1\n   ) `x`,\nt15 as t15 \nwhere t15.col170>x.col30", 
            m_cpp_ptr = 0x7f29c4005262 "", 
            m_cpp_tok_start = 0x7f29c4005262 "", 
            m_cpp_tok_start_prev = 0x7f29c4005262 "", 
            m_cpp_tok_end = 0x7f29c4005262 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c400525d "col30", 
            m_cpp_text_end = 0x7f29c4005262 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96a9698
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1559d00
        }
#14 0x00000000006dc1ad in do_command (thd=0x96a9420) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96ace70 "\003delete t15 from  (\nselect   count(*) from\n\t`test`.`t28` as `t28` use index (idx250,idx250)\n\t right outer join `test`.`t18` as `t18`  \non (t28.a28 & @var6 )\n \t\n\t natural left join `test`.`t19` as `t19` \n \t\n\t right join `test`.`t26` as `t26` use index (idx220,PRIMARY,idx229) \non ( datediff((t28.col264),(t28.col263)) <  elt((t26.col256),(t26.col257),(t26.a26),(t26.a26)) )\n \t\n\t left join `test`.`t2` as `t2` use index (idx8,idx8) \non ( '1'  )\n \t\n\t inner join `test`.`t9` as `t9`  \non ( '1'  )\n \t\n\t right outer join `test`.`t4` as `t4`  \non ( coalesce((t28.col263),(t28.col270),(t28.col263),(t28.col266)) &&  null )\n  \n \ngroup by \n\tt18.col192,\n\tt28.col266\n \n \n \nlimit 1\n   ) `x`,\nt15 as t15 \nwhere t15.col170>x.col30\n"
        packet_length = 716
        net = 0x96a9698
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96a9420)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96a9698
        rc = false
        thd = 0x96a9420
#16 0x00000000006b6753 in handle_one_connection (arg=0x96a9420)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96a9420
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 33 (Thread 0x7f2ab1519700 (LWP 2364)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96b10e0, mp=0x96b1070, abstime=0x7f2ab1516340, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96b10e0, mutex=0x96b1070, abstime=0x7f2ab1516340, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2974900784, 
          m_cond = 0x91e646, 
          m_mutex = 0x96b1070, 
          m_thread = 0x96b1148, 
          m_timer_start = 139821340254816, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96b1070 "", 
          m_src_line = 158011616, 
          m_wait = 0x96b0fa0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96b1070, owner=0x96b1068, abs_timeout=0x7f2ab1516340, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96b1070, mdl_request=0x7f29b00051f8, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29b02c7ee0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331672574, 
          tv_nsec = 451351700
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96b0fa0, ot_ctx=0x7f2ab1516bf0, mdl_request=0x7f29b00051f8, 
    flags=0, mdl_ticket=0x7f2ab1516a20) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1516bf0, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 13625758, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x258b0000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000PdQ\261*\177\000\000V\257\272\000\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000X\212\005\260)\177\000\000\030\001.\003\000\000\000\000\220dQ\261*\177\000\000D\000\347\032\000\000\000\000\220dQ\261*\177\000\000\314\345\221\000\000\000\000\000H\212\005\260)\177\000\000 \021k\t\000\000\000\000\300dQ\261*\177\000\000\332\354c\000\000\000\000\000@\212\005\260)\177\000\000 \021k\t\000\000\000\000D\000\347\032\000\000\000\000D\000\347\032\000\000\000\000 eQ\261*\177\000\000\336\300c\000\000\000\000\000\020eQ\261*\177\000\000\210eQ\261*\177\000\000\060fQ\261*\177\000\000p\020k\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000@\212\005\260)\177\000\000PfQ\261*\177\000\000~\202~M\000\000\000\000D\000\347\032\000\000\000\000\340eQ\261*\177\000\000\204\305c\000\000\000\000\000PeQ\261*\177\000\000\000\300h\313t\002\034\000\300\t\000\260)\177\000\000\200\063\341\001\000\000\000\000\060fQ\261*\177\000\000p\020k\t\000\000\000\000P\352\317\000\000\000\000\000%\340c\000\000\000\000\000\376\265_O\000\000\000\000D\000\347\032\000\000\000\000hN\000\260\000\000\000\000PfQ\261*\177\000\000\340eQ\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96b0fa0, table_list=0x7f29b0004e68, mem_root=0x7f2ab1516bb0, 
    ot_ctx=0x7f2ab1516bf0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1516bf0
        key =           "test\000t6\000\000\000\000\000\r\000\000\000\340\t\000\260)\177\000\000\b\000\000\000\000\000\000\000\240hQ\261*\177\000\000R>\217", '\000' <repeats 13 times>"\260, jQ\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\b\000\000\200*\177\000\000 lQ\261*\177\000\000\300hQ\261*\177\000\000̪i\000\000\000\000\000\340jQ\261*\177\000\000\260jQ\261*\177\000\000PkQ\261*\177\000\000\030\005i\000\000\000\000\000\300\t\000\260)\177\000\000\340\t\000\260\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "hN\000\260)\177\000\000\240\017k\t\000\000\000\000\340\t\000\260)\177\000\000\t\000\000\000\026\000\000\000piQ\261*\177\000\000*\263\220\000\000\000\000\000piQ\261\020\000\000\000\260lQ\261*\177\000\000\020\066\320\000\000\000\000\000\200\065\320\000\000\000\000\000\b,k\t\000\000\000\000\000J\221\000\000\000\000\000ZZZZ\026\000\000\000\300\b\000\260)\177\000\000\200iQ\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\260)\177\000\000\200jQ\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\220jQ\261*\177\000\000\320iQ\261*\177\000\000\300\b\000\260)\177\000\000\340iQ\261*\177\000\000\340\t"
        alias = 0x7f29b0004e60 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483657, 
          prev = 0x7f2ab1516ad0
        }
        mdl_ticket = 0x7f29b00009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 2952792512
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96b0fa0, lex=0x96b2c08, tables=0x7f29b0004e68, 
    counter=0x7f2ab1516d14, flags=0, prelocking_strategy=0x7f2ab1516d60, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1516bf0, new_frm_mem=0x7f2ab1516bb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab1516c20
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96b0fa0, start=0x7f2ab1516cd0, counter=0x7f2ab1516d14, flags=0, 
    prelocking_strategy=0x7f2ab1516d60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1516ce0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1516cd0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96b2c90
        tables = 0x7f29b0004e68
        error = false
        new_frm_mem = {
          free = 0x7f29b0252a70, 
          used = 0x0, 
          pre_alloc = 0x7f29b0252a70, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96b0fa0, tables=0x7f29b0004e68, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab1516d60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc5d6fa "mysql_insert", 
          file = 0xc5d6a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_insert.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1516f30
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96b0fa0, tables=0x7f29b0004e68, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006c391d in mysql_insert (thd=0x96b0fa0, table_list=0x7f29b0004e68, fields=..., values_list=..., 
    update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_insert.cc:714
        was_insert_delayed = false
        counter = 1
        lock_type = 32554
        value_count = 32553
        info = {
          records = 2147483654, 
          deleted = 139821340258272, 
          updated = 13002256, 
          copied = 12997536, 
          error_count = 0, 
          touched = 2, 
          handle_duplicates = 158015352, 
          escape_char = 0, 
          last_errno = 0, 
          ignore = false, 
          update_fields = 0x100000000, 
          update_values = 0x0, 
          view = 0x96b1f78
        }
        context = 0x0
        log_on = true
        res = 0
        joins_freed = false
        changed = 107
        id = 2
        its = {
          <base_list_iterator> = {
            list = 0x96b3818, 
            el = 0x96b3818, 
            prev = 0x0, 
            current = 0x0
          }, <No data fields>}
        values = 0x5
        unused_conds = 0x0
        __FUNCTION__ =           "mysql_insert"
        error = 0
        table = 0x0
        ctx_state = {
          save_table_list = 0xa1, 
          save_first_name_resolution_table = 0x0, 
          save_next_name_resolution_table = 0x7f2ab1516f70, 
          save_resolve_in_select_list = 47, 
          save_next_local = 0x7f2900000000
        }
        transactional_table = 9
        query = 0x7f29b0004c70 "insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'"
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1517c00
        }
        __PRETTY_FUNCTION__ =           "bool mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool)"
#12 0x00000000006e126a in mysql_execute_command (thd=0x96b0fa0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2835
        res = 0
        lex = 0x96b2c08
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1517ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96b32f0
        first_table = 0x7f29b0004e68
        all_tables = 0x7f29b0004e68
        unit = 0x96b2cb8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96b0fa0, 
    rawbuf=0x7f29b0004c70 "insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'", length=161, parser_state=0x7f2ab1518610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96b2c08
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1518b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96b0fa0, 
    packet=0x96b49f1 "insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'", packet_length=161)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b0004d11 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96b0fa0, 
            yylineno = 6, 
            yytoklen = 19, 
            yylval = 0x7f2ab1516680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b0004d12 " (t21.col225 is not null )\n \t\n\t left outer join `test`.`t15` as `t15`  \non (@var6 like t15.a15insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'", 
            m_tok_start = 0x7f29b0004d12 " (t21.col225 is not null )\n \t\n\t left outer join `test`.`t15` as `t15`  \non (@var6 like t15.a15insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'", 
            m_tok_end = 0x7f29b0004d12 " (t21.col225 is not null )\n \t\n\t left outer join `test`.`t15` as `t15`  \non (@var6 like t15.a15insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'", 
            m_end_of_query = 0x7f29b0004d11 "", 
            m_tok_start_prev = 0x7f29b0004d11 "", 
            m_buf = 0x7f29b0004c70 "insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'", 
            m_buf_length = 161, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b0004d70 "insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'", 
            m_cpp_ptr = 0x7f29b0004e11 "", 
            m_cpp_tok_start = 0x7f29b0004e11 "", 
            m_cpp_tok_start_prev = 0x7f29b0004e11 "", 
            m_cpp_tok_end = 0x7f29b0004e11 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b0004dfd "2011-10-25 15:35:45'", 
            m_cpp_text_end = 0x7f29b0004e10 "'", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96b1218
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1518d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96b0fa0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96b49f0 "\003insert ignore into `test`.`t6` set\n`col52` = -1.3764409700144E+18,\n`col53` = '2011-04-17 04:48:22',\n`a6` = 0,\n`col55` = 14038542,\n`col54` = '2011-10-25 15:35:45'"
        packet_length = 162
        net = 0x96b1218
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96b0fa0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96b1218
        rc = false
        thd = 0x96b0fa0
#17 0x00000000006b6753 in handle_one_connection (arg=0x96b0fa0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96b0fa0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 32 (Thread 0x7f2ab14d8700 (LWP 2365)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96b8c60, mp=0x96b8bf0, abstime=0x7f2ab14d5580, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96b8c60, mutex=0x96b8bf0, abstime=0x7f2ab14d5580, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2974635120, 
          m_cond = 0x91e646, 
          m_mutex = 0x96b8bf0, 
          m_thread = 0x96b8cc8, 
          m_timer_start = 139821339989152, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96b8bf0 "", 
          m_src_line = 158043232, 
          m_wait = 0x96b8b20
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96b8bf0, owner=0x96b8be8, abs_timeout=0x7f2ab14d5580, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96b8bf0, mdl_request=0x7f29b40328c8, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29b40cfaf0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x96ea350
        abs_timeout = {
          tv_sec = 1331672608, 
          tv_nsec = 376090600
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96b8b20, ot_ctx=0x7f2ab14d5e30, mdl_request=0x7f29b40328c8, 
    flags=0, mdl_ticket=0x7f2ab14d5c60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab14d5e30, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x258b4000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000\220VM\261*\177\000\000\200\035\f\264\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000ؿ\000\264)\177\000\000\030\001.\003\000\000\000\000\320VM\261*\177\000\000\374\233j\026\000\000\000\000\320VM\261*\177\000\000\314\345\221\000\000\000\000\000ȿ\000\264)\177\000\000\240\214k\t\000\000\000\000\000WM\261*\177\000\000\332\354c\000\000\000\000\000\300\277\000\264)\177\000\000\240\214k\t\000\000\000\000\374\233j\026\000\000\000\000\374\233j\026\000\000\000\000`WM\261*\177\000\000\336\300c\000\000\000\000\000PWM\261*\177\000\000\310WM\261*\177\000\000pXM\261*\177\000\000\360\213k\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\300\277\000\264)\177\000\000\220XM\261*\177\000\000\240\202~M\000\000\000\000\374\233j\026\000\000\000\000 XM\261*\177\000\000\204\305c\000\000\000\000\000\t\000\000\200)\177\000\000\000\300h\313t\002\034\000\260WM\261*\177\000\000\200\063\341\001\000\000\000\000pXM\261*\177\000\000\360\213k\t\000\000\000\000\240\256\030\274)\177\000\000%\340c\000\000\000\000\000 \266_O\000\000\000\000\374\233j\026\000\000\000\000\070%\003\264\000\000\000\000\220XM\261*\177\000\000 XM\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96b8b20, table_list=0x7f29b4032538, mem_root=0x7f2ab14d5df0, 
    ot_ctx=0x7f2ab14d5e30) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab14d5e30
        key =           "test\000t21\000\000\000\000\000\016\000\000\000\\M\261*\177\000\000٢\272\000\000\000\000\000\020]M\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000\360\\M\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000`^M\261*\177\000\000\000[M\261*\177\000\000̪i\000\000\000\000\000 ]M\261*\177\000\000\360\\M\261*\177\000\000\220]M\261*\177\000\000\030\005i\000\000\000\000\000\000m@\001\000\000\000\000 \213k\t\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "(\374\n\264)\177\000\000\000J\221\000\000\000\000\000\300\t\000\264)\177\000\000\300\b\000\264)\177\000\000p[M\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\340\t\000\264)\177\000\000p\\M\261*\177\000\000\377\243\272\000\000\000\000\000\210\247k\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\300\b\000\264)\177\000\000\300[M\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340\t\000\264)\177\000\000\300\\M\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\320\\M\261*\177\000\000\020\\M\261*\177\000\000\300\b\000\264\000\000\001\000(\374\n\264)\177\000\000\340\t"
        alias = 0x7f29b41fb108 "t21"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab14d5d10
        }
        mdl_ticket = 0x7f29b40009c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3019901376
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96b8b20, lex=0x96ba788, tables=0x7f29b4032538, 
    counter=0x7f2ab14d5f94, flags=0, prelocking_strategy=0x7f2ab14d5f10, has_prelocking_list=false, 
    ot_ctx=0x7f2ab14d5e30, new_frm_mem=0x7f2ab14d5df0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab14d5e60
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96b8b20, start=0x7f2ab14d5f98, counter=0x7f2ab14d5f94, flags=0, 
    prelocking_strategy=0x7f2ab14d5f10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc77646 "mysql_multi_update_prepare", 
          file = 0xc774b0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc", 
          level = 2147483654, 
          prev = 0x7f2ab14d5f60
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29b40afc30
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96ba810
        tables = 0x7f29b4032538
        error = false
        new_frm_mem = {
          free = 0x7f29b413e200, 
          used = 0x0, 
          pre_alloc = 0x7f29b413e200, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006c155d in open_tables (thd=0x96b8b20, tables=0x7f2ab14d5f98, counter=0x7f2ab14d5f94, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:461
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#10 0x000000000078553c in mysql_multi_update_prepare (thd=0x96b8b20)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc:1046
        lex = 0x96ba788
        leaves = 0xc653a0
        using_lock_tables = false
        original_multiupdate = true
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab14d6c00
        }
        tl = 0x0
        update_view = false
        table_count = 6
        table_list = 0x7f29b4031ff0
        fields = 0x96baf78
        tables_for_update = 277025390597
#11 0x00000000006e0e76 in mysql_execute_command (thd=0x96b8b20)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2729
        res = 0
        lex = 0x96ba788
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab14d6ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96bae70
        first_table = 0x7f29b4031ff0
        all_tables = 0x7f29b4031ff0
        unit = 0x96ba838
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x96b8b20, 
    rawbuf=0x7f29b4004c70 "update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`", length=684, parser_state=0x7f2ab14d7610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96ba788
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab14d7b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96b8b20, 
    packet=0x96bc571 "update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`\n", packet_length=685) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b4004f1c ""
        parser_state = {
          m_lip = {
            m_thd = 0x96b8b20, 
            yylineno = 27, 
            yytoklen = 6, 
            yylval = 0x7f2ab14d5680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b4004f1d "18.col187),(t18.col198),(t18.col190),(t18.col190))) *  interval((t23.a23),(t23.col234),(t23.col235)update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`", 
            m_tok_start = 0x7f29b4004f1d "18.col187),(t18.col198),(t18.col190),(t18.col190))) *  interval((t23.a23),(t23.col234),(t23.col235)update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`", 
            m_tok_end = 0x7f29b4004f1d "18.col187),(t18.col198),(t18.col190),(t18.col190))) *  interval((t23.a23),(t23.col234),(t23.col235)update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`", 
            m_end_of_query = 0x7f29b4004f1c "", 
            m_tok_start_prev = 0x7f29b4004f1c "", 
            m_buf = 0x7f29b4004c70 "update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`", 
            m_buf_length = 684, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b4004f80 "update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`", 
            m_cpp_ptr = 0x7f29b400522c "", 
            m_cpp_tok_start = 0x7f29b400522c "", 
            m_cpp_tok_start_prev = 0x7f29b400522c "", 
            m_cpp_tok_end = 0x7f29b400522c "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b4005225 "col194`", 
            m_cpp_text_end = 0x7f29b400522b "`", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96b8d98
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab14d7d00
        }
#14 0x00000000006dc1ad in do_command (thd=0x96b8b20) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96bc570 "\003update (\nselect   count(*) from\n\t`test`.`t18` as `t18` \n\t natural right join `test`.`t19` as `t19` \n \t\n\t left outer join `test`.`t23` as `t23`  \non (t18.col187 is not false )\n \t\n\t cross join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t straight_join `test`.`t5` as `t5`  \non ( export_set((t18.col191),(t18.col192),(t18.col193),(t18.col191)) >>  ((t5.col50) not in ((t5.col39),(t5.col42),(t5.col35),(t5.col37))) )\n  where\nt5.col41 <= t18.col187 and not \n row(t18.col190 ,t18.col195 ,t5.col43 )>= row( t5.col50 , t19.col203 , t18.col191 )xor \nt18.col195 sounds like t19.col200 \n \ngroup by \n\tt5.col48,\n\tt18.col195\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t21` as `t21` set `t21`.`col220`=`x`.`col194`\n"
        packet_length = 686
        net = 0x96b8d98
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96b8b20)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96b8d98
        rc = false
        thd = 0x96b8b20
#16 0x00000000006b6753 in handle_one_connection (arg=0x96b8b20)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96b8b20
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 31 (Thread 0x7f2ab1497700 (LWP 2366)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96c07e0, mp=0x96c0770, abstime=0x7f2ab1494870, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96c07e0, mutex=0x96c0770, abstime=0x7f2ab1494870, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2974369648, 
          m_cond = 0x96c0768, 
          m_mutex = 0x7f2ab1494790, 
          m_thread = 0x96d7920, 
          m_timer_start = 139821339723728, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96c0770 "", 
          m_src_line = 158074848, 
          m_wait = 0x96c06a0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96c0770, owner=0x96c0768, abs_timeout=0x7f2ab1494870, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x96c0770, mdl_request=0x7f29a000cef0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140079, 
          tv_nsec = 48666900
        }
        ticket = 0x7f29a0307830
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc065510
        abs_timeout = {
          tv_sec = 1331672701, 
          tv_nsec = 150787400
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063cc6e in MDL_context::acquire_locks (this=0x96c0770, mdl_requests=0x7f2ab1494be0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1925
        sort_buf = 0x7f29a028e430
        p_req = 0x7f29a028e440
        mdl_svp = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        it = {
          list = 0x7f2ab1494be0, 
          current = 0x0
        }
        req_count = 3
#6  0x00000000006904f9 in lock_table_names (thd=0x96c06a0, tables_start=0x7f29a000cb60, tables_end=0x0, 
    lock_wait_timeout=31536000, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4604
        mdl_requests = {
          <I_P_List_counter> = {
            m_counter = 3
          }, 
          <I_P_List_no_push_back<MDL_request>> = {<No data fields>}, 
          members of I_P_List<MDL_request, I_P_List_adapter<MDL_request, &(MDL_request::next_in_list), &(MDL_request::prev_in_list)>, I_P_List_counter, I_P_List_no_push_back<MDL_request> >: 
          m_first = 0x7f2ab14949c0
        }
        schema_set = {
          m_hash = {
            key_offset = 0, 
            key_length = 0, 
            blength = 2, 
            records = 1, 
            flags = 0, 
            array = {
              buffer = 0x7f29a03077a0 "\377\377\377\377)\177", 
              elements = 1, 
              max_element = 8, 
              alloc_increment = 511, 
              size_of_element = 16
            }, 
            get_key = 0x69019e <schema_set_get_key(uchar const*, size_t*, my_bool)>, 
            free = 0, 
            charset = 0x1174280
          }
        }
        __PRETTY_FUNCTION__ =           "bool lock_table_names(THD*, TABLE_LIST*, TABLE_LIST*, ulong, uint)"
        table = 0x0
        global_request = {
          type = MDL_INTENTION_EXCLUSIVE, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29a000d0a8, 
          prev_in_list = 0x7f2ab1494be8, 
          ticket = 0x7f29a0004aa0, 
          key = {
            m_length = 3, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\300}\000\240)\177\000\000 LI\261*\177\000\000٢\272\000\000\000\000\000\220MI\261*\177\000\000\000J\221\000\000\000\000\000\324\023\320\000\000\000\000\000\240|\000\240)\177\000\000@JI\261*\177\000\000i|\272\000\002\000\001\000\216.\320\000\000\000\000\000\300}\000\240)\177\000\000@KI\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000\223.\320\000\000\000\000\000\220MI\261*\177\000\000\000J\221\000\000\000\000\000\220JI\261*\177\000\000\240|\000\240)\177\000\000\240JI\261*\177\000\000i|\272\000\002\000\001\000ܥ\305\000\000\000\000\000\300}\000\240)\177\000\000|\225\306", '\000' <repeats 13 times>"\220, NI\261*\177\000\000\240|\000\240\000\000\001\000\340JI\261*\177\000\000V\257\272\000\000\000\000\000\240}\000\240)\177\000\000\300}\000\240)\177\000\000\060KI\261*\177\000\000;\241\272\000\000\000\000\000pKI\261*\177\000\000ZE\305\000P\001\000\000ؔ\306\000\000\000\000\000|\225\306\000\000\000\000\000\210\022\000\000\000\000\000\000\300}\000\240)\177\000\000\300}\000\240)\177\000\000\t\000\000\000\000\000\000\000\240KI\261*\177\000\000\026\367o\000\000\000\000\000\240KI\261*\177\000\000\240|\000\240\210\022\000\000ZE\305\000\000\000\000\000\226m\305\000\000\000\000\000 U\305\000\000\000", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
#7  0x000000000069084e in open_tables (thd=0x96c06a0, start=0x7f2ab1494d90, counter=0x7f2ab1494dd4, flags=0, 
    prelocking_strategy=0x7f2ab1494e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4781
        table = 0x7f29a0007dc0
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab1494da0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1494d90
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96c2390
        tables = 0xbaa2f4
        error = false
        new_frm_mem = {
          free = 0x7f29a0256290, 
          used = 0x0, 
          pre_alloc = 0x7f29a0256290, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#8  0x00000000006917c8 in open_and_lock_tables (thd=0x96c06a0, tables=0x7f29a000cb60, derived=false, flags=0, 
    prelocking_strategy=0x7f2ab1494e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 0
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc555d8 "open_n_lock_single_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1494e20
        }
#9  0x000000000069128d in open_n_lock_single_table (thd=0x96c06a0, table_l=0x7f29a000cb60, 
    lock_type=TL_READ_NO_INSERT, flags=0, prelocking_strategy=0x7f2ab1494e90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5262
        save_next_global = 0x0
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1494f90
        }
#10 0x0000000000774b19 in open_n_lock_single_table (thd=0x96c06a0, table_l=0x7f29a000cb60, 
    lock_type=TL_READ_NO_INSERT, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:471
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x0000000000779684 in mysql_create_or_drop_trigger (thd=0x96c06a0, tables=0x7f29a000cb60, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:479
        lock_upgrade_done = false
        mdl_ticket = 0x0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000a0007ca0, 
          query_tables_last = 0x7f2ab1494f10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139816754773408, 
            key_length = 139816754773440, 
            blength = 139821339725664, 
            records = 12230971, 
            flags = 2974371728, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29a0007dc0, 
            charset = 0x7f29a0007dc0
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab1494f60
          }, 
          sroutines_list_own_last = 0x7f29a0007da0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2974371792
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f2ab1495010
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1495c00
        }
#12 0x00000000006e56a9 in mysql_execute_command (thd=0x96c06a0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x96c2308
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1495ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96c29f0
        first_table = 0x7f29a000cb60
        all_tables = 0x7f29a000cb60
        unit = 0x96c23b8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96c06a0, 
    rawbuf=0x7f29a000c050 "create trigger `trg_t27_before_delete` before delete on `t27` for each row\nbegin\ndelete t27 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (@var2 is unknown )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var9 is not unknown )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\nt27 as t27 \nwhere t27.col258>x.a9\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (~t7.col58 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (t7.col57 not between t7.col56 and t20.col213 )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t1` as `t1` set `t1`.`a1`=`x`.`a9`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (t7.col57 between @var9 and t11.col106 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var7 is true )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", length=1270, parser_state=0x7f2ab1496610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96c2308
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1496b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96c06a0, 
    packet=0x96c40f1 "create trigger `trg_t27_before_delete` before delete on `t27` for each row\nbegin\ndelete t27 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (@var2 is unknown )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var9 is not unknown )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\nt27 as t27 \nwhere t27.col258>x.a9\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (~t7.col58 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (t7.col57 not between t7.col56 and t20.col213 )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t1` as `t1` set `t1`.`a1`=`x`.`a9`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (t7.col57 between @var9 and t11.col106 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var7 is true )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n", packet_length=1272)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29a000c546 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96c06a0, 
            yylineno = 71, 
            yytoklen = 4, 
            yylval = 0x7f2ab1494680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29a000c547 "", 
            m_tok_start = 0x7f29a000c547 "", 
            m_tok_end = 0x7f29a000c547 "", 
            m_end_of_query = 0x7f29a000c546 "", 
            m_tok_start_prev = 0x7f29a000c546 "", 
            m_buf = 0x7f29a000c050 "create trigger `trg_t27_before_delete` before delete on `t27` for each row\nbegin\ndelete t27 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (@var2 is unknown )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var9 is not unknown )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\nt27 as t27 \nwhere t27.col258>x.a9\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (~t7.col58 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (t7.col57 not between t7.col56 and t20.col213 )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t1` as `t1` set `t1`.`a1`=`x`.`a9`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (t7.col57 between @var9 and t11.col106 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var7 is true )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_buf_length = 1270, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29a000c5a8 "create trigger `trg_t27_before_delete` before delete on `t27` for each row\nbegin\ndelete t27 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (@var2 is unknown )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var9 is not unknown )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\nt27 as t27 \nwhere t27.col258>x.a9\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (~t7.col58 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (t7.col57 not between t7.col56 and t20.col213 )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t1` as `t1` set `t1`.`a1`=`x`.`a9`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (t7.col57 between @var9 and t11.col106 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var7 is true )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_cpp_ptr = 0x7f29a000ca9e "", 
            m_cpp_tok_start = 0x7f29a000ca9e "", 
            m_cpp_tok_start_prev = 0x7f29a000ca9e "", 
            m_cpp_tok_end = 0x7f29a000ca9e "", 
            m_body_utf8 = 0x7f29a00e86a0 "\nbegin\ndelete t27 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (@var2 is unknown )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var9 is not unknown )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\nt27 as t27 \nwhere t27.col258>x.a9\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (~t7.col58 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (t7.col57 not between t7.col56 and t20.col213 )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t1` as `t1` set `t1`.`a1`=`x`.`a9`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (t7.col57 between @var9 and t11.col106 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var7 is true )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29a00e8b4c "", 
            m_cpp_utf8_processed_ptr = 0x7f29a000ca9e "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29a000ca92 "var0` ;\n\nend", 
            m_cpp_text_end = 0x7f29a000ca96 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96c0918
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1496d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96c06a0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96c40f0 "\003create trigger `trg_t27_before_delete` before delete on `t27` for each row\nbegin\ndelete t27 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (@var2 is unknown )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var9 is not unknown )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\nt27 as t27 \nwhere t27.col258>x.a9\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (~t7.col58 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (t7.col57 not between t7.col56 and t20.col213 )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t1` as `t1` set `t1`.`a1`=`x`.`a9`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` \n\t right outer join `test`.`t11` as `t11`  \non (t7.col57 between @var9 and t11.col106 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t left join `test`.`t20` as `t20`  \non (@var7 is true )\n  where\nt9.col74 < null and not \nt11.col110 in( select '1' ) or \nt11.col108 >( select '1' ) \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n"
        packet_length = 1273
        net = 0x96c0918
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96c06a0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96c0918
        rc = false
        thd = 0x96c06a0
#17 0x00000000006b6753 in handle_one_connection (arg=0x96c06a0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96c06a0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 30 (Thread 0x7f2ab1456700 (LWP 2367)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96c8360, mp=0x96c82f0, abstime=0x7f2ab1453160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96c8360, mutex=0x96c82f0, abstime=0x7f2ab1453160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2974101584, 
          m_cond = 0x91e646, 
          m_mutex = 0x96c82f0, 
          m_thread = 0x96c83c8, 
          m_timer_start = 139821339455616, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96c82f0 "", 
          m_src_line = 158106464, 
          m_wait = 0x96c8220
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96c82f0, owner=0x96c82e8, abs_timeout=0x7f2ab1453160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = MDL_wait::EMPTY
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96c82f0, mdl_request=0x9606940, lock_wait_timeout=31536000)
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x95e7ce0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331672574, 
          tv_nsec = 812451700
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96c8220, ot_ctx=0x7f2ab1453a10, mdl_request=0x9606940, 
    flags=0, mdl_ticket=0x7f2ab1453840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1453a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x9624be0, 
          prev_in_list = 0x7f2ab1453320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\063E\261*\177\000\000p2E\261*\177\000\000\000J\221\000\000\000\000\000\360\305e\t\000\000\000\000\340Kb\t\000\000\000\000\f\000\000\000\000\000\000\000\200f\032\300)\177\000\000\240f\032\300)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\360\304e\t\000\000\001\000\220e\032\300)\177\000\000\000J\221\000\000\000\000\000\360\305e\t\000\000\000\000\360\304e\t\000\000\000\000\360\062E\261*\177\000\000i|\272\000\000\000\000\000\360\305e\t\000\000\000\000\340Kb\t\000\000\000\000 3E\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\340Kb\t\257\n\000\000\340Kb\t\000\000\000\000\t\000\000\000\000\000\000\000`3E\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000pn\032\300)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200\000\000\000\000\020\070E\261*\177\000\000\220\063E\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>"\200, f\032\300)\177\000\000\360\304e\t\000\000\001\000\260\063E\261*\177\000\000V\257\272\000\000\000\000\000\260e`\t\000\000\000\000Z\237W\000\000\000\000\000\000\064E\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96c8220, table_list=0x96065b0, mem_root=0x7f2ab14539d0, 
    ot_ctx=0x7f2ab1453a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1453a10
        key =           "test\000t6\000\000\000\000\000\020\000\000\000\240\070E\261*\177\000\000٢\272\000\000\000\000\000\360\070E\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000\320\070E\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@:E\261*\177\000\000\340\066E\261*\177\000\000̪i\000\000\000\000\000\000\071E\261*\177\000\000\320\070E\261*\177\000\000p9E\261*\177\000\000\030\005i\000\000\000\000\000\320\060E\261*\177\000\000\000\000\000\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "`7_\t\000\000\000\000\000J\221\000\000\000\000\000\000\070E\261*\177\000\000\360\304e\t\000\000\000\000P7E\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\340Kb\t\000\000\000\000P8E\261*\177\000\000\377\243\272\000\000\000\000\000\210\236l\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\360\304e\t\000\000\000\000\240\067E\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\340Kb\t\000\000\000\000\240\070E\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\070E\261*\177\000\000\360\067E\261*\177\000\000\360\304e\t\000\000\001\000`7_\t\000\000\000\000\340K"
        alias = 0x96064d0 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab14538f0
        }
        mdl_ticket = 0x965c5f0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 157664752
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96c8220, lex=0x96c9e88, tables=0x96065b0, 
    counter=0x7f2ab1453b34, flags=0, prelocking_strategy=0x7f2ab1453b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1453a10, new_frm_mem=0x7f2ab14539d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1453a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96c8220, start=0x7f2ab1453af0, counter=0x7f2ab1453b34, flags=0, 
    prelocking_strategy=0x7f2ab1453b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1453b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x95f3768
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96c9f10
        tables = 0x96065b0
        error = false
        new_frm_mem = {
          free = 0x95d7010, 
          used = 0x0, 
          pre_alloc = 0x95d7010, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96c8220, tables=0x9702a20, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab1453b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 10
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1454c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96c8220, tables=0x9702a20, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x96c8220, all_tables=0x9702a20)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x96c9e88
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x96c8220)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x96c9e88
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1454ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96ca570
        first_table = 0x9702a20
        all_tables = 0x9702a20
        unit = 0x96c9f38
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96c8220, 
    rawbuf=0x9701c60 "select all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update", length=1443, 
    parser_state=0x7f2ab1455610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96c9e88
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1455b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96c8220, 
    packet=0x96cbc71 "\nselect all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update", packet_length=1444)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x9702203 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96c8220, 
            yylineno = 34, 
            yytoklen = 1, 
            yylval = 0x7f2ab1453680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x9702204 "13`  \non (@var0 = t13.col132 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col96 >> tselect all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update", 
            m_tok_start = 0x9702204 "13`  \non (@var0 = t13.col132 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col96 >> tselect all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update", 
            m_tok_end = 0x9702204 "13`  \non (@var0 = t13.col132 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col96 >> tselect all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update", 
            m_end_of_query = 0x9702203 "", 
            m_tok_start_prev = 0x9702203 "", 
            m_buf = 0x9701c60 "select all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update", 
            m_buf_length = 1443, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x9702260 "select all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update", 
            m_cpp_ptr = 0x9702803 "", 
            m_cpp_tok_start = 0x9702803 "", 
            m_cpp_tok_start_prev = 0x9702803 "", 
            m_cpp_tok_end = 0x9702803 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x97027f4 "1\n   for update", 
            m_cpp_text_end = 0x97027f5 "\n   for update", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96c8498
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1455d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96c8220) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96cbc70 "\003\nselect all   count(*) from\n\t`test`.`t11` as `t11` \n\t inner join `test`.`t17` as `t17`  \non (t11.col91 is not true )\n \t\n\t right outer join `test`.`t10` as `t10` ignore index (idx56,idx63,idx64,idx64) \non ( repeat(( ((t11.col107) not in ((t11.col96),(t11.col92),(t11.col99),(t11.col98),(t11.a11)))),( interval((t11.col103),(t11.col96),(t11.col94),(t11.col99),(t11.col108))) mod 10) <> @var7 )\n \t\n\t natural right join `test`.`t5` as `t5` \n \t\n\t natural join `test`.`t25` as `t25` use index (PRIMARY)\n \t\n\t right outer join `test`.`t13` as `t13`  \non ( ((t11.col105) in ((t11.col95),(t11.col106),(t11.col93),(t11.col101))) | @var3 )\n \t\n\t straight_join `test`.`t22` as `t22`  \non (t11.col110 is not false )\n \t\n\t natural right join `test`.`t12` as `t12` use index (idx86)\n \t\n\t right join `test`.`t27` as `t27` use index (idx238) \non ( (case ((t11.a11)) when ((t11.col108)) then ((t11.col102)) else ((t11.col100)) end) like  greatest(( ((t27.col258) not in ((t27.col258),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( ((t27.a27) in ((t27.a27),(t27.a27),(t27.col258)))),( @@global.flush_time),( (case ((t27.col258)) when ((t27.a27)) then ((t27.a27)) end)),( nullif((t27.col258),(t27.col258)))) )\n \t\n\t right join `test`.`t6` as `t6` force index (PRIMARY,PRIMARY,idx28,idx24) \non (t11.col108 << t6.col54 )\n  where\nt10.col85  collate latin1_bin < t11.col103 and not \n row(t11.col96 ,t10.col83 )<> row( t11.col104 , t10.col81 )\n\n \n \n \nlimit 1\n   for update"
        packet_length = 1445
        net = 0x96c8498
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96c8220)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96c8498
        rc = false
        thd = 0x96c8220
#17 0x00000000006b6753 in handle_one_connection (arg=0x96c8220)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96c8220
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 29 (Thread 0x7f2ab1415700 (LWP 2370)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96cfee0, mp=0x96cfe70, abstime=0x7f2ab1412160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96cfee0, mutex=0x96cfe70, abstime=0x7f2ab1412160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2973835344, 
          m_cond = 0x91e646, 
          m_mutex = 0x96cfe70, 
          m_thread = 0x96cff48, 
          m_timer_start = 139821339189376, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96cfe70 "", 
          m_src_line = 158138080, 
          m_wait = 0x96cfda0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96cfe70, owner=0x96cfe68, abs_timeout=0x7f2ab1412160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96cfe70, mdl_request=0x7f29b400dca0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29b40575c0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc009810
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 988373800
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96cfda0, ot_ctx=0x7f2ab1412a10, mdl_request=0x7f29b400dca0, 
    flags=0, mdl_ticket=0x7f2ab1412840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1412a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 3021101624, 
          duration = 32553, 
          next_in_list = 0x10000b4007ca0, 
          prev_in_list = 0x7f2ab1412240, 
          ticket = 0x7f29b41af7a8, 
          key = {
            m_length = 32160, 
            m_db_name_length = 46080, 
            m_ptr =               ")\177\000\000\300}\000\264)\177\000\000\300\353\032\264)\177\000\000\000J\221\000\000\000\000\000\220$A\261*\177\000\000\240|\000\264)\177\000\000\200\"A\261*\177\000\000i|\272\000\002\000\001\000\223\255\306", '\000' <repeats 13 times>"\200, #A\261*\177\000\000\240|\000\264\000\000\001\000\260\"A\261*\177\000\000V\257\272\000\000\000\000\000\240}\000\264)\177\000\000\300}\000\264)\177\000\000\340$A\261*\177\000\000٢\272\000\000\000\000\000 'A\261*\177\000\000\300}\000\264\356\023\000\000; Using where\000 Using temporary; Using filesort\000\000\240}\000\264)\177\000\000\300}\000\264)\177\000\000`#A\261*\177\000\000;\241\272\000\000\000\000\000`'A\261*\177\000\000٢\272\000\224\005\000\000`\243\306\000\000\000\000\000p\246\306\000\000\000\000\000`#A\261\000\000\000\000\300}\000\264)\177\000\000\300}\000\264)\177\000\000\t\000\000\000\000\000\000\000\020(A\261*\177\000\000\071Op\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, "\004\000\000\000\000\000\000\000\240|\000\264\000\000\001\000\260#A\261*\177\000\000V\257\272\000\000\000\000\000\020\331\000\264)\177\000\000Z\237W\000\000\000\000\000\000$A\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96cfda0, table_list=0x7f29b400d910, mem_root=0x7f2ab14129d0, 
    ot_ctx=0x7f2ab1412a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1412a10
        key =           "test\000t26\000\000\000\000\000\021\000\000\000}\000\264)\177\000\000\a\000\000\000\000\000\000\000\300&A\261*\177\000\000R>\217", '\000' <repeats 13 times>"\320, (A\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@*A\261*\177\000\000\340&A\261*\177\000\000̪i\000\000\000\000\000\000)A\261*\177\000\000\320(A\261*\177\000\000p)A\261*\177\000\000\030\005i\000\000\000\000\000\320 A\261*\177\000\000\000\000\000\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "\020\331\000\264)\177\000\000\240\375l\t\000\000\000\000\000z\303\000\000\000\000\000\000m@\001\000\000\000\000P\251\306\000\000\000\000\000`\243\306\000\000\000\000\000\b\000\000\200\000\000\000\000\060)A\261*\177\000\000\b\000\000\000\060\000\000\000\240|\000\264)\177\000\000\b\032m\t\000\000\000\000\000J\221\000\000\000\000\000\250U\033\264)\177\000\000\240|\000\264)\177\000\000\240'A\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300}\000\264)\177\000\000\240(A\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260(A\261*\177\000\000\360'A\261*\177\000\000\240|\000\264)\177\000\000\000(A\261*\177\000\000\300}"
        alias = 0x7f29b400d828 "t26"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab14128f0
        }
        mdl_ticket = 0x7f29b4007da0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3019931040
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96cfda0, lex=0x96d1a08, tables=0x7f29b400d910, 
    counter=0x7f2ab1412b34, flags=0, prelocking_strategy=0x7f2ab1412b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1412a10, new_frm_mem=0x7f2ab14129d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1412a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96cfda0, start=0x7f2ab1412af0, counter=0x7f2ab1412b34, flags=0, 
    prelocking_strategy=0x7f2ab1412b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1412b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1412af0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96d1a90
        tables = 0x7f29b400d910
        error = false
        new_frm_mem = {
          free = 0x7f29b41f4530, 
          used = 0x0, 
          pre_alloc = 0x7f29b41f4530, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96cfda0, tables=0x7f29b400d910, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab1412b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1413c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96cfda0, tables=0x7f29b400d910, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x96cfda0, all_tables=0x7f29b400d910)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x96d1a08
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x96cfda0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x96d1a08
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1413ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96d20f0
        first_table = 0x7f29b400d910
        all_tables = 0x7f29b400d910
        unit = 0x96d1ab8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96cfda0, 
    rawbuf=0x7f29b400c050 "explain extended \nselect all sql_no_cache   count(*) from\n\t`test`.`t26` as `t26` force index (PRIMARY,idx229,idx233,idx225)\n\t straight_join `test`.`t2` as `t2`  \non (@var7 is true )\n \t\n\t left outer join `test`.`t29` as `t29`  \non (@var3 is not unknown )\n  \n \ngroup by \n\tt26.col256 desc,\n\t (( interval((`t2`.`col12`),(`t29`.`col286`),(`t26`.`col255`),(`t29`.`col281`),(`t2`.`col14`),(`t2`.`col10`))) in (( substring((`t29`.`col284`),(`t29`.`col281`),(`t29`.`col283`))),( greatest((`t26`.`col254`),(`t29`.`col286`),(`t26`.`a26`),(`t29`.`col288`),(`t2`.`col10`))),( interval((`t29`.`col289`),(`t2`.`col11`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (t7.col56 is not null )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (  (case ((t7.col58)) when ((t7.col58)) then ((t7.col57))when ((t7.col56)) then ((t7.a7)) else ((t7.a7)) end) =  last_insert_id(( @@global.timed_mutexes)) )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( '1'  )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non ( '1'  )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non ( elt((t7.a7),(t7.col58),(t7.col58),(t7.a7)) xor  @@global.slave_compressed_protocol )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( ((t7.col58) sounds like (t7.col58)) >   convert((t6.col52) using cp1251) )\n \t\n\t left join `test`.`t14` as `t14`  \non (~t7.col56 )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),(`t26`.`col254`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (@var4 - t12.a12 )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (!t7.a7 )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( (case ((t7.a7)) when ((t7.col57)) then ((t7.col57))when ((t7.col56)) then ((t7.col57)) else ((t7.col58)) end) <<  elt(( substring((t14.col151),(t14.col154),(t14.col149))),( ((t14.col152) in ((t14.col154),(t14.col149),(t14.col150),(t14.col154),(t14.col151)))),( ((t14.col155) in ((t14.col153),(t14.col153),(t14.col153),(t14.col153),(t14.col152)))),( @@global.time_format)) )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )))),( ((`t26`.`a26`) % (`t29`.`col291`))))) \n \n \n  \norder by \n\t (case ((`t2`.`col8`)) when ((`t2`.`a2`)) then ((`t29`.`col293`))when ((`t2`.`col18`)) then ((`t26`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26", length=2745, parser_state=0x7f2ab1414610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96d1a08
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1414b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96cfda0, 
    packet=0x96d37f1 "explain extended \nselect all sql_no_cache   count(*) from\n\t`test`.`t26` as `t26` force index (PRIMARY,idx229,idx233,idx225)\n\t straight_join `test`.`t2` as `t2`  \non (@var7 is true )\n \t\n\t left outer join `test`.`t29` as `t29`  \non (@var3 is not unknown )\n  \n \ngroup by \n\tt26.col256 desc,\n\t (( interval((`t2`.`col12`),(`t29`.`col286`),(`t26`.`col255`),(`t29`.`col281`),(`t2`.`col14`),(`t2`.`col10`))) in (( substring((`t29`.`col284`),(`t29`.`col281`),(`t29`.`col283`))),( greatest((`t26`.`col254`),(`t29`.`col286`),(`t26`.`a26`),(`t29`.`col288`),(`t2`.`col10`))),( interval((`t29`.`col289`),(`t2`.`col11`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (t7.col56 is not null )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (  (case ((t7.col58)) when ((t7.col58)) then ((t7.col57))when ((t7.col56)) then ((t7.a7)) else ((t7.a7)) end) =  last_insert_id(( @@global.timed_mutexes)) )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( '1'  )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non ( '1'  )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non ( elt((t7.a7),(t7.col58),(t7.col58),(t7.a7)) xor  @@global.slave_compressed_protocol )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( ((t7.col58) sounds like (t7.col58)) >   convert((t6.col52) using cp1251) )\n \t\n\t left join `test`.`t14` as `t14`  \non (~t7.col56 )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),(`t26`.`col254`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (@var4 - t12.a12 )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (!t7.a7 )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( (case ((t7.a7)) when ((t7.col57)) then ((t7.col57))when ((t7.col56)) then ((t7.col57)) else ((t7.col58)) end) <<  elt(( substring((t14.col151),(t14.col154),(t14.col149))),( ((t14.col152) in ((t14.col154),(t14.col149),(t14.col150),(t14.col154),(t14.col151)))),( ((t14.col155) in ((t14.col153),(t14.col153),(t14.col153),(t14.col153),(t14.col152)))),( @@global.time_format)) )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )))),( ((`t26`.`a26`) % (`t29`.`col291`))))) \n \n \n  \norder by \n\t (case ((`t2`.`col8`)) when ((`t2`.`a2`)) then ((`t29`.`col293`))when ((`t2`.`col18`)) then ((`t26`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26\n\n   ", packet_length=2750) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b400cb09 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96cfda0, 
            yylineno = 82, 
            yytoklen = 3, 
            yylval = 0x7f2ab1412680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b400cb0a "6`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26", 
            m_tok_start = 0x7f29b400cb0a "6`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26", 
            m_tok_end = 0x7f29b400cb0a "6`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26", 
            m_end_of_query = 0x7f29b400cb09 "", 
            m_tok_start_prev = 0x7f29b400cb09 "", 
            m_buf = 0x7f29b400c050 "explain extended \nselect all sql_no_cache   count(*) from\n\t`test`.`t26` as `t26` force index (PRIMARY,idx229,idx233,idx225)\n\t straight_join `test`.`t2` as `t2`  \non (@var7 is true )\n \t\n\t left outer join `test`.`t29` as `t29`  \non (@var3 is not unknown )\n  \n \ngroup by \n\tt26.col256 desc,\n\t (( interval((`t2`.`col12`),(`t29`.`col286`),(`t26`.`col255`),(`t29`.`col281`),(`t2`.`col14`),(`t2`.`col10`))) in (( substring((`t29`.`col284`),(`t29`.`col281`),(`t29`.`col283`))),( greatest((`t26`.`col254`),(`t29`.`col286`),(`t26`.`a26`),(`t29`.`col288`),(`t2`.`col10`))),( interval((`t29`.`col289`),(`t2`.`col11`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (t7.col56 is not null )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (  (case ((t7.col58)) when ((t7.col58)) then ((t7.col57))when ((t7.col56)) then ((t7.a7)) else ((t7.a7)) end) =  last_insert_id(( @@global.timed_mutexes)) )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( '1'  )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non ( '1'  )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non ( elt((t7.a7),(t7.col58),(t7.col58),(t7.a7)) xor  @@global.slave_compressed_protocol )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( ((t7.col58) sounds like (t7.col58)) >   convert((t6.col52) using cp1251) )\n \t\n\t left join `test`.`t14` as `t14`  \non (~t7.col56 )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),(`t26`.`col254`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (@var4 - t12.a12 )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (!t7.a7 )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( (case ((t7.a7)) when ((t7.col57)) then ((t7.col57))when ((t7.col56)) then ((t7.col57)) else ((t7.col58)) end) <<  elt(( substring((t14.col151),(t14.col154),(t14.col149))),( ((t14.col152) in ((t14.col154),(t14.col149),(t14.col150),(t14.col154),(t14.col151)))),( ((t14.col155) in ((t14.col153),(t14.col153),(t14.col153),(t14.col153),(t14.col152)))),( @@global.time_format)) )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )))),( ((`t26`.`a26`) % (`t29`.`col291`))))) \n \n \n  \norder by \n\t (case ((`t2`.`col8`)) when ((`t2`.`a2`)) then ((`t29`.`col293`))when ((`t2`.`col18`)) then ((`t26`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26", 
            m_buf_length = 2745, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b400cb68 "explain extended \nselect all sql_no_cache   count(*) from\n\t`test`.`t26` as `t26` force index (PRIMARY,idx229,idx233,idx225)\n\t straight_join `test`.`t2` as `t2`  \non (@var7 is true )\n \t\n\t left outer join `test`.`t29` as `t29`  \non (@var3 is not unknown )\n  \n \ngroup by \n\tt26.col256 desc,\n\t (( interval((`t2`.`col12`),(`t29`.`col286`),(`t26`.`col255`),(`t29`.`col281`),(`t2`.`col14`),(`t2`.`col10`))) in (( substring((`t29`.`col284`),(`t29`.`col281`),(`t29`.`col283`))),( greatest((`t26`.`col254`),(`t29`.`col286`),(`t26`.`a26`),(`t29`.`col288`),(`t2`.`col10`))),( interval((`t29`.`col289`),(`t2`.`col11`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (t7.col56 is not null )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (  (case ((t7.col58)) when ((t7.col58)) then ((t7.col57))when ((t7.col56)) then ((t7.a7)) else ((t7.a7)) end) =  last_insert_id(( @@global.timed_mutexes)) )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( '1'  )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non ( '1'  )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non ( elt((t7.a7),(t7.col58),(t7.col58),(t7.a7)) xor  @@global.slave_compressed_protocol )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( ((t7.col58) sounds like (t7.col58)) >   convert((t6.col52) using cp1251) )\n \t\n\t left join `test`.`t14` as `t14`  \non (~t7.col56 )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),(`t26`.`col254`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (@var4 - t12.a12 )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (!t7.a7 )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( (case ((t7.a7)) when ((t7.col57)) then ((t7.col57))when ((t7.col56)) then ((t7.col57)) else ((t7.col58)) end) <<  elt(( substring((t14.col151),(t14.col154),(t14.col149))),( ((t14.col152) in ((t14.col154),(t14.col149),(t14.col150),(t14.col154),(t14.col151)))),( ((t14.col155) in ((t14.col153),(t14.col153),(t14.col153),(t14.col153),(t14.col152)))),( @@global.time_format)) )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )))),( ((`t26`.`a26`) % (`t29`.`col291`))))) \n \n \n  \norder by \n\t (case ((`t2`.`col8`)) when ((`t2`.`a2`)) then ((`t29`.`col293`))when ((`t2`.`col18`)) then ((`t26`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26", 
            m_cpp_ptr = 0x7f29b400d621 "", 
            m_cpp_tok_start = 0x7f29b400d621 "", 
            m_cpp_tok_start_prev = 0x7f29b400d621 "", 
            m_cpp_tok_end = 0x7f29b400d621 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0x7f29b404d18a "", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b400d61e "a26", 
            m_cpp_text_end = 0x7f29b400d621 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96d0018
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1414d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96cfda0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96d37f0 "\003explain extended \nselect all sql_no_cache   count(*) from\n\t`test`.`t26` as `t26` force index (PRIMARY,idx229,idx233,idx225)\n\t straight_join `test`.`t2` as `t2`  \non (@var7 is true )\n \t\n\t left outer join `test`.`t29` as `t29`  \non (@var3 is not unknown )\n  \n \ngroup by \n\tt26.col256 desc,\n\t (( interval((`t2`.`col12`),(`t29`.`col286`),(`t26`.`col255`),(`t29`.`col281`),(`t2`.`col14`),(`t2`.`col10`))) in (( substring((`t29`.`col284`),(`t29`.`col281`),(`t29`.`col283`))),( greatest((`t26`.`col254`),(`t29`.`col286`),(`t26`.`a26`),(`t29`.`col288`),(`t2`.`col10`))),( interval((`t29`.`col289`),(`t2`.`col11`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (t7.col56 is not null )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (  (case ((t7.col58)) when ((t7.col58)) then ((t7.col57))when ((t7.col56)) then ((t7.a7)) else ((t7.a7)) end) =  last_insert_id(( @@global.timed_mutexes)) )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( '1'  )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non ( '1'  )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non ( elt((t7.a7),(t7.col58),(t7.col58),(t7.a7)) xor  @@global.slave_compressed_protocol )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( ((t7.col58) sounds like (t7.col58)) >   convert((t6.col52) using cp1251) )\n \t\n\t left join `test`.`t14` as `t14`  \non (~t7.col56 )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )),(`t26`.`col254`),((\nselect   count(*) from\n\t`test`.`t7` as `t7` use index (PRIMARY,PRIMARY)\n\t left join `test`.`t12` as `t12` use index (idx97,idx90) \non (@var4 - t12.a12 )\n \t\n\t right outer join `test`.`t22` as `t22` ignore index (idx189,idx176,idx185) \non (!t7.a7 )\n \t\n\t left join `test`.`t6` as `t6` use index (PRIMARY) \non ( '1'  )\n \t\n\t left join `test`.`t14` as `t14`  \non ( (case ((t7.a7)) when ((t7.col57)) then ((t7.col57))when ((t7.col56)) then ((t7.col57)) else ((t7.col58)) end) <<  elt(( substring((t14.col151),(t14.col154),(t14.col149))),( ((t14.col152) in ((t14.col154),(t14.col149),(t14.col150),(t14.col154),(t14.col151)))),( ((t14.col155) in ((t14.col153),(t14.col153),(t14.col153),(t14.col153),(t14.col152)))),( @@global.time_format)) )\n  where\nt7.col56 ^ t7.col56 \n\n \n \n \nlimit 1\n   )))),( ((`t26`.`a26`) % (`t29`.`col291`))))) \n \n \n  \norder by \n\t (case ((`t2`.`col8`)) when ((`t2`.`a2`)) then ((`t29`.`col293`))when ((`t2`.`col18`)) then ((`t26`.`col257`)) else ((`t2`.`col18`)) end) ,\n\tt26.a26\n\n   "
        packet_length = 2751
        net = 0x96d0018
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96cfda0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96d0018
        rc = false
        thd = 0x96cfda0
#17 0x00000000006b6753 in handle_one_connection (arg=0x96cfda0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96cfda0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 28 (Thread 0x7f2ab13d4700 (LWP 2371)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96d7a60, mp=0x96d79f0, abstime=0x7f2ab13d1160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96d7a60, mutex=0x96d79f0, abstime=0x7f2ab13d1160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2973569104, 
          m_cond = 0x91e646, 
          m_mutex = 0x96d79f0, 
          m_thread = 0x96d7ac8, 
          m_timer_start = 139821338923136, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96d79f0 "", 
          m_src_line = 158169696, 
          m_wait = 0x96d7920
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96d79f0, owner=0x96d79e8, abs_timeout=0x7f2ab13d1160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96d79f0, mdl_request=0x7f29ac2f6b78, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29ac022d00
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x96ea350
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 984755800
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96d7920, ot_ctx=0x7f2ab13d1a10, mdl_request=0x7f29ac2f6b78, 
    flags=0, mdl_ticket=0x7f2ab13d1840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab13d1a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29ac004b10, 
          prev_in_list = 0x7f2ab13d1320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\023=\261*\177\000\000p\022=\261*\177\000\000\000J\221\000\000\000\000\000Ѕ\000\254)\177\000\000\020K\000\254)\177\000\000\v\000\000\000\000\000\000\000\360\032!\300)\177\000\000\020\033!\300)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000Є\000\254\000\000\001\000\000\032!\300)\177\000\000\000J\221\000\000\000\000\000Ѕ\000\254)\177\000\000Є\000\254)\177\000\000\360\022=\261*\177\000\000i|\272\000\000\000\000\000Ѕ\000\254)\177\000\000\020K\000\254)\177\000\000 \023=\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\020K\000\254\257\n\000\000\020K\000\254)\177\000\000\t\000\000\000\000\000\000\000`\023=\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000`\214\031\300)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\030=\261*\177\000\000\220\023=\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>"\360, \032!\300)\177\000\000Є\000\254\000\000\001\000\260\023=\261*\177\000\000V\257\272\000\000\000\000\000\350g/\254)\177\000\000Z\237W\000\000\000\000\000\000\024=\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96d7920, table_list=0x7f29ac2f67e8, mem_root=0x7f2ab13d19d0, 
    ot_ctx=0x7f2ab13d1a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab13d1a10
        key =           "test\000t21\000\000\000\000\000\022\000\000\000\030=\261*\177\000\000٢\272\000\000\000\000\000\360\030=\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000\320\030=\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\032=\261*\177\000\000\340\026=\261*\177\000\000̪i\000\000\000\000\000\000\031=\261*\177\000\000\320\030=\261*\177\000\000p\031=\261*\177\000\000\030\005i\000\000\000\000\000-(5494.7182)\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\270, [/\254)\177\000\000\000J\221\000\000\000\000\000\320Z/\254)\177\000\000Є\000\254)\177\000\000P\027=\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\020K\000\254)\177\000\000P\030=\261*\177\000\000\377\243\272\000\000\000\000\000\210\225m\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000Є\000\254)\177\000\000\240\027=\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\020K\000\254)\177\000\000\240\030=\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\030=\261*\177\000\000\360\027=\261*\177\000\000Є\000\254\000\000\001\000\270[/\254)\177\000\000\020K"
        alias = 0x7f29ac2f67d0 "t21"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab13d18f0
        }
        mdl_ticket = 0x7f29ac0085d0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 2885715408
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96d7920, lex=0x96d9588, tables=0x7f29ac2f67e8, 
    counter=0x7f2ab13d1b34, flags=0, prelocking_strategy=0x7f2ab13d1b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab13d1a10, new_frm_mem=0x7f2ab13d19d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab13d1a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96d7920, start=0x7f2ab13d1af0, counter=0x7f2ab13d1b34, flags=0, 
    prelocking_strategy=0x7f2ab13d1b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab13d1b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29ac2f5bc0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96d9610
        tables = 0x7f29ac2f67e8
        error = false
        new_frm_mem = {
          free = 0x7f29ac045a00, 
          used = 0x0, 
          pre_alloc = 0x7f29ac045a00, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96d7920, tables=0x7f29ac00d0c0, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab13d1b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 5
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab13d2c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96d7920, tables=0x7f29ac00d0c0, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x96d7920, all_tables=0x7f29ac00d0c0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x96d9588
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x96d7920)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x96d9588
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab13d2ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96d9c70
        first_table = 0x7f29ac00d0c0
        all_tables = 0x7f29ac00d0c0
        unit = 0x96d9638
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96d7920, 
    rawbuf=0x7f29ac00c6d0 "select   count(*) from\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (t19.col199 < t27.a27 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non (t19.col202 | @var5 )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n`t25`.`a25` as a25 ,\n`t19`.`col199` as col199 \nfrom\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (@var2 << @var2 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non ( coalesce((t19.col203),(t19.col203),(t19.a19)) /  convert((t21.col221) using hp8) )\n  \n\n \n \n \nlimit 1", length=846, 
    parser_state=0x7f2ab13d3610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96d9588
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab13d3b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96d7920, 
    packet=0x96db371 "\nselect   count(*) from\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (t19.col199 < t27.a27 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non (t19.col202 | @var5 )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n`t25`.`a25` as a25 ,\n`t19`.`col199` as col199 \nfrom\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (@var2 << @var2 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non ( coalesce((t19.col203),(t19.col203),(t19.a19)) /  convert((t21.col221) using hp8) )\n  \n\n \n \n \nlimit 1\n   ", packet_length=851)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29ac00ca1e ""
        parser_state = {
          m_lip = {
            m_thd = 0x96d7920, 
            yylineno = 38, 
            yytoklen = 1, 
            yylval = 0x7f2ab13d1680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29ac00ca1f "", 
            m_tok_start = 0x7f29ac00ca1f "", 
            m_tok_end = 0x7f29ac00ca1f "", 
            m_end_of_query = 0x7f29ac00ca1e "", 
            m_tok_start_prev = 0x7f29ac00ca1e "", 
            m_buf = 0x7f29ac00c6d0 "select   count(*) from\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (t19.col199 < t27.a27 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non (t19.col202 | @var5 )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n`t25`.`a25` as a25 ,\n`t19`.`col199` as col199 \nfrom\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (@var2 << @var2 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non ( coalesce((t19.col203),(t19.col203),(t19.a19)) /  convert((t21.col221) using hp8) )\n  \n\n \n \n \nlimit 1", 
            m_buf_length = 846, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29ac00ca80 "select   count(*) from\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (t19.col199 < t27.a27 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non (t19.col202 | @var5 )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n`t25`.`a25` as a25 ,\n`t19`.`col199` as col199 \nfrom\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (@var2 << @var2 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non ( coalesce((t19.col203),(t19.col203),(t19.a19)) /  convert((t21.col221) using hp8) )\n  \n\n \n \n \nlimit 1", 
            m_cpp_ptr = 0x7f29ac00cdce "", 
            m_cpp_tok_start = 0x7f29ac00cdce "", 
            m_cpp_tok_start_prev = 0x7f29ac00cdce "", 
            m_cpp_tok_end = 0x7f29ac00cdce "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29ac00cdcd "1", 
            m_cpp_text_end = 0x7f29ac00cdce "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96d7b98
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab13d3d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96d7920) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96db370 "\003\nselect   count(*) from\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (t19.col199 < t27.a27 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non (t19.col202 | @var5 )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n`t25`.`a25` as a25 ,\n`t19`.`col199` as col199 \nfrom\n\t`test`.`t19` as `t19` ignore index (idx141,idx131,idx145,idx131)\n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left join `test`.`t27` as `t27`  \non (@var2 << @var2 )\n \t\n\t natural join `test`.`t29` as `t29` force index (idx260,idx266,PRIMARY)\n \t\n\t left outer join `test`.`t21` as `t21`  \non ( coalesce((t19.col203),(t19.col203),(t19.a19)) /  convert((t21.col221) using hp8) )\n  \n\n \n \n \nlimit 1\n   "
        packet_length = 852
        net = 0x96d7b98
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96d7920)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96d7b98
        rc = false
        thd = 0x96d7920
#17 0x00000000006b6753 in handle_one_connection (arg=0x96d7920)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96d7920
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 27 (Thread 0x7f2ab1393700 (LWP 2373)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96df5e0, mp=0x96df570, abstime=0x7f2ab1390340, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96df5e0, mutex=0x96df570, abstime=0x7f2ab1390340, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2973303344, 
          m_cond = 0x91e646, 
          m_mutex = 0x96df570, 
          m_thread = 0x96df648, 
          m_timer_start = 139821338657376, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96df570 "", 
          m_src_line = 158201312, 
          m_wait = 0x96df4a0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96df570, owner=0x96df568, abs_timeout=0x7f2ab1390340, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96df570, mdl_request=0x7f29bc00cce0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29bc35e6c0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x96ea350
        abs_timeout = {
          tv_sec = 1331672678, 
          tv_nsec = 39502400
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96df4a0, ot_ctx=0x7f2ab1390bf0, mdl_request=0x7f29bc00cce0, 
    flags=0, mdl_ticket=0x7f2ab1390a20) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1390bf0, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 3154150864, 
          duration = 32553, 
          next_in_list = 0x258bc000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000(\233$\274)\177\000\000\000J\221\000\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000\270\003\004\274)\177\000\000\030\001.\003\000\000\000\000\220\004\071\261*\177\000\000\200\257Z\002\000\000\000\000\220\004\071\261*\177\000\000\314\345\221\000\000\000\000\000\250\003\004\274)\177\000\000 \366m\t\000\000\000\000\300\004\071\261*\177\000\000\332\354c\000\000\000\000\000\240\003\004\274)\177\000\000 \366m\t\000\000\000\000\200\257Z\002\000\000\000\000\200\257Z\002\000\000\000\000 \005\071\261*\177\000\000\336\300c\000\000\000\000\000\020\005\071\261*\177\000\000\210\005\071\261*\177\000\000\060\006\071\261*\177\000\000p\365m\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\240\003\004\274)\177\000\000P\006\071\261*\177\000\000\346\202~M\000\000\000\000\200\257Z\002\000\000\000\000\340\005\071\261*\177\000\000\204\305c\000\000\000\000\000\060\303$\274)\177\000\000\000\300h\313t\002\034\000Ѕ\000\274)\177\000\000\200\063\341\001\000\000\000\000\060\006\071\261*\177\000\000p\365m\t", '\000' <repeats 12 times>, "%\340c\000\000\000\000\000f\266_O\000\000\000\000\200\257Z\002\000\000\000\000P\311\000\274\000\000\000\000P\006\071\261*\177\000\000\340\005\071\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96df4a0, table_list=0x7f29bc00c950, mem_root=0x7f2ab1390bb0, 
    ot_ctx=0x7f2ab1390bf0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1390bf0
        key =           "test\000t21\000\000\000\000\000\023\000\000\000K\000\274)\177\000\000\b\000\000\000\000\000\000\000\240\b9\261*\177\000\000R>\217", '\000' <repeats 13 times>"\260, \n9\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\b\000\000\200*\177\000\000 \f9\261*\177\000\000\300\b9\261*\177\000\000̪i\000\000\000\000\000\340\n9\261*\177\000\000\260\n9\261*\177\000\000P\v9\261*\177\000\000\030\005i\000\000\000\000\000\360\b9\261*\177\000\000V\257\272\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "P\311\000\274)\177\000\000\240\364m\t\000\000\000\000 \000\000\274)\177\000\000\376", '\000' <repeats 15 times>, "\t\000\000\000\000\000\000\000h\037\000\000\000\000\000\000ؘ\307\301\062\000\000\000x\263\v\324)\177\000\000h\217T\t\000\000\000\000\b\021n\t\000\000\000\000\000J\221\000\000\000\000\000Ѕ\000\274)\177\000\000Є\000\274)\177\000\000\200\t9\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\020K\000\274)\177\000\000\200\n9\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\220\n9\261*\177\000\000\320\t9\261*\177\000\000Є\000\274)\177\000\000\340\t9\261*\177\000\000\020K"
        alias = 0x7f29bc00c948 "t21"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483657, 
          prev = 0x7f2ab1390ad0
        }
        mdl_ticket = 0x7f29bc0085d0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3154150864
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96df4a0, lex=0x96e1108, tables=0x7f29bc00c950, 
    counter=0x7f2ab1390d14, flags=0, prelocking_strategy=0x7f2ab1390d60, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1390bf0, new_frm_mem=0x7f2ab1390bb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab1390c20
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96df4a0, start=0x7f2ab1390cd0, counter=0x7f2ab1390d14, flags=0, 
    prelocking_strategy=0x7f2ab1390d60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1390ce0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1390cd0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96e1190
        tables = 0x7f29bc00c950
        error = false
        new_frm_mem = {
          free = 0x7f29bc32f420, 
          used = 0x0, 
          pre_alloc = 0x7f29bc32f420, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96df4a0, tables=0x7f29bc00c950, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab1390d60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc5d6fa "mysql_insert", 
          file = 0xc5d6a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_insert.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1390f30
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96df4a0, tables=0x7f29bc00c950, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006c391d in mysql_insert (thd=0x96df4a0, table_list=0x7f29bc00c950, fields=..., values_list=..., 
    update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_insert.cc:714
        was_insert_delayed = false
        counter = 1
        lock_type = 32554
        value_count = 32553
        info = {
          records = 2147483654, 
          deleted = 139821338660832, 
          updated = 13002256, 
          copied = 12997536, 
          error_count = 0, 
          touched = 2, 
          handle_duplicates = 158205048, 
          escape_char = 0, 
          last_errno = 0, 
          ignore = false, 
          update_fields = 0x100000000, 
          update_values = 0x0, 
          view = 0x96e0478
        }
        context = 0x0
        log_on = true
        res = 0
        joins_freed = false
        changed = 109
        id = 2
        its = {
          <base_list_iterator> = {
            list = 0x96e1d18, 
            el = 0x96e1d18, 
            prev = 0x0, 
            current = 0x0
          }, <No data fields>}
        values = 0x5
        unused_conds = 0x0
        __FUNCTION__ =           "mysql_insert"
        error = 0
        table = 0x0
        ctx_state = {
          save_table_list = 0xfe, 
          save_first_name_resolution_table = 0x0, 
          save_next_name_resolution_table = 0x7f2ab1390f70, 
          save_resolve_in_select_list = 47, 
          save_next_local = 0x7f2a00000000
        }
        transactional_table = 9
        query = 0x7f29bc00c6a0 "insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870"
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1391c00
        }
        __PRETTY_FUNCTION__ =           "bool mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool)"
#12 0x00000000006e126a in mysql_execute_command (thd=0x96df4a0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2835
        res = 0
        lex = 0x96e1108
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1391ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96e17f0
        first_table = 0x7f29bc00c950
        all_tables = 0x7f29bc00c950
        unit = 0x96e11b8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96df4a0, 
    rawbuf=0x7f29bc00c6a0 "insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870", length=254, 
    parser_state=0x7f2ab1392610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96e1108
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1392b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96df4a0, 
    packet=0x96e2ef1 "insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870", packet_length=254)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29bc00c79e ""
        parser_state = {
          m_lip = {
            m_thd = 0x96df4a0, 
            yylineno = 11, 
            yytoklen = 7, 
            yylval = 0x7f2ab1390680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29bc00c79f "lobal.automatic_sp_privileges ^  char((t3.col23) using gbk) )\n  \n \ngroup by \n\tt28.col271 desc\n \n insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870", 
            m_tok_start = 0x7f29bc00c79f "lobal.automatic_sp_privileges ^  char((t3.col23) using gbk) )\n  \n \ngroup by \n\tt28.col271 desc\n \n insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870", 
            m_tok_end = 0x7f29bc00c79f "lobal.automatic_sp_privileges ^  char((t3.col23) using gbk) )\n  \n \ngroup by \n\tt28.col271 desc\n \n insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870", 
            m_end_of_query = 0x7f29bc00c79e "", 
            m_tok_start_prev = 0x7f29bc00c79e "", 
            m_buf = 0x7f29bc00c6a0 "insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870", 
            m_buf_length = 254, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29bc00c800 "insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870", 
            m_cpp_ptr = 0x7f29bc00c8fe "", 
            m_cpp_tok_start = 0x7f29bc00c8fe "", 
            m_cpp_tok_start_prev = 0x7f29bc00c8fe "", 
            m_cpp_tok_end = 0x7f29bc00c8fe "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29bc00c8f7 "3062870", 
            m_cpp_text_end = 0x7f29bc00c8fe "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96df718
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1392d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96df4a0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96e2ef0 "\003insert ignore into `test`.`t21` set\n`col219` = 0.3606,\n`col222` = -3.9366862609486E+18,\n`col224` = 1,\n`col225` = \"\205\273Q\365T\242e\216\275O\276w\222\",\n`col226` = 669377,\n`col223` = '',\n`col218` = -1268352046,\n`a21` = '2010-04-17 15:10:24',\n`col221` = 3114,\n`col220` = 3062870"
        packet_length = 255
        net = 0x96df718
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96df4a0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96df718
        rc = false
        thd = 0x96df4a0
#17 0x00000000006b6753 in handle_one_connection (arg=0x96df4a0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96df4a0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 26 (Thread 0x7f2ab1352700 (LWP 2374)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96e7160, mp=0x96e70f0, abstime=0x7f2ab134f5d0, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96e7160, mutex=0x96e70f0, abstime=0x7f2ab134f5d0, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2973037760, 
          m_cond = 0x91e646, 
          m_mutex = 0x96e70f0, 
          m_thread = 0x96e71c8, 
          m_timer_start = 139821338391792, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96e70f0 "", 
          m_src_line = 158232928, 
          m_wait = 0x96e7020
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96e70f0, owner=0x96e70e8, abs_timeout=0x7f2ab134f5d0, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96e70f0, mdl_request=0x7f29a809ea10, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29a8093520
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331672646, 
          tv_nsec = 400108500
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96e7020, ot_ctx=0x7f2ab134fe80, mdl_request=0x7f29a809ea10, 
    flags=0, mdl_ticket=0x7f2ab134fcb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x7f2ab134fd90
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab134fe80, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29a8007dc0, 
          prev_in_list = 0x7f2ab134f790, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\240\367\064\261*\177\000\000\340\366\064\261*\177\000\000\000J\221\000\000\000\000\000w\023\320", '\000' <repeats 13 times>, "X\347\317\000\000\000\000\000\240|\000\250\000\000\001\000\020\367\064\261*\177\000\000V\257\272\000\000\000\000\000\240}\000\250)\177\000\000\300}\000\250)\177\000\000@\371\064\261*\177\000\000٢\272\000\000\000\000\000`\371\064\261*\177\000\000\240|\000\250\360\000\000\000P\367\064\261*\177\000\000V\257\272\000\000\000\000\000\240}\000\250)\177\000\000\300}\000\250)\177\000\000\200\371\064\261*\177\000\000٢\272\000\000\000\000\000\240\371\064\261*\177\000\000V\257\272\000\360\000\000\000w\023\320", '\000' <repeats 13 times>"\260, \371\064\261*\177\000\000\240|\000\250\000\000\001\000\260\367\064\261*\177\000\000V\257\272\000\000\000\000\000\240}\000\250)\177\000\000\300}\000\250)\177\000\000\240\000\305", '\000' <repeats 14 times>"\372, \064\261*\177\000\000\240|\000\250\000\000\001\000\360\367\064\261*\177\000\000V\257\272\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, " \372\064\261*\177\000\000\240|\000\250\000\000\001\000 \370\064\261*\177\000\000V\257\272\000\000\000\000\000\200\346\t\250)\177\000\000Z\237W\000\000\000\000\000p\370\064\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96e7020, table_list=0x7f29a809e680, mem_root=0x7f2ab134fe40, 
    ot_ctx=0x7f2ab134fe80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab134fe80
        key =           "test\000t6\000\000\000\000\000\024\000\000\000\020\375\064\261*\177\000\000٢\272\000\000\000\000\000`\375\064\261*\177\000\000\220\214n\t\244\021\000\000 pn\t\000\000\000\000\330b5\314)\177\000\000\033\000\004\000\005test\000trg_t10_after_delete\000\000P\373\064\261*\177\000\000̪i\000\000\000\000\000p\375\064\261*\177\000\000@\375\064\261*\177\000\000\340\375\064\261*\177\000\000\030\005i\000\000\000\000\000\021 \305", '\000' <repeats 13 times>"\200, \063\341\001", '\000' <repeats 12 times>, "\b\333\t\250)\177\000\000\000J\221\000\000\000\000\000\240}\000\250)\177\000\000\240|\000\250)\177\000\000\300\373\064\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\300}\000\250)\177\000\000\300\374\064\261*\177\000\000\377\243\272\000\000\000\000\000\210\214n\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\240|\000\250)\177\000\000\020\374\064\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300}\000\250)\177\000\000\020\375\064\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000 \375\064\261*\177\000\000`\374\064\261*\177\000\000\240|\000\250\000\000\001\000\b\333\t\250)\177\000\000\300}"
        alias = 0x7f29a809e200 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab134fd60
        }
        mdl_ticket = 0x7f29a8007da0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 2818604448
#7  0x000000000068fb90 in open_and_process_table (thd=0x96e7020, lex=0x96e8c88, tables=0x7f29a809e680, 
    counter=0x7f2ab134ffa4, flags=0, prelocking_strategy=0x7f2ab134fff0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab134fe80, new_frm_mem=0x7f2ab134fe40) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4369
        no_such_table_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1114030, 
            m_prev_internal_handler = 0x0
          }, 
          members of No_such_table_error_handler: 
          m_handled_errors = 0, 
          m_unhandled_errors = 0
        }
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab134feb0
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96e7020, start=0x7f2ab134ff60, counter=0x7f2ab134ffa4, flags=0, 
    prelocking_strategy=0x7f2ab134fff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab134ff70
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29a809db10
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96e8d10
        tables = 0x7f29a809e680
        error = false
        new_frm_mem = {
          free = 0x7f29a803e0b0, 
          used = 0x0, 
          pre_alloc = 0x7f29a803e0b0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96e7020, tables=0x7f29a809d568, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab134fff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 8
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1350c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96e7020, tables=0x7f29a809d568, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e1923 in mysql_execute_command (thd=0x96e7020)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2957
        aux_tables = 0x7f29a800c500
        del_result = 0x7f2ab134f400
        res = 0
        lex = 0x96e8c88
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1350ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96e9370
        first_table = 0x7f29a809d568
        all_tables = 0x7f29a809d568
        unit = 0x96e8d38
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x96e7020, 
    rawbuf=0x7f29a800c050 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31)\n\t natural right outer join `test`.`t12` as `t12` \n \t\n\t left join `test`.`t2` as `t2`  \non (@var2 not rlike @var4 )\n \t\n\t left outer join `test`.`t11` as `t11` use index (PRIMARY,idx77,idx73) \non (  get_format(time,'eur') | @var5 )\n \t\n\t cross join `test`.`t17` as `t17`  \non (t7.a7 * @var5 )\n \t\n\t inner join `test`.`t13` as `t13`  \non ( '1'  )\n  \n \ngroup by \n\tt12.col118\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col90>x.col102", length=512, 
    parser_state=0x7f2ab1351610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96e8c88
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1351b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96e7020, 
    packet=0x96eaa71 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31)\n\t natural right outer join `test`.`t12` as `t12` \n \t\n\t left join `test`.`t2` as `t2`  \non (@var2 not rlike @var4 )\n \t\n\t left outer join `test`.`t11` as `t11` use index (PRIMARY,idx77,idx73) \non (  get_format(time,'eur') | @var5 )\n \t\n\t cross join `test`.`t17` as `t17`  \non (t7.a7 * @var5 )\n \t\n\t inner join `test`.`t13` as `t13`  \non ( '1'  )\n  \n \ngroup by \n\tt12.col118\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col90>x.col102\n", packet_length=513)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29a800c250 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96e7020, 
            yylineno = 27, 
            yytoklen = 6, 
            yylval = 0x7f2ab134f680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29a800c251 "", 
            m_tok_start = 0x7f29a800c251 "", 
            m_tok_end = 0x7f29a800c251 "", 
            m_end_of_query = 0x7f29a800c250 "", 
            m_tok_start_prev = 0x7f29a800c250 "", 
            m_buf = 0x7f29a800c050 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31)\n\t natural right outer join `test`.`t12` as `t12` \n \t\n\t left join `test`.`t2` as `t2`  \non (@var2 not rlike @var4 )\n \t\n\t left outer join `test`.`t11` as `t11` use index (PRIMARY,idx77,idx73) \non (  get_format(time,'eur') | @var5 )\n \t\n\t cross join `test`.`t17` as `t17`  \non (t7.a7 * @var5 )\n \t\n\t inner join `test`.`t13` as `t13`  \non ( '1'  )\n  \n \ngroup by \n\tt12.col118\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col90>x.col102", 
            m_buf_length = 512, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29a800c2b0 "delete t10 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31)\n\t natural right outer join `test`.`t12` as `t12` \n \t\n\t left join `test`.`t2` as `t2`  \non (@var2 not rlike @var4 )\n \t\n\t left outer join `test`.`t11` as `t11` use index (PRIMARY,idx77,idx73) \non (  get_format(time,'eur') | @var5 )\n \t\n\t cross join `test`.`t17` as `t17`  \non (t7.a7 * @var5 )\n \t\n\t inner join `test`.`t13` as `t13`  \non ( '1'  )\n  \n \ngroup by \n\tt12.col118\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col90>x.col102", 
            m_cpp_ptr = 0x7f29a800c4b0 "", 
            m_cpp_tok_start = 0x7f29a800c4b0 "", 
            m_cpp_tok_start_prev = 0x7f29a800c4b0 "", 
            m_cpp_tok_end = 0x7f29a800c4b0 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29a800c4aa "col102", 
            m_cpp_text_end = 0x7f29a800c4b0 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96e7298
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1351d00
        }
#14 0x00000000006dc1ad in do_command (thd=0x96e7020) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96eaa70 "\003delete t10 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31)\n\t natural right outer join `test`.`t12` as `t12` \n \t\n\t left join `test`.`t2` as `t2`  \non (@var2 not rlike @var4 )\n \t\n\t left outer join `test`.`t11` as `t11` use index (PRIMARY,idx77,idx73) \non (  get_format(time,'eur') | @var5 )\n \t\n\t cross join `test`.`t17` as `t17`  \non (t7.a7 * @var5 )\n \t\n\t inner join `test`.`t13` as `t13`  \non ( '1'  )\n  \n \ngroup by \n\tt12.col118\n \n \n \nlimit 1\n   ) `x`,\nt10 as t10 \nwhere t10.col90>x.col102\n"
        packet_length = 514
        net = 0x96e7298
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96e7020)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96e7298
        rc = false
        thd = 0x96e7020
#16 0x00000000006b6753 in handle_one_connection (arg=0x96e7020)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96e7020
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 25 (Thread 0x7f2ab1311700 (LWP 2376)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96eece0, mp=0x96eec70, abstime=0x7f2ab130e160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96eece0, mutex=0x96eec70, abstime=0x7f2ab130e160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2972770384, 
          m_cond = 0x91e646, 
          m_mutex = 0x96eec70, 
          m_thread = 0x96eed48, 
          m_timer_start = 139821338124416, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96eec70 "", 
          m_src_line = 158264544, 
          m_wait = 0x96eeba0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96eec70, owner=0x96eec68, abs_timeout=0x7f2ab130e160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x96eec70, mdl_request=0x7f29b004cf98, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29b010bd40
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29b4058770
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 954149400
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x96eeba0, ot_ctx=0x7f2ab130ea10, mdl_request=0x7f29b004cf98, 
    flags=0, mdl_ticket=0x7f2ab130e840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab130ea10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29b0007dc0, 
          prev_in_list = 0x7f2ab130e320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 8, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\343\060\261*\177\000\000p\342\060\261*\177\000\000\000J\221\000\000\000\000\000\240}\000\260)\177\000\000\300}\000\260)\177\000\000\020\000\000\000\000\000\000\000И%\260)\177\000\000\360\230%\260)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\240|\000\260\000\000\001\000\340\227%\260)\177\000\000\000J\221\000\000\000\000\000\240}\000\260)\177\000\000\240|\000\260)\177\000\000\360\342\060\261*\177\000\000i|\272\000\000\000\000\000\240}\000\260)\177\000\000\300}\000\260)\177\000\000 \343\060\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\300}\000\260\257\n\000\000\300}\000\260)\177\000\000\t\000\000\000\000\000\000\000`\343\060\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\300\240%\260)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\350\060\261*\177\000\000\220\343\060\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, "И%\260)\177\000\000\240|\000\260\000\000\001\000\260\343\060\261*\177\000\000V\257\272\000\000\000\000\000\b\314\004\260)\177\000\000Z\237W\000\000\000\000\000\000\344\060\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x96eeba0, table_list=0x7f29b004cc08, mem_root=0x7f2ab130e9d0, 
    ot_ctx=0x7f2ab130ea10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab130ea10
        key =           "test\000t16\000\000\000\000\000\025\000\000\000\350\060\261*\177\000\000٢\272\000\000\000\000\000\360\350\060\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000\320\350\060\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\352\060\261*\177\000\000\340\346\060\261*\177\000\000̪i\000\000\000\000\000\000\351\060\261*\177\000\000\320\350\060\261*\177\000\000p\351\060\261*\177\000\000\030\005i\000\000\000\000\000\320\340\060\261*\177\000\000\000\000\000\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "8\311\b\260)\177\000\000\000J\221\000\000\000\000\000\000z\303\000\000\000\000\000\240|\000\260)\177\000\000P\347\060\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\300}\000\260)\177\000\000P\350\060\261*\177\000\000\377\243\272\000\000\000\000\000\b\bo\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\240|\000\260)\177\000\000\240\347\060\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300}\000\260)\177\000\000\240\350\060\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\350\060\261*\177\000\000\360\347\060\261*\177\000\000\240|\000\260\000\000\001\000\070\311\b\260)\177\000\000\300}"
        alias = 0x7f29b008cef8 "t16"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab130e8f0
        }
        mdl_ticket = 0x7f29b0007da0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 2952822176
#7  0x000000000068fbe0 in open_and_process_table (thd=0x96eeba0, lex=0x96f0808, tables=0x7f29b004cc08, 
    counter=0x7f2ab130eb34, flags=0, prelocking_strategy=0x7f2ab130eb80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab130ea10, new_frm_mem=0x7f2ab130e9d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab130ea40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x96eeba0, start=0x7f2ab130eaf0, counter=0x7f2ab130eb34, flags=0, 
    prelocking_strategy=0x7f2ab130eb80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab130eb00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29b008c940
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96f0890
        tables = 0x7f29b004cc08
        error = false
        new_frm_mem = {
          free = 0x7f29b0111170, 
          used = 0x0, 
          pre_alloc = 0x7f29b0111170, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x96eeba0, tables=0x7f29b000ccb8, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab130eb80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 6
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab130fc00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x96eeba0, tables=0x7f29b000ccb8, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x96eeba0, all_tables=0x7f29b000ccb8)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x96f0808
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x96eeba0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x96f0808
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab130fee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96f0ef0
        first_table = 0x7f29b000ccb8
        all_tables = 0x7f29b000ccb8
        unit = 0x96f08b8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96eeba0, 
    rawbuf=0x7f29b000c050 "explain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29", length=1360, parser_state=0x7f2ab1310610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96f0808
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1310b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96eeba0, 
    packet=0x96f22c1 "explain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29\n\n   ", packet_length=1365) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b000c5a0 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96eeba0, 
            yylineno = 39, 
            yytoklen = 5, 
            yylval = 0x7f2ab130e680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b000c5a1 "t24.col251),(t24.col251),(t24.col243))),( lpad((t24.col236),(t24.col239),(t24.col251))),( @@gloexplain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29", 
            m_tok_start = 0x7f29b000c5a1 "t24.col251),(t24.col251),(t24.col243))),( lpad((t24.col236),(t24.col239),(t24.col251))),( @@gloexplain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29", 
            m_tok_end = 0x7f29b000c5a1 "t24.col251),(t24.col251),(t24.col243))),( lpad((t24.col236),(t24.col239),(t24.col251))),( @@gloexplain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29", 
            m_end_of_query = 0x7f29b000c5a0 "", 
            m_tok_start_prev = 0x7f29b000c5a0 "", 
            m_buf = 0x7f29b000c050 "explain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29", 
            m_buf_length = 1360, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b000c600 "explain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29", 
            m_cpp_ptr = 0x7f29b000cb50 "", 
            m_cpp_tok_start = 0x7f29b000cb50 "", 
            m_cpp_tok_start_prev = 0x7f29b000cb50 "", 
            m_cpp_tok_end = 0x7f29b000cb50 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b000cb4b "col29", 
            m_cpp_text_end = 0x7f29b000cb50 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96eee18
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1310d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96eeba0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96f22c0 "\003explain extended \nselect sql_no_cache distinctrow  \t col184 from\n\t`test`.`t27` as `t27` \n\t right outer join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t cross join `test`.`t23` as `t23`  \non ( week((t27.col258),6) | t27.a27 )\n \t\n\t right join `test`.`t6` as `t6` force index (idx24) \non ( greatest(( char((t27.a27) using eucjpms)),( ((t27.col258) in ((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258)))),( mid((t27.a27),(t27.a27),(t27.a27))),( char((t27.col258) using latin5)),( @@global.character_set_system)) or  elt((t6.col52),(t6.col54),(t6.a6),(t6.a6),(t6.a6),(t6.col53)) )\n \t\n\t natural join `test`.`t7` as `t7` \n \t\n\t left join `test`.`t16` as `t16`  \non ( ceiling((t27.a27)) not rlike @var8 )\n \t\n\t inner join `test`.`t26` as `t26`  \non ( greatest((t27.col258),(t27.a27)) <>  (( ((t26.col257) not in ((t26.col256),(t26.a26),(t26.col254),(t26.col256),(t26.col255)))) not in (( @@global.server_id),( export_set((t26.col255),(t26.col257),(t26.a26),(t26.col256),(t26.col254))))) )\n \t\n\t natural right join `test`.`t20` as `t20` use index (idx155,idx155,idx155)\n \t\n\t straight_join `test`.`t24` as `t24`  \non (t27.a27 is null )\n \t\n\t natural left join `test`.`t4` as `t4` force index (PRIMARY)\n \t\n\t right join `test`.`t22` as `t22` ignore index (idx189,idx184,idx184) \non (t27.col258 is not true )\n  \n \ngroup by \n\tt5.col47\n \n \n  \norder by \n\tt20.col213 desc,\n\tt4.col29\n\n   "
        packet_length = 1366
        net = 0x96eee18
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96eeba0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96eee18
        rc = false
        thd = 0x96eeba0
#17 0x00000000006b6753 in handle_one_connection (arg=0x96eeba0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96eeba0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 24 (Thread 0x7f2ab12d0700 (LWP 2377)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x96f6530, mp=0x96f64c0, abstime=0x7f2ab12cd870, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x96f6530, mutex=0x96f64c0, abstime=0x7f2ab12cd870, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2972505968, 
          m_cond = 0x96f64b8, 
          m_mutex = 0x7f2ab12cd790, 
          m_thread = 0x96e7020, 
          m_timer_start = 139821337860048, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x96f64c0 "", 
          m_src_line = 158295344, 
          m_wait = 0x96f63f0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x96f64c0, owner=0x96f64b8, abs_timeout=0x7f2ab12cd870, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x96f64c0, mdl_request=0x7f29b800cf88, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 967744200
        }
        ticket = 0x7f29b80683a0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29b02c84a0
        abs_timeout = {
          tv_sec = 1331672701, 
          tv_nsec = 147886400
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063cc6e in MDL_context::acquire_locks (this=0x96f64c0, mdl_requests=0x7f2ab12cdbe0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1925
        sort_buf = 0x7f29b803fe50
        p_req = 0x7f29b803fe60
        mdl_svp = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        it = {
          list = 0x7f2ab12cdbe0, 
          current = 0x0
        }
        req_count = 3
#6  0x00000000006904f9 in lock_table_names (thd=0x96f63f0, tables_start=0x7f29b800cbf8, tables_end=0x0, 
    lock_wait_timeout=31536000, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4604
        mdl_requests = {
          <I_P_List_counter> = {
            m_counter = 3
          }, 
          <I_P_List_no_push_back<MDL_request>> = {<No data fields>}, 
          members of I_P_List<MDL_request, I_P_List_adapter<MDL_request, &(MDL_request::next_in_list), &(MDL_request::prev_in_list)>, I_P_List_counter, I_P_List_no_push_back<MDL_request> >: 
          m_first = 0x7f2ab12cd9c0
        }
        schema_set = {
          m_hash = {
            key_offset = 0, 
            key_length = 0, 
            blength = 2, 
            records = 1, 
            flags = 0, 
            array = {
              buffer = 0x7f29b8155f70 "\377\377\377\377)\177", 
              elements = 1, 
              max_element = 8, 
              alloc_increment = 511, 
              size_of_element = 16
            }, 
            get_key = 0x69019e <schema_set_get_key(uchar const*, size_t*, my_bool)>, 
            free = 0, 
            charset = 0x1174280
          }
        }
        __PRETTY_FUNCTION__ =           "bool lock_table_names(THD*, TABLE_LIST*, TABLE_LIST*, ulong, uint)"
        table = 0x0
        global_request = {
          type = MDL_INTENTION_EXCLUSIVE, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29b800d140, 
          prev_in_list = 0x7f2ab12cdbe8, 
          ticket = 0x7f29b8045c70, 
          key = {
            m_length = 3, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\300}\000\270)\177\000\000 \334,\261*\177\000\000٢\272\000\000\000\000\000\220\335,\261*\177\000\000\000J\221\000\000\000\000\000 \000\000\270)\177\000\000\240|\000\270)\177\000\000@\332,\261*\177\000\000i|\272\000\002\000\001\000\216.\320\000\000\000\000\000\300}\000\270)\177\000\000@\333,\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000\223.\320\000\000\000\000\000\220\335,\261*\177\000\000\000J\221\000\000\000\000\000\220\332,\261*\177\000\000\240|\000\270)\177\000\000\240\332,\261*\177\000\000i|\272\000\002\000\001\000ܥ\305\000\000\000\000\000\300}\000\270)\177\000\000|\225\306", '\000' <repeats 13 times>"\220, \336,\261*\177\000\000\240|\000\270\000\000\001\000\340\332,\261*\177\000\000V\257\272\000\000\000\000\000\240}\000\270)\177\000\000\300}\000\270)\177\000\000\060\333,\261*\177\000\000;\241\272\000\000\000\000\000p\333,\261*\177\000\000ZE\305\000P\001\000\000ؔ\306\000\000\000\000\000|\225\306\000\000\000\000\000\210\022\000\000\000\000\000\000\300}\000\270)\177\000\000\300}\000\270)\177\000\000\t\000\000\000\000\000\000\000\240\333,\261*\177\000\000\026\367o\000\000\000\000\000\240\333,\261*\177\000\000\240|\000\270\210\022\000\000ZE\305\000\000\000\000\000\226m\305\000\000\000\000\000 U\305\000\000\000", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
#7  0x000000000069084e in open_tables (thd=0x96f63f0, start=0x7f2ab12cdd90, counter=0x7f2ab12cddd4, flags=0, 
    prelocking_strategy=0x7f2ab12cde90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4781
        table = 0x7f29b8007dc0
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab12cdda0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab12cdd90
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x96f80e0
        tables = 0xbaa2f4
        error = false
        new_frm_mem = {
          free = 0x7f29b81f68f0, 
          used = 0x0, 
          pre_alloc = 0x7f29b81f68f0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#8  0x00000000006917c8 in open_and_lock_tables (thd=0x96f63f0, tables=0x7f29b800cbf8, derived=false, flags=0, 
    prelocking_strategy=0x7f2ab12cde90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 0
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc555d8 "open_n_lock_single_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab12cde20
        }
#9  0x000000000069128d in open_n_lock_single_table (thd=0x96f63f0, table_l=0x7f29b800cbf8, 
    lock_type=TL_READ_NO_INSERT, flags=0, prelocking_strategy=0x7f2ab12cde90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5262
        save_next_global = 0x0
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab12cdf90
        }
#10 0x0000000000774b19 in open_n_lock_single_table (thd=0x96f63f0, table_l=0x7f29b800cbf8, 
    lock_type=TL_READ_NO_INSERT, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:471
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x0000000000779684 in mysql_create_or_drop_trigger (thd=0x96f63f0, tables=0x7f29b800cbf8, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:479
        lock_upgrade_done = false
        mdl_ticket = 0x0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000b8007ca0, 
          query_tables_last = 0x7f2ab12cdf10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139817157426592, 
            key_length = 139817157426624, 
            blength = 139821337861984, 
            records = 12230971, 
            flags = 2972508048, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29b8007dc0, 
            charset = 0x7f29b8007dc0
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab12cdf60
          }, 
          sroutines_list_own_last = 0x7f29b8007da0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2972508112
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f2ab12ce010
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab12cec00
        }
#12 0x00000000006e56a9 in mysql_execute_command (thd=0x96f63f0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x96f8058
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab12ceee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x96f8740
        first_table = 0x7f29b800cbf8
        all_tables = 0x7f29b800cbf8
        unit = 0x96f8108
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x96f63f0, 
    rawbuf=0x7f29b800c050 "create trigger `trg_t10_before_delete` before delete on `t10` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (t18.col197 | @var7 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col188 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col295>x.col196\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non ( str_to_date((t18.col189),(t18.col198)) *  weekofyear(( least((t28.col268),(t28.col267),(t28.col269),(t28.col273),(t28.col263)))) )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col190 >> t25.col253 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col259`=`x`.`col196`\n;\n\n\nselect  \t\n`t18`.`col196` as col196 \nfrom\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (!t18.col196 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (@var0 is not false )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", length=1346, parser_state=0x7f2ab12cf610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x96f8058
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab12cfb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x96f63f0, 
    packet=0x96f9b11 "create trigger `trg_t10_before_delete` before delete on `t10` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (t18.col197 | @var7 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col188 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col295>x.col196\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non ( str_to_date((t18.col189),(t18.col198)) *  weekofyear(( least((t28.col268),(t28.col267),(t28.col269),(t28.col273),(t28.col263)))) )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col190 >> t25.col253 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col259`=`x`.`col196`\n;\n\n\nselect  \t\n`t18`.`col196` as col196 \nfrom\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (!t18.col196 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (@var0 is not false )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n", packet_length=1348) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b800c592 ""
        parser_state = {
          m_lip = {
            m_thd = 0x96f63f0, 
            yylineno = 64, 
            yytoklen = 4, 
            yylval = 0x7f2ab12cd680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b800c593 "", 
            m_tok_start = 0x7f29b800c593 "", 
            m_tok_end = 0x7f29b800c593 "", 
            m_end_of_query = 0x7f29b800c592 "", 
            m_tok_start_prev = 0x7f29b800c592 "", 
            m_buf = 0x7f29b800c050 "create trigger `trg_t10_before_delete` before delete on `t10` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (t18.col197 | @var7 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col188 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col295>x.col196\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non ( str_to_date((t18.col189),(t18.col198)) *  weekofyear(( least((t28.col268),(t28.col267),(t28.col269),(t28.col273),(t28.col263)))) )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col190 >> t25.col253 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col259`=`x`.`col196`\n;\n\n\nselect  \t\n`t18`.`col196` as col196 \nfrom\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (!t18.col196 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (@var0 is not false )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_buf_length = 1346, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b800c5f0 "create trigger `trg_t10_before_delete` before delete on `t10` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (t18.col197 | @var7 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col188 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col295>x.col196\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non ( str_to_date((t18.col189),(t18.col198)) *  weekofyear(( least((t28.col268),(t28.col267),(t28.col269),(t28.col273),(t28.col263)))) )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col190 >> t25.col253 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col259`=`x`.`col196`\n;\n\n\nselect  \t\n`t18`.`col196` as col196 \nfrom\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (!t18.col196 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (@var0 is not false )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_cpp_ptr = 0x7f29b800cb32 "", 
            m_cpp_tok_start = 0x7f29b800cb32 "", 
            m_cpp_tok_start_prev = 0x7f29b800cb32 "", 
            m_cpp_tok_end = 0x7f29b800cb32 "", 
            m_body_utf8 = 0x7f29b80574b0 "\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (t18.col197 | @var7 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col188 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col295>x.col196\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non ( str_to_date((t18.col189),(t18.col198)) *  weekofyear(( least((t28.col268),(t28.col267),(t28.col269),(t28.col273),(t28.col263)))) )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col190 >> t25.col253 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col259`=`x`.`col196`\n;\n\n\nselect  \t\n`t18`.`col196` as col196 \nfrom\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (!t18.col196 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (@var0 is not false )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29b80579a8 "", 
            m_cpp_utf8_processed_ptr = 0x7f29b800cb32 "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 127 '\177', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b800cb26 "var0` ;\n\nend", 
            m_cpp_text_end = 0x7f29b800cb2a "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x96f6668
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab12cfd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x96f63f0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x96f9b10 "\003create trigger `trg_t10_before_delete` before delete on `t10` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (t18.col197 | @var7 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col188 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col295>x.col196\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non ( str_to_date((t18.col189),(t18.col198)) *  weekofyear(( least((t28.col268),(t28.col267),(t28.col269),(t28.col273),(t28.col263)))) )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (t18.col190 >> t25.col253 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col259`=`x`.`col196`\n;\n\n\nselect  \t\n`t18`.`col196` as col196 \nfrom\n\t`test`.`t18` as `t18` ignore index (PRIMARY)\n\t natural left outer join `test`.`t1` as `t1` ignore index (PRIMARY,idx1)\n \t\n\t right outer join `test`.`t28` as `t28`  \non (!t18.col196 )\n \t\n\t left outer join `test`.`t25` as `t25` ignore index (idx212) \non (@var0 is not false )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n"
        packet_length = 1349
        net = 0x96f6668
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x96f63f0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x96f6668
        rc = false
        thd = 0x96f63f0
#17 0x00000000006b6753 in handle_one_connection (arg=0x96f63f0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x96f63f0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 23 (Thread 0x7f2ab128f700 (LWP 2380)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x9704dd0, mp=0x9704d60, abstime=0x7f2ab128cb90, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x9704dd0, mutex=0x9704d60, abstime=0x7f2ab128cb90, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2972240528, 
          m_cond = 0x9704d58, 
          m_mutex = 0x7f2ab128cab0, 
          m_thread = 0x9765af0, 
          m_timer_start = 139821337594608, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x9704d60 "", 
          m_src_line = 158354896, 
          m_wait = 0x9704c90
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x9704d60, owner=0x9704d58, abs_timeout=0x7f2ab128cb90, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0x0
        result = 32554
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x9704d60, mdl_request=0x7f2ab128cc50, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 787072600
        }
        ticket = 0x7f29c4126010
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x96ea350
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 970647800
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063ce89 in MDL_context::upgrade_shared_lock_to_exclusive (this=0x9704d60, mdl_ticket=0x7f29c40aa470, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1994
        mdl_xlock_request = {
          type = MDL_EXCLUSIVE, 
          duration = MDL_TRANSACTION, 
          next_in_list = 0x83765b, 
          prev_in_list = 0xc55792, 
          ticket = 0x0, 
          key = {
            m_length = 10, 
            m_db_name_length = 4, 
            m_ptr =               "\002test\000t21\000\000\000\222W\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200*\177\000\000\000\315(\261*\177\000\000x\312\000\304)\177\000\000\240\027\032\304)\177\000\000\320\314(\261\000\000\000\000h\321\000\304)\177\000\000\201\004", '\000' <repeats 14 times>, "`\315(\261*\177\000\000\205\"i\000\000\000\000\000x\312\000\304)\177\000\000\000J\221\000\000\000\000\000x\312\000\304)\177\000\000\240|\000\304)\177\000\000 \315(\261*\177\000\000i|\272\000\002\000\001\000\001\000\000\000\000\000\000\000\000J\221\000\000\000\000\000 \316(\261*\177\000\000\240|\000\304)\177\000\000P\315(\261*\177\000\000i|\272\000\002\000\001\000aH\305\000\000\000\000\000\300}\000\304)\177\000\000P\316(\261*\177\000\000\377\243\272\000\000\000\000\000\360\315(\261*\177\000\000\320N\305\000\000\000\000\000\b\000\000\000\060\000\000\000`\316(\261*\177\000\000\240\315(\261*\177\000\000\300\202a\302\062\000\000\000\001\000\000\000\000\000\000\000\300}\000\304)\177\000\000\330U\305\000\000\000\000\000\275\316\003\330)\177\000\000P\313\003\330)\177\000\000'\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000L\t\000\000\000\000\000\000\360\315(\261*\177\000\000\240|\000\304\000\000\001\000x\312\000\304)\177\000\000\000J\221\000\000\000\000\000\240}\000\304)\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        mdl_svp = {
          m_stmt_ticket = 0x7f29c41a1b60, 
          m_trans_ticket = 0x7f29c40aa470
        }
        __PRETTY_FUNCTION__ =           "bool MDL_context::upgrade_shared_lock_to_exclusive(MDL_ticket*, ulong)"
        is_new_ticket = false
        _db_stack_frame_ = {
          func = 0xc54eb0 "wait_while_table_is_used", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab128ce80
        }
#6  0x000000000068c185 in wait_while_table_is_used (thd=0x9704c90, table=0x7f29ac341810, 
    function=HA_EXTRA_FORCE_REOPEN) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2224
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab128cf90
        }
#7  0x00000000007796f4 in mysql_create_or_drop_trigger (thd=0x9704c90, tables=0x7f29c400ca78, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:489
        lock_upgrade_done = false
        mdl_ticket = 0x7f29c40aa470
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000c4007ca0, 
          query_tables_last = 0x7f2ab128cf10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139817358753184, 
            key_length = 139817358753216, 
            blength = 139821337595744, 
            records = 12230971, 
            flags = 2972241808, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29c4007dc0, 
            charset = 0x7f29c4007dc0
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab128cf60
          }, 
          sroutines_list_own_last = 0x7f29c4007da0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2972241872
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f29ac341810
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab128dc00
        }
#8  0x00000000006e56a9 in mysql_execute_command (thd=0x9704c90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x97068f8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab128dee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9706fe0
        first_table = 0x7f29c400ca78
        all_tables = 0x7f29c400ca78
        unit = 0x97069a8
        have_table_map_for_update = false
#9  0x00000000006e8823 in mysql_parse (thd=0x9704c90, 
    rawbuf=0x7f29c400c050 "create trigger `trg_t21_before_insert` before insert on `t21` for each row\nbegin\ndelete t16 from  (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 is not false )\n \t\n\t cross join `test`.`t26` as `t26`  \non (t16.col176 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt16 as t16 \nwhere t16.a16>x.col267\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 not regexp @var1 )\n \t\n\t cross join `test`.`t26` as `t26`  \non (@var0 is not true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col77`=`x`.`col267`\n;\n\n\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non ( substring(( ((t16.col182) in ((t16.col174),(t16.col177),(t16.col181),(t16.col182),(t16.col180)))) from ( timestamp((t16.col176),(t16.col182))) for ( @@global.max_tmp_tables)) - t16.a16 )\n \t\n\t cross join `test`.`t26` as `t26`  \non ( @@global.system_time_zone <=>  convert(( collation((t26.col254))) using gb2312) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", length=1153, parser_state=0x7f2ab128e610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97068f8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab128eb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#10 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9704c90, 
    packet=0x97083b1 "create trigger `trg_t21_before_insert` before insert on `t21` for each row\nbegin\ndelete t16 from  (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 is not false )\n \t\n\t cross join `test`.`t26` as `t26`  \non (t16.col176 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt16 as t16 \nwhere t16.a16>x.col267\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 not regexp @var1 )\n \t\n\t cross join `test`.`t26` as `t26`  \non (@var0 is not true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col77`=`x`.`col267`\n;\n\n\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non ( substring(( ((t16.col182) in ((t16.col174),(t16.col177),(t16.col181),(t16.col182),(t16.col180)))) from ( timestamp((t16.col176),(t16.col182))) for ( @@global.max_tmp_tables)) - t16.a16 )\n \t\n\t cross join `test`.`t26` as `t26`  \non ( @@global.system_time_zone <=>  convert(( collation((t26.col254))) using gb2312) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n", packet_length=1155)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c400c4d1 ""
        parser_state = {
          m_lip = {
            m_thd = 0x9704c90, 
            yylineno = 56, 
            yytoklen = 4, 
            yylval = 0x7f2ab128c680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c400c4d2 "", 
            m_tok_start = 0x7f29c400c4d2 "", 
            m_tok_end = 0x7f29c400c4d2 "", 
            m_end_of_query = 0x7f29c400c4d1 "", 
            m_tok_start_prev = 0x7f29c400c4d1 "", 
            m_buf = 0x7f29c400c050 "create trigger `trg_t21_before_insert` before insert on `t21` for each row\nbegin\ndelete t16 from  (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 is not false )\n \t\n\t cross join `test`.`t26` as `t26`  \non (t16.col176 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt16 as t16 \nwhere t16.a16>x.col267\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 not regexp @var1 )\n \t\n\t cross join `test`.`t26` as `t26`  \non (@var0 is not true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col77`=`x`.`col267`\n;\n\n\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non ( substring(( ((t16.col182) in ((t16.col174),(t16.col177),(t16.col181),(t16.col182),(t16.col180)))) from ( timestamp((t16.col176),(t16.col182))) for ( @@global.max_tmp_tables)) - t16.a16 )\n \t\n\t cross join `test`.`t26` as `t26`  \non ( @@global.system_time_zone <=>  convert(( collation((t26.col254))) using gb2312) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_buf_length = 1153, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c400c530 "create trigger `trg_t21_before_insert` before insert on `t21` for each row\nbegin\ndelete t16 from  (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 is not false )\n \t\n\t cross join `test`.`t26` as `t26`  \non (t16.col176 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt16 as t16 \nwhere t16.a16>x.col267\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 not regexp @var1 )\n \t\n\t cross join `test`.`t26` as `t26`  \non (@var0 is not true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col77`=`x`.`col267`\n;\n\n\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non ( substring(( ((t16.col182) in ((t16.col174),(t16.col177),(t16.col181),(t16.col182),(t16.col180)))) from ( timestamp((t16.col176),(t16.col182))) for ( @@global.max_tmp_tables)) - t16.a16 )\n \t\n\t cross join `test`.`t26` as `t26`  \non ( @@global.system_time_zone <=>  convert(( collation((t26.col254))) using gb2312) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_cpp_ptr = 0x7f29c400c9b1 "", 
            m_cpp_tok_start = 0x7f29c400c9b1 "", 
            m_cpp_tok_start_prev = 0x7f29c400c9b1 "", 
            m_cpp_tok_end = 0x7f29c400c9b1 "", 
            m_body_utf8 = 0x7f29c41fdf20 "\nbegin\ndelete t16 from  (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 is not false )\n \t\n\t cross join `test`.`t26` as `t26`  \non (t16.col176 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt16 as t16 \nwhere t16.a16>x.col267\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 not regexp @var1 )\n \t\n\t cross join `test`.`t26` as `t26`  \non (@var0 is not true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col77`=`x`.`col267`\n;\n\n\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non ( substring(( ((t16.col182) in ((t16.col174),(t16.col177),(t16.col181),(t16.col182),(t16.col180)))) from ( timestamp((t16.col176),(t16.col182))) for ( @@global.max_tmp_tables)) - t16.a16 )\n \t\n\t cross join `test`.`t26` as `t26`  \non ( @@global.system_time_zone <=>  convert(( collation((t26.col254))) using gb2312) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29c41fe357 "", 
            m_cpp_utf8_processed_ptr = 0x7f29c400c9b1 "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 127 '\177', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c400c9a5 "var0` ;\n\nend", 
            m_cpp_text_end = 0x7f29c400c9a9 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x9704f08
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab128ed00
        }
#11 0x00000000006dc1ad in do_command (thd=0x9704c90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97083b0 "\003create trigger `trg_t21_before_insert` before insert on `t21` for each row\nbegin\ndelete t16 from  (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 is not false )\n \t\n\t cross join `test`.`t26` as `t26`  \non (t16.col176 is true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt16 as t16 \nwhere t16.a16>x.col267\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non (t16.a16 not regexp @var1 )\n \t\n\t cross join `test`.`t26` as `t26`  \non (@var0 is not true )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t9` as `t9` set `t9`.`col77`=`x`.`col267`\n;\n\n\nselect   count(*) from\n\t`test`.`t16` as `t16` \n\t left join `test`.`t28` as `t28` use index (PRIMARY,idx255,PRIMARY) \non ( substring(( ((t16.col182) in ((t16.col174),(t16.col177),(t16.col181),(t16.col182),(t16.col180)))) from ( timestamp((t16.col176),(t16.col182))) for ( @@global.max_tmp_tables)) - t16.a16 )\n \t\n\t cross join `test`.`t26` as `t26`  \non ( @@global.system_time_zone <=>  convert(( collation((t26.col254))) using gb2312) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n"
        packet_length = 1156
        net = 0x9704f08
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#12 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9704c90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9704f08
        rc = false
        thd = 0x9704c90
#13 0x00000000006b6753 in handle_one_connection (arg=0x9704c90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9704c90
#14 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#15 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 22 (Thread 0x7f2ab124e700 (LWP 2381)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x970c620, mp=0x970c5b0, abstime=0x7f2ab124b160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x970c620, mutex=0x970c5b0, abstime=0x7f2ab124b160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2971971664, 
          m_cond = 0x91e646, 
          m_mutex = 0x970c5b0, 
          m_thread = 0x970c688, 
          m_timer_start = 139821337325696, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x970c5b0 "", 
          m_src_line = 158385696, 
          m_wait = 0x970c4e0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x970c5b0, owner=0x970c5a8, abs_timeout=0x7f2ab124b160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x970c5b0, mdl_request=0x7f29c01a9340, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29c01ede60
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331674005, 
          tv_nsec = 118247300
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x970c4e0, ot_ctx=0x7f2ab124ba10, mdl_request=0x7f29c01a9340, 
    flags=0, mdl_ticket=0x7f2ab124b840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab124ba10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29c0007dc0, 
          prev_in_list = 0x7f2ab124b320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\263$\261*\177\000\000p\262$\261*\177\000\000\000J\221\000\000\000\000\000\240}\000\300)\177\000\000\300}\000\300)\177\000\000\023\000\000\000\000\000\000\000 $\a\304)\177\000\000@$\a\304)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\240|\000\300\000\000\001\000\060#\a\304)\177\000\000\000J\221\000\000\000\000\000\240}\000\300)\177\000\000\240|\000\300)\177\000\000\360\262$\261*\177\000\000i|\272\000\000\000\000\000\240}\000\300)\177\000\000\300}\000\300)\177\000\000 \263$\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\300}\000\300\257\n\000\000\300}\000\300)\177\000\000\t\000\000\000\000\000\000\000`\263$\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\020,\a\304)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\270$\261*\177\000\000\220\263$\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, " $\a\304)\177\000\000\240|\000\300\000\000\001\000\260\263$\261*\177\000\000V\257\272\000\000\000\000\000\260\217\032\300)\177\000\000Z\237W\000\000\000\000\000\000\264$\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x970c4e0, table_list=0x7f29c01a8fb0, mem_root=0x7f2ab124b9d0, 
    ot_ctx=0x7f2ab124ba10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab124ba10
        key =           "test\000t6\000\000\000\000\000\030\000\000\000\240\270$\261*\177\000\000٢\272\000\000\000\000\000\360\270$\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000и$\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\272$\261*\177\000\000\340\266$\261*\177\000\000̪i\000\000\000\000\000\000\271$\261*\177\000\000и$\261*\177\000\000p\271$\261*\177\000\000\030\005i\000\000\000\000\000\240}\000\300)\177\000\000\300}\000\300\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\350, \202\032\300)\177\000\000\000J\221\000\000\000\000\000\300}\000\300)\177\000\000\240|\000\300)\177\000\000P\267$\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\300}\000\300)\177\000\000P\270$\261*\177\000\000\377\243\272\000\000\000\000\000H\341p\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\240|\000\300)\177\000\000\240\267$\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300}\000\300)\177\000\000\240\270$\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\270$\261*\177\000\000\360\267$\261*\177\000\000\240|\000\300\000\000\001\000\350\202\032\300)\177\000\000\300}"
        alias = 0x7f29c01a8f20 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab124b8f0
        }
        mdl_ticket = 0x7f29c0007da0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 3221257632
#7  0x000000000068fbe0 in open_and_process_table (thd=0x970c4e0, lex=0x970e148, tables=0x7f29c01a8fb0, 
    counter=0x7f2ab124bb34, flags=0, prelocking_strategy=0x7f2ab124bb80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab124ba10, new_frm_mem=0x7f2ab124b9d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab124ba40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x970c4e0, start=0x7f2ab124baf0, counter=0x7f2ab124bb34, flags=0, 
    prelocking_strategy=0x7f2ab124bb80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab124bb00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29c01a82f0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x970e1d0
        tables = 0x7f29c01a8fb0
        error = false
        new_frm_mem = {
          free = 0x7f29c007c7c0, 
          used = 0x0, 
          pre_alloc = 0x7f29c007c7c0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x970c4e0, tables=0x7f29c000d068, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab124bb80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 5
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab124cc00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x970c4e0, tables=0x7f29c000d068, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x970c4e0, all_tables=0x7f29c000d068)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x970e148
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x970c4e0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x970e148
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab124cee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x970e830
        first_table = 0x7f29c000d068
        all_tables = 0x7f29c000d068
        unit = 0x970e1f8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x970c4e0, 
    rawbuf=0x7f29c000c050 "select   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( (case (( ((t19.col199) not in ((t19.col199),(t19.col205),(t19.col202))))) when (( @@global.net_write_timeout)) then (( period_diff((t19.col200),(t19.col203))))when (( position((t19.col201) in (t19.col199)))) then (( @@global.slave_compressed_protocol)) else (( greatest((t19.col201),(t19.col203),(t19.col199),(t19.col199)))) end) | @var9 )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n interval((`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),((\nselect   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (t19.col199 is null )\n  \n\n \n \n \nlimit 1\n   ))) as col199 \nfrom\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( coalesce(( unhex((t19.col202))),( @@global.myisam_stats_method),( elt((t19.a19),(t19.col200),(t19.col199),(t19.col204))),( log((t19.col204),(t19.col202))),( yearweek((t19.col199),(t19.col199)))) |  ((t12.col127) or (t12.a12)) )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (~t19.col200 )\n  \n\n \n \n \nlimit 1", length=1742, parser_state=0x7f2ab124d610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x970e148
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab124db60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x970c4e0, 
    packet=0x970ff31 "\nselect   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( (case (( ((t19.col199) not in ((t19.col199),(t19.col205),(t19.col202))))) when (( @@global.net_write_timeout)) then (( period_diff((t19.col200),(t19.col203))))when (( position((t19.col201) in (t19.col199)))) then (( @@global.slave_compressed_protocol)) else (( greatest((t19.col201),(t19.col203),(t19.col199),(t19.col199)))) end) | @var9 )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n interval((`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),((\nselect   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (t19.col199 is null )\n  \n\n \n \n \nlimit 1\n   ))) as col199 \nfrom\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( coalesce(( unhex((t19.col202))),( @@global.myisam_stats_method),( elt((t19.a19),(t19.col200),(t19.col199),(t19.col204))),( log((t19.col204),(t19.col202))),( yearweek((t19.col199),(t19.col199)))) |  ((t12.col127) or (t12.a12)) )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (~t19.col200 )\n  \n\n \n \n \nlimit 1\n   ", packet_length=1747)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c000c71e ""
        parser_state = {
          m_lip = {
            m_thd = 0x970c4e0, 
            yylineno = 55, 
            yytoklen = 1, 
            yylval = 0x7f2ab124b680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c000c71f "", 
            m_tok_start = 0x7f29c000c71f "", 
            m_tok_end = 0x7f29c000c71f "", 
            m_end_of_query = 0x7f29c000c71e "", 
            m_tok_start_prev = 0x7f29c000c71e "", 
            m_buf = 0x7f29c000c050 "select   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( (case (( ((t19.col199) not in ((t19.col199),(t19.col205),(t19.col202))))) when (( @@global.net_write_timeout)) then (( period_diff((t19.col200),(t19.col203))))when (( position((t19.col201) in (t19.col199)))) then (( @@global.slave_compressed_protocol)) else (( greatest((t19.col201),(t19.col203),(t19.col199),(t19.col199)))) end) | @var9 )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n interval((`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),((\nselect   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (t19.col199 is null )\n  \n\n \n \n \nlimit 1\n   ))) as col199 \nfrom\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( coalesce(( unhex((t19.col202))),( @@global.myisam_stats_method),( elt((t19.a19),(t19.col200),(t19.col199),(t19.col204))),( log((t19.col204),(t19.col202))),( yearweek((t19.col199),(t19.col199)))) |  ((t12.col127) or (t12.a12)) )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (~t19.col200 )\n  \n\n \n \n \nlimit 1", 
            m_buf_length = 1742, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c000c780 "select   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( (case (( ((t19.col199) not in ((t19.col199),(t19.col205),(t19.col202))))) when (( @@global.net_write_timeout)) then (( period_diff((t19.col200),(t19.col203))))when (( position((t19.col201) in (t19.col199)))) then (( @@global.slave_compressed_protocol)) else (( greatest((t19.col201),(t19.col203),(t19.col199),(t19.col199)))) end) | @var9 )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n interval((`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),((\nselect   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (t19.col199 is null )\n  \n\n \n \n \nlimit 1\n   ))) as col199 \nfrom\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( coalesce(( unhex((t19.col202))),( @@global.myisam_stats_method),( elt((t19.a19),(t19.col200),(t19.col199),(t19.col204))),( log((t19.col204),(t19.col202))),( yearweek((t19.col199),(t19.col199)))) |  ((t12.col127) or (t12.a12)) )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (~t19.col200 )\n  \n\n \n \n \nlimit 1", 
            m_cpp_ptr = 0x7f29c000ce4e "", 
            m_cpp_tok_start = 0x7f29c000ce4e "", 
            m_cpp_tok_start_prev = 0x7f29c000ce4e "", 
            m_cpp_tok_end = 0x7f29c000ce4e "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c000ce4d "1", 
            m_cpp_text_end = 0x7f29c000ce4e "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x970c758
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab124dd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x970c4e0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x970ff30 "\003\nselect   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( (case (( ((t19.col199) not in ((t19.col199),(t19.col205),(t19.col202))))) when (( @@global.net_write_timeout)) then (( period_diff((t19.col200),(t19.col203))))when (( position((t19.col201) in (t19.col199)))) then (( @@global.slave_compressed_protocol)) else (( greatest((t19.col201),(t19.col203),(t19.col199),(t19.col199)))) end) | @var9 )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t\n interval((`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),(`t19`.`col199`),((\nselect   count(*) from\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (t19.col199 is null )\n  \n\n \n \n \nlimit 1\n   ))) as col199 \nfrom\n\t`test`.`t19` as `t19` \n\t right join `test`.`t12` as `t12`  \non ( coalesce(( unhex((t19.col202))),( @@global.myisam_stats_method),( elt((t19.a19),(t19.col200),(t19.col199),(t19.col204))),( log((t19.col204),(t19.col202))),( yearweek((t19.col199),(t19.col199)))) |  ((t12.col127) or (t12.a12)) )\n \t\n\t natural join `test`.`t29` as `t29` ignore index (idx272,idx260,idx265)\n \t\n\t natural right join `test`.`t17` as `t17` use index (idx112,idx114,idx120,idx119)\n \t\n\t right join `test`.`t6` as `t6` use index (idx24,idx25) \non (~t19.col200 )\n  \n\n \n \n \nlimit 1\n   "
        packet_length = 1748
        net = 0x970c758
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x970c4e0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x970c758
        rc = false
        thd = 0x970c4e0
#17 0x00000000006b6753 in handle_one_connection (arg=0x970c4e0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x970c4e0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 21 (Thread 0x7f2ab120d700 (LWP 2382)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97141a0, mp=0x9714130, abstime=0x7f2ab120ab90, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97141a0, mutex=0x9714130, abstime=0x7f2ab120ab90, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2971708048, 
          m_cond = 0x9714128, 
          m_mutex = 0x7f2ab120aab0, 
          m_thread = 0x96eeba0, 
          m_timer_start = 139821337062128, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x9714130 "", 
          m_src_line = 158417312, 
          m_wait = 0x9714060
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x9714130, owner=0x9714128, abs_timeout=0x7f2ab120ab90, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0x0
        result = 32554
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x9714130, mdl_request=0x7f2ab120ac50, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 787085900
        }
        ticket = 0x7f29cc26b870
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 957288700
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063ce89 in MDL_context::upgrade_shared_lock_to_exclusive (this=0x9714130, mdl_ticket=0x7f29cc26aef0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1994
        mdl_xlock_request = {
          type = MDL_EXCLUSIVE, 
          duration = MDL_TRANSACTION, 
          next_in_list = 0x83765b, 
          prev_in_list = 0xc55792, 
          ticket = 0x0, 
          key = {
            m_length = 9, 
            m_db_name_length = 4, 
            m_ptr =               "\002test\000t6\000\000\000\000\222W\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200*\177\000\000\000\255 \261*\177\000\000\220\264\003\314)\177\000\000p<\v\314)\177\000\000Ь \261\000\000\000\000\330\305\003\314)\177\000\000\265\003", '\000' <repeats 14 times>, "`\255 \261*\177\000\000\205\"i\000\000\000\000\000\220\264\003\314)\177\000\000\000J\221\000\000\000\000\000\220\264\003\314)\177\000\000\000\221\000\314)\177\000\000 \255 \261*\177\000\000i|\272\000\002\000\001\000\001\000\000\000\000\000\000\000\000J\221\000\000\000\000\000 \256 \261*\177\000\000\000\221\000\314)\177\000\000P\255 \261*\177\000\000i|\272\000\002\000\001\000aH\305\000\000\000\000\000 \222\000\314)\177\000\000P\256 \261*\177\000\000\377\243\272\000\000\000\000\000\360\255 \261*\177\000\000\320N\305\000\000\000\000\000\b\000\000\000\060\000\000\000`\256 \261*\177\000\000\240\255 \261*\177\000\000\300\202a\302\062\000\000\000\001\000\000\000\000\000\000\000 \222\000\314)\177\000\000\330U\305\000\000\000\000\000\035\202\006\254*\177\000\000\260~\006\254*\177\000\000'\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000N\t\000\000\000\000\000\000\360\255 \261*\177\000\000\000\221\000\314\000\000\001\000\220\264\003\314)\177\000\000\000J\221\000\000\000\000\000\000\222\000\314)\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        mdl_svp = {
          m_stmt_ticket = 0x7f29cc26ae50, 
          m_trans_ticket = 0x7f29cc26aef0
        }
        __PRETTY_FUNCTION__ =           "bool MDL_context::upgrade_shared_lock_to_exclusive(MDL_ticket*, ulong)"
        is_new_ticket = false
        _db_stack_frame_ = {
          func = 0xc54eb0 "wait_while_table_is_used", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab120ae80
        }
#6  0x000000000068c185 in wait_while_table_is_used (thd=0x9714060, table=0x7f29cc2aaa20, 
    function=HA_EXTRA_FORCE_REOPEN) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2224
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab120af90
        }
#7  0x00000000007796f4 in mysql_create_or_drop_trigger (thd=0x9714060, tables=0x7f29cc03b490, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:489
        lock_upgrade_done = false
        mdl_ticket = 0x7f29cc26aef0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000cc009100, 
          query_tables_last = 0x7f2ab120af10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139817492976128, 
            key_length = 139817492976160, 
            blength = 139821337063264, 
            records = 12230971, 
            flags = 2971709328, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29cc009220, 
            charset = 0x7f29cc009220
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab120af60
          }, 
          sroutines_list_own_last = 0x7f29cc009200, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2971709392
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f29cc2aaa20
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab120bc00
        }
#8  0x00000000006e56a9 in mysql_execute_command (thd=0x9714060)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x9715cc8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab120bee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97163b0
        first_table = 0x7f29cc03b490
        all_tables = 0x7f29cc03b490
        unit = 0x9715d78
        have_table_map_for_update = false
#9  0x00000000006e8823 in mysql_parse (thd=0x9714060, 
    rawbuf=0x7f29cc03ac00 "create trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", length=949, parser_state=0x7f2ab120c610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x9715cc8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab120cb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#10 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9714060, 
    packet=0x9717ab1 "create trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n", packet_length=951)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29cc03afb5 ""
        parser_state = {
          m_lip = {
            m_thd = 0x9714060, 
            yylineno = 47, 
            yytoklen = 4, 
            yylval = 0x7f2ab120a680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29cc03afb6 "col281` = 21954,\n`col293` = \"<s ni='j'  hn='i' ><fkb n='k' ><fhu ta='cjq' >nc</'i'></fkb></s>\",\n`ccreate trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_tok_start = 0x7f29cc03afb6 "col281` = 21954,\n`col293` = \"<s ni='j'  hn='i' ><fkb n='k' ><fhu ta='cjq' >nc</'i'></fkb></s>\",\n`ccreate trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_tok_end = 0x7f29cc03afb6 "col281` = 21954,\n`col293` = \"<s ni='j'  hn='i' ><fkb n='k' ><fhu ta='cjq' >nc</'i'></fkb></s>\",\n`ccreate trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_end_of_query = 0x7f29cc03afb5 "", 
            m_tok_start_prev = 0x7f29cc03afb5 "", 
            m_buf = 0x7f29cc03ac00 "create trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_buf_length = 949, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29cc03b018 "create trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_cpp_ptr = 0x7f29cc03b3cd "", 
            m_cpp_tok_start = 0x7f29cc03b3cd "", 
            m_cpp_tok_start_prev = 0x7f29cc03b3cd "", 
            m_cpp_tok_end = 0x7f29cc03b3cd "", 
            m_body_utf8 = 0x7f29cc343310 "\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29cc34367d "", 
            m_cpp_utf8_processed_ptr = 0x7f29cc03b3cd "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29cc03b3c1 "var0` ;\n\nend", 
            m_cpp_text_end = 0x7f29cc03b3c5 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97142d8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab120cd00
        }
#11 0x00000000006dc1ad in do_command (thd=0x9714060) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x9717ab0 "\003create trigger `trg_t6_before_insert` before insert on `t6` for each row\nbegin\ndelete t22 from  (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var7 sounds like @var3 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt22 as t22 \nwhere t22.a22>x.a7\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non (@var0 < t21.col223 )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t10` as `t10` set `t10`.`col81`=`x`.`a7`\n;\n\n\nselect   count(*) from\n\t`test`.`t7` as `t7` force index (idx31,PRIMARY)\n\t left outer join `test`.`t21` as `t21`  \non ( updatexml(( ((t7.col58) div (t7.col57))),( (case ((t7.col56)) when ((t7.col57)) then ((t7.a7))when ((t7.col56)) then ((t7.col58)) else ((t7.col56)) end)),( ((t7.col56) not in ((t7.a7))))) regexp  insert((t21.col223),(t21.col224),(t21.col222),(t21.col222)) )\n  \n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n"
        packet_length = 952
        net = 0x97142d8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#12 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9714060)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97142d8
        rc = false
        thd = 0x9714060
#13 0x00000000006b6753 in handle_one_connection (arg=0x9714060)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9714060
#14 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#15 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 20 (Thread 0x7f2ab11cc700 (LWP 2384)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x971bd20, mp=0x971bcb0, abstime=0x7f2ab11c9b90, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x971bd20, mutex=0x971bcb0, abstime=0x7f2ab11c9b90, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2971441808, 
          m_cond = 0x971bca8, 
          m_mutex = 0x7f2ab11c9ab0, 
          m_thread = 0x96a9420, 
          m_timer_start = 139821336795888, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x971bcb0 "", 
          m_src_line = 158448928, 
          m_wait = 0x971bbe0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x971bcb0, owner=0x971bca8, abs_timeout=0x7f2ab11c9b90, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0x0
        result = 32554
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x971bcb0, mdl_request=0x7f2ab11c9c50, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 787098000
        }
        ticket = 0x7f29c8150ce0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29b40ab8d0
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 957035000
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063ce89 in MDL_context::upgrade_shared_lock_to_exclusive (this=0x971bcb0, mdl_ticket=0x7f29c81973b0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1994
        mdl_xlock_request = {
          type = MDL_EXCLUSIVE, 
          duration = MDL_TRANSACTION, 
          next_in_list = 0x83765b, 
          prev_in_list = 0xc55792, 
          ticket = 0x0, 
          key = {
            m_length = 10, 
            m_db_name_length = 4, 
            m_ptr =               "\002test\000t28\000\000\000\222W\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200*\177\000\000\000\235\034\261*\177\000\000\340\275\003\310)\177\000\000\320\025(\310)\177\000\000М\034\261\000\000\000\000\320\304\003\310)\177\000\000]\b", '\000' <repeats 14 times>, "`\235\034\261*\177\000\000\205\"i\000\000\000\000\000\340\275\003\310)\177\000\000\000J\221\000\000\000\000\000\340\275\003\310)\177\000\000\360\202\000\310)\177\000\000 \235\034\261*\177\000\000i|\272\000\002\000\001\000\001\000\000\000\000\000\000\000\000J\221\000\000\000\000\000 \236\034\261*\177\000\000\360\202\000\310)\177\000\000P\235\034\261*\177\000\000i|\272\000\002\000\001\000aH\305\000\000\000\000\000\020\204\000\310)\177\000\000P\236\034\261*\177\000\000\377\243\272\000\000\000\000\000\360\235\034\261*\177\000\000\320N\305\000\000\000\000\000\b\000\000\000\060\000\000\000`\236\034\261*\177\000\000\240\235\034\261*\177\000\000\300\202a\302\062\000\000\000\001\000\000\000\000\000\000\000\020\204\000\310)\177\000\000\330U\305\000\000\000\000\000]\274\b\270)\177\000\000\360\270\b\270)\177\000\000'\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000P\t\000\000\000\000\000\000\360\235\034\261*\177\000\000\360\202\000\310\000\000\001\000\340\275\003\310)\177\000\000\000J\221\000\000\000\000\000\360\203\000\310)\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        mdl_svp = {
          m_stmt_ticket = 0x7f29c8145d20, 
          m_trans_ticket = 0x7f29c81973b0
        }
        __PRETTY_FUNCTION__ =           "bool MDL_context::upgrade_shared_lock_to_exclusive(MDL_ticket*, ulong)"
        is_new_ticket = false
        _db_stack_frame_ = {
          func = 0xc54eb0 "wait_while_table_is_used", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab11c9e80
        }
#6  0x000000000068c185 in wait_while_table_is_used (thd=0x971bbe0, table=0x7f29c004b990, 
    function=HA_EXTRA_FORCE_REOPEN) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2224
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab11c9f90
        }
#7  0x00000000007796f4 in mysql_create_or_drop_trigger (thd=0x971bbe0, tables=0x7f29c803bde0, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:489
        lock_upgrade_done = false
        mdl_ticket = 0x7f29c81973b0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000c80082f0, 
          query_tables_last = 0x7f2ab11c9f10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139817425863664, 
            key_length = 139817425863696, 
            blength = 139821336797024, 
            records = 12230971, 
            flags = 2971443088, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29c8008410, 
            charset = 0x7f29c8008410
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab11c9f60
          }, 
          sroutines_list_own_last = 0x7f29c80083f0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2971443152
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f29c004b990
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab11cac00
        }
#8  0x00000000006e56a9 in mysql_execute_command (thd=0x971bbe0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x971d848
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab11caee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x971df30
        first_table = 0x7f29c803bde0
        all_tables = 0x7f29c803bde0
        unit = 0x971d8f8
        have_table_map_for_update = false
#9  0x00000000006e8823 in mysql_parse (thd=0x971bbe0, 
    rawbuf=0x7f29c803ac00 "create trigger `trg_t28_before_update` before update on `t28` for each row\nbegin\ndelete t17 from  (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( convert(( release_lock((t15.col169))),binary) xor  (case (( ((t23.a23) in ((t23.col234),(t23.a23),(t23.col235),(t23.col234))))) when (( @@global.bulk_insert_buffer_size)) then (( maketime((t23.col234),(t23.col234),(t23.col235))))when (( elt((t23.col234),(t23.col234),(t23.col235),(t23.col235),(t23.col235)))) then (( period_diff((t23.a23),(t23.col234)))) else (( greatest((t23.col235),(t23.col235),(t23.col235),(t23.col235),(t23.a23)))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\nt17 as t17 \nwhere t17.a17>x.col169\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( (( char((t15.col168) using eucjpms)) in (( date_sub((t15.col159),interval (t15.a15) month)),( coalesce((t15.col168),(t15.col171),(t15.col158),(t15.col168))),( greatest((t15.col168),(t15.col171),(t15.col162),(t15.a15),(t15.col167))),( @@global.local_infile),( elt((t15.col161),(t15.col161),(t15.col159),(t15.a15),(t15.col160),(t15.col163))))) !=  (case (( (case ((t23.a23)) when ((t23.a23)) then ((t23.col235)) else ((t23.a23)) end))) when (( ((t23.a23) in ((t23.a23),(t23.col234),(t23.col235),(t23.a23),(t23.col235))))) then (( convert((t23.a23) using cp1257))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t24` as `t24` set `t24`.`col244`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( power(( ((t15.col158) between (t15.col172) and (t15.col168))),( addtime((t15.col159),(t15.col165)))) = @var7 )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", length=2141, parser_state=0x7f2ab11cb610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x971d848
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab11cbb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#10 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x971bbe0, 
    packet=0x971f631 "create trigger `trg_t28_before_update` before update on `t28` for each row\nbegin\ndelete t17 from  (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( convert(( release_lock((t15.col169))),binary) xor  (case (( ((t23.a23) in ((t23.col234),(t23.a23),(t23.col235),(t23.col234))))) when (( @@global.bulk_insert_buffer_size)) then (( maketime((t23.col234),(t23.col234),(t23.col235))))when (( elt((t23.col234),(t23.col234),(t23.col235),(t23.col235),(t23.col235)))) then (( period_diff((t23.a23),(t23.col234)))) else (( greatest((t23.col235),(t23.col235),(t23.col235),(t23.col235),(t23.a23)))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\nt17 as t17 \nwhere t17.a17>x.col169\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( (( char((t15.col168) using eucjpms)) in (( date_sub((t15.col159),interval (t15.a15) month)),( coalesce((t15.col168),(t15.col171),(t15.col158),(t15.col168))),( greatest((t15.col168),(t15.col171),(t15.col162),(t15.a15),(t15.col167))),( @@global.local_infile),( elt((t15.col161),(t15.col161),(t15.col159),(t15.a15),(t15.col160),(t15.col163))))) !=  (case (( (case ((t23.a23)) when ((t23.a23)) then ((t23.col235)) else ((t23.a23)) end))) when (( ((t23.a23) in ((t23.a23),(t23.col234),(t23.col235),(t23.a23),(t23.col235))))) then (( convert((t23.a23) using cp1257))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t24` as `t24` set `t24`.`col244`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( power(( ((t15.col158) between (t15.col172) and (t15.col168))),( addtime((t15.col159),(t15.col165)))) = @var7 )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n", packet_length=2143)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c803b45d ""
        parser_state = {
          m_lip = {
            m_thd = 0x971bbe0, 
            yylineno = 53, 
            yytoklen = 4, 
            yylval = 0x7f2ab11c9680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c803b45e "", 
            m_tok_start = 0x7f29c803b45e "", 
            m_tok_end = 0x7f29c803b45e "", 
            m_end_of_query = 0x7f29c803b45d "", 
            m_tok_start_prev = 0x7f29c803b45d "", 
            m_buf = 0x7f29c803ac00 "create trigger `trg_t28_before_update` before update on `t28` for each row\nbegin\ndelete t17 from  (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( convert(( release_lock((t15.col169))),binary) xor  (case (( ((t23.a23) in ((t23.col234),(t23.a23),(t23.col235),(t23.col234))))) when (( @@global.bulk_insert_buffer_size)) then (( maketime((t23.col234),(t23.col234),(t23.col235))))when (( elt((t23.col234),(t23.col234),(t23.col235),(t23.col235),(t23.col235)))) then (( period_diff((t23.a23),(t23.col234)))) else (( greatest((t23.col235),(t23.col235),(t23.col235),(t23.col235),(t23.a23)))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\nt17 as t17 \nwhere t17.a17>x.col169\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( (( char((t15.col168) using eucjpms)) in (( date_sub((t15.col159),interval (t15.a15) month)),( coalesce((t15.col168),(t15.col171),(t15.col158),(t15.col168))),( greatest((t15.col168),(t15.col171),(t15.col162),(t15.a15),(t15.col167))),( @@global.local_infile),( elt((t15.col161),(t15.col161),(t15.col159),(t15.a15),(t15.col160),(t15.col163))))) !=  (case (( (case ((t23.a23)) when ((t23.a23)) then ((t23.col235)) else ((t23.a23)) end))) when (( ((t23.a23) in ((t23.a23),(t23.col234),(t23.col235),(t23.a23),(t23.col235))))) then (( convert((t23.a23) using cp1257))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t24` as `t24` set `t24`.`col244`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( power(( ((t15.col158) between (t15.col172) and (t15.col168))),( addtime((t15.col159),(t15.col165)))) = @var7 )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_buf_length = 2141, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c803b4c0 "create trigger `trg_t28_before_update` before update on `t28` for each row\nbegin\ndelete t17 from  (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( convert(( release_lock((t15.col169))),binary) xor  (case (( ((t23.a23) in ((t23.col234),(t23.a23),(t23.col235),(t23.col234))))) when (( @@global.bulk_insert_buffer_size)) then (( maketime((t23.col234),(t23.col234),(t23.col235))))when (( elt((t23.col234),(t23.col234),(t23.col235),(t23.col235),(t23.col235)))) then (( period_diff((t23.a23),(t23.col234)))) else (( greatest((t23.col235),(t23.col235),(t23.col235),(t23.col235),(t23.a23)))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\nt17 as t17 \nwhere t17.a17>x.col169\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( (( char((t15.col168) using eucjpms)) in (( date_sub((t15.col159),interval (t15.a15) month)),( coalesce((t15.col168),(t15.col171),(t15.col158),(t15.col168))),( greatest((t15.col168),(t15.col171),(t15.col162),(t15.a15),(t15.col167))),( @@global.local_infile),( elt((t15.col161),(t15.col161),(t15.col159),(t15.a15),(t15.col160),(t15.col163))))) !=  (case (( (case ((t23.a23)) when ((t23.a23)) then ((t23.col235)) else ((t23.a23)) end))) when (( ((t23.a23) in ((t23.a23),(t23.col234),(t23.col235),(t23.a23),(t23.col235))))) then (( convert((t23.a23) using cp1257))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t24` as `t24` set `t24`.`col244`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( power(( ((t15.col158) between (t15.col172) and (t15.col168))),( addtime((t15.col159),(t15.col165)))) = @var7 )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_cpp_ptr = 0x7f29c803bd1d "", 
            m_cpp_tok_start = 0x7f29c803bd1d "", 
            m_cpp_tok_start_prev = 0x7f29c803bd1d "", 
            m_cpp_tok_end = 0x7f29c803bd1d "", 
            m_body_utf8 = 0x7f29c81939b0 "\nbegin\ndelete t17 from  (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( convert(( release_lock((t15.col169))),binary) xor  (case (( ((t23.a23) in ((t23.col234),(t23.a23),(t23.col235),(t23.col234))))) when (( @@global.bulk_insert_buffer_size)) then (( maketime((t23.col234),(t23.col234),(t23.col235))))when (( elt((t23.col234),(t23.col234),(t23.col235),(t23.col235),(t23.col235)))) then (( period_diff((t23.a23),(t23.col234)))) else (( greatest((t23.col235),(t23.col235),(t23.col235),(t23.col235),(t23.a23)))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\nt17 as t17 \nwhere t17.a17>x.col169\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( (( char((t15.col168) using eucjpms)) in (( date_sub((t15.col159),interval (t15.a15) month)),( coalesce((t15.col168),(t15.col171),(t15.col158),(t15.col168))),( greatest((t15.col168),(t15.col171),(t15.col162),(t15.a15),(t15.col167))),( @@global.local_infile),( elt((t15.col161),(t15.col161),(t15.col159),(t15.a15),(t15.col160),(t15.col163))))) !=  (case (( (case ((t23.a23)) when ((t23.a23)) then ((t23.col235)) else ((t23.a23)) end))) when (( ((t23.a23) in ((t23.a23),(t23.col234),(t23.col235),(t23.a23),(t23.col235))))) then (( convert((t23.a23) using cp1257))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t24` as `t24` set `t24`.`col244`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( power(( ((t15.col158) between (t15.col172) and (t15.col168))),( addtime((t15.col159),(t15.col165)))) = @var7 )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29c81941c3 "", 
            m_cpp_utf8_processed_ptr = 0x7f29c803bd1d "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c803bd11 "var0` ;\n\nend", 
            m_cpp_text_end = 0x7f29c803bd15 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x971be58
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab11cbd00
        }
#11 0x00000000006dc1ad in do_command (thd=0x971bbe0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x971f630 "\003create trigger `trg_t28_before_update` before update on `t28` for each row\nbegin\ndelete t17 from  (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( convert(( release_lock((t15.col169))),binary) xor  (case (( ((t23.a23) in ((t23.col234),(t23.a23),(t23.col235),(t23.col234))))) when (( @@global.bulk_insert_buffer_size)) then (( maketime((t23.col234),(t23.col234),(t23.col235))))when (( elt((t23.col234),(t23.col234),(t23.col235),(t23.col235),(t23.col235)))) then (( period_diff((t23.a23),(t23.col234)))) else (( greatest((t23.col235),(t23.col235),(t23.col235),(t23.col235),(t23.a23)))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\nt17 as t17 \nwhere t17.a17>x.col169\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( (( char((t15.col168) using eucjpms)) in (( date_sub((t15.col159),interval (t15.a15) month)),( coalesce((t15.col168),(t15.col171),(t15.col158),(t15.col168))),( greatest((t15.col168),(t15.col171),(t15.col162),(t15.a15),(t15.col167))),( @@global.local_infile),( elt((t15.col161),(t15.col161),(t15.col159),(t15.a15),(t15.col160),(t15.col163))))) !=  (case (( (case ((t23.a23)) when ((t23.a23)) then ((t23.col235)) else ((t23.a23)) end))) when (( ((t23.a23) in ((t23.a23),(t23.col234),(t23.col235),(t23.a23),(t23.col235))))) then (( convert((t23.a23) using cp1257))) end) )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t24` as `t24` set `t24`.`col244`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t inner join `test`.`t23` as `t23`  \non ( power(( ((t15.col158) between (t15.col172) and (t15.col168))),( addtime((t15.col159),(t15.col165)))) = @var7 )\n  where\nt15.col168 ^ t15.col160 xor \n row(t23.col235 ,t15.col164  collate utf8_esperanto_ci )< row( t15.col160 , t15.col170  collate latin1_german2_ci )\n\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n"
        packet_length = 2144
        net = 0x971be58
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#12 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x971bbe0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x971be58
        rc = false
        thd = 0x971bbe0
#13 0x00000000006b6753 in handle_one_connection (arg=0x971bbe0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x971bbe0
#14 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#15 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 19 (Thread 0x7f2ab118b700 (LWP 2385)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97238a0, mp=0x9723830, abstime=0x7f2ab1188160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97238a0, mutex=0x9723830, abstime=0x7f2ab1188160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2971172944, 
          m_cond = 0x91e646, 
          m_mutex = 0x9723830, 
          m_thread = 0x9723908, 
          m_timer_start = 139821336526976, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x9723830 "", 
          m_src_line = 158480544, 
          m_wait = 0x9723760
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x9723830, owner=0x9723828, abs_timeout=0x7f2ab1188160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x9723830, mdl_request=0x7f29d41c3c20, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29d41a9dd0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 957768900
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x9723760, ot_ctx=0x7f2ab1188a10, mdl_request=0x7f29d41c3c20, 
    flags=0, mdl_ticket=0x7f2ab1188840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1188a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29d4049a80, 
          prev_in_list = 0x7f2ab1188320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\203\030\261*\177\000\000p\202\030\261*\177\000\000\000J\221\000\000\000\000\000\220j\032\324)\177\000\000\200\232\004\324)\177\000\000\020\000\000\000\000\000\000\000P\356\024\310)\177\000\000p\356\024\310)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\220i\032\324\000\000\001\000`\355\024\310)\177\000\000\000J\221\000\000\000\000\000\220j\032\324)\177\000\000\220i\032\324)\177\000\000\360\202\030\261*\177\000\000i|\272\000\000\000\000\000\220j\032\324)\177\000\000\200\232\004\324)\177\000\000 \203\030\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\200\232\004\324\257\n\000\000\200\232\004\324)\177\000\000\t\000\000\000\000\000\000\000`\203\030\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\340\361\025\310)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\210\030\261*\177\000\000\220\203\030\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, "P\356\024\310)\177\000\000\220i\032\324\000\000\001\000\260\203\030\261*\177\000\000V\257\272\000\000\000\000\000\220\070\034\324)\177\000\000Z\237W\000\000\000\000\000\000\204\030\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x9723760, table_list=0x7f29d41c3890, mem_root=0x7f2ab11889d0, 
    ot_ctx=0x7f2ab1188a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1188a10
        key =           "test\000t6\000\000\000\000\000\033\000\000\000\240\210\030\261*\177\000\000٢\272\000\000\000\000\000\360\210\030\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000Ј\030\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\212\030\261*\177\000\000\340\206\030\261*\177\000\000̪i", '\000' <repeats 13 times>, "Ј\030\261*\177\000\000p\211\030\261*\177\000\000\030\005i\000\000\000\000\000^\265\304\000\000\000\000\000\362\r\005\264\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\250, \062\034\324)\177\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\220i\032\324)\177\000\000P\207\030\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\200\232\004\324)\177\000\000P\210\030\261*\177\000\000\377\243\272\000\000\000\000\000\310Sr\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\220i\032\324)\177\000\000\240\207\030\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\200\232\004\324)\177\000\000\240\210\030\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\210\030\261*\177\000\000\360\207\030\261*\177\000\000\220i\032\324\000\000\001\000\250\062\034\324)\177\000\000\200\232"
        alias = 0x7f29d41c3838 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab11888f0
        }
        mdl_ticket = 0x7f29d41a6a90
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 3558501008
#7  0x000000000068fbe0 in open_and_process_table (thd=0x9723760, lex=0x97253c8, tables=0x7f29d41c3890, 
    counter=0x7f2ab1188b34, flags=0, prelocking_strategy=0x7f2ab1188b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1188a10, new_frm_mem=0x7f2ab11889d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1188a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x9723760, start=0x7f2ab1188af0, counter=0x7f2ab1188b34, flags=0, 
    prelocking_strategy=0x7f2ab1188b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1188b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29d41c32b0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x9725450
        tables = 0x7f29d41c3890
        error = false
        new_frm_mem = {
          free = 0x7f29d4417bd0, 
          used = 0x0, 
          pre_alloc = 0x7f29d4417bd0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x9723760, tables=0x7f29d41c32a8, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab1188b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 2
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1189c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x9723760, tables=0x7f29d41c32a8, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x9723760, all_tables=0x7f29d41c32a8)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x97253c8
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x9723760)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x97253c8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1189ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9725ab0
        first_table = 0x7f29d41c32a8
        all_tables = 0x7f29d41c32a8
        unit = 0x9725478
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x9723760, 
    rawbuf=0x7f29d41c2a40 "explain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241", length=616, parser_state=0x7f2ab118a610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97253c8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab118ab60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9723760, 
    packet=0x97271b1 "explain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241 \n\n \n \n \n\n   ", packet_length=629)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29d41c2ca8 ""
        parser_state = {
          m_lip = {
            m_thd = 0x9723760, 
            yylineno = 21, 
            yytoklen = 6, 
            yylval = 0x7f2ab1188680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29d41c2ca9 "en ((t10.col87))when ((t10.col85)) then ((t10.col82)) else ((t10.a10)) end) )\n \t\n\t natural leftexplain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241", 
            m_tok_start = 0x7f29d41c2ca9 "en ((t10.col87))when ((t10.col85)) then ((t10.col82)) else ((t10.a10)) end) )\n \t\n\t natural leftexplain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241", 
            m_tok_end = 0x7f29d41c2ca9 "en ((t10.col87))when ((t10.col85)) then ((t10.col82)) else ((t10.a10)) end) )\n \t\n\t natural leftexplain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241", 
            m_end_of_query = 0x7f29d41c2ca8 "", 
            m_tok_start_prev = 0x7f29d41c2ca8 "", 
            m_buf = 0x7f29d41c2a40 "explain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241", 
            m_buf_length = 616, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29d41c2d08 "explain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241", 
            m_cpp_ptr = 0x7f29d41c2f70 "", 
            m_cpp_tok_start = 0x7f29d41c2f70 "", 
            m_cpp_tok_start_prev = 0x7f29d41c2f70 "", 
            m_cpp_tok_end = 0x7f29d41c2f70 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0x7f29d444d71b "", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29d41c2f6a "col241", 
            m_cpp_text_end = 0x7f29d41c2f70 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97239d8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab118ad00
        }
#15 0x00000000006dc1ad in do_command (thd=0x9723760) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97271b0 "\003explain \nselect  \t col283,col119 from\n\t`test`.`t22` as `t22` ignore index (PRIMARY,idx188,idx189,idx181)\n\t left join `test`.`t6` as `t6` force index (PRIMARY) \non (@var5 = t6.col54 )\n \t\n\t natural left outer join `test`.`t29` as `t29` force index (PRIMARY,idx272,PRIMARY)\n \t\n\t natural join `test`.`t24` as `t24` use index (idx195,idx209)\n \t\n\t inner join `test`.`t12` as `t12`  \non ( '1'  )\n \t\n\t left join `test`.`t13` as `t13`  \non (t22.a22 <=> t13.col140 )\n \t\n\t inner join `test`.`t26` as `t26` force index (PRIMARY) \non (@var1 is unknown )\n  where\nt24.col244 & '2011-10-07 21:33:54' and not \nt13.col140 | t24.col241 \n\n \n \n \n\n   "
        packet_length = 630
        net = 0x97239d8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9723760)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97239d8
        rc = false
        thd = 0x9723760
#17 0x00000000006b6753 in handle_one_connection (arg=0x9723760)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9723760
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 18 (Thread 0x7f2ab114a700 (LWP 2387)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x975b180, mp=0x975b110, abstime=0x7f2ab1147250, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x975b180, mutex=0x975b110, abstime=0x7f2ab1147250, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2970906944, 
          m_cond = 0x91e646, 
          m_mutex = 0x975b110, 
          m_thread = 0x975b1e8, 
          m_timer_start = 139821336260976, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x975b110 "", 
          m_src_line = 158708096, 
          m_wait = 0x975b040
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x975b110, owner=0x975b108, abs_timeout=0x7f2ab1147250, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x975b110, mdl_request=0x7f29d00054f0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29d0004b50
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29b4058770
        abs_timeout = {
          tv_sec = 1331672729, 
          tv_nsec = 223782600
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x975b040, ot_ctx=0x7f2ab1147b00, mdl_request=0x7f29d00054f0, 
    flags=0, mdl_ticket=0x7f2ab1147930) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1147b00, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 2970907440, 
          duration = 32554, 
          next_in_list = 0x258d0000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000p\n\000\320)\177\000\000\220\n\000\320\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000\330K\000\320)\177\000\000\030\001.\003\000\000\000\000\240s\024\261*\177\000\000ĖV\r\000\000\000\000\240s\024\261*\177\000\000\314\345\221\000\000\000\000\000\310K\000\320)\177\000\000\300\261u\t\000\000\000\000\320s\024\261*\177\000\000\332\354c\000\000\000\000\000\300K\000\320)\177\000\000\300\261u\t\000\000\000\000ĖV\r\000\000\000\000ĖV\r\000\000\000\000\060t\024\261*\177\000\000\336\300c\000\000\000\000\000 t\024\261*\177\000\000\230t\024\261*\177\000\000@u\024\261*\177\000\000\020\261u\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\300K\000\320)\177\000\000`u\024\261*\177\000\000\031\203~M\000\000\000\000ĖV\r\000\000\000\000\360t\024\261*\177\000\000\204\305c\000\000\000\000\000\300u\024\261*\177\000\000\000\300h\313t\002\034\000\036&\307\000\000\000\000\000\200\063\341\001\000\000\000\000@u\024\261*\177\000\000\020\261u\t\000\000\000\000\n\000\000\200\000\000\000\000%\340c\000\000\000\000\000\231\266_O\000\000\000\000ĖV\r\000\000\000\000`Q\000\320\000\000\000\000`u\024\261*\177\000\000\360t\024\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x975b040, table_list=0x7f29d0005160, mem_root=0x7f2ab1147ac0, 
    ot_ctx=0x7f2ab1147b00) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1147b00
        key =           "test\000t16\000\000\000\000\000\034\000\000\000\n\000\320)\177\000\000\a\000\000\000\000\000\000\000\260w\024\261*\177\000\000R>\217", '\000' <repeats 13 times>"\300, y\024\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000\060{\024\261*\177\000\000\320w\024\261*\177\000\000̪i\000\000\000\000\000\360y\024\261*\177\000\000\300y\024\261*\177\000\000`z\024\261*\177\000\000\030\005i\000\000\000\000\000w\023\320", '\000' <repeats 13 times>"\200, \063\341\001", '\000' <repeats 12 times>, "`Q\000\320)\177\000\000@\260u\t\000\000\000\000p\n\000\320)\177\000\000\220\n\000\320)\177\000\000Pz\024\261*\177\000\000٢\272\000\000\000\000\000pz\024\261*\177\000\000\030^\000\320\360\000\000\000\025]\000\320)\177\000\000hS\273\000\000\000\000\000\250\314u\t\000\000\000\000\000J\221\000\000\000\000\000\006\323\005\274)\177\000\000p\t\000\320)\177\000\000\220x\024\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\220\n\000\320)\177\000\000\220y\024\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\240y\024\261*\177\000\000\340x\024\261*\177\000\000p\t\000\320)\177\000\000\360x\024\261*\177\000\000\220\n"
        alias = 0x7f29d0005158 "t16"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab11479e0
        }
        mdl_ticket = 0x7f29d0000a70
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3489663600
#7  0x000000000068fbe0 in open_and_process_table (thd=0x975b040, lex=0x975cca8, tables=0x7f29d0005160, 
    counter=0x7f2ab1147f78, flags=0, prelocking_strategy=0x7f2ab1147be0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1147b00, new_frm_mem=0x7f2ab1147ac0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1147b30
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x975b040, start=0x7f2ab1147c50, counter=0x7f2ab1147f78, flags=0, 
    prelocking_strategy=0x7f2ab1147be0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc77529 "mysql_update", 
          file = 0xc774b0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1147f10
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1147c50
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x975cd30
        tables = 0x7f29d0005160
        error = false
        new_frm_mem = {
          free = 0x7f29d00b0150, 
          used = 0x0, 
          pre_alloc = 0x7f29d00b0150, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006c155d in open_tables (thd=0x975b040, tables=0x7f2ab1147c50, counter=0x7f2ab1147f78, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:461
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#10 0x0000000000783324 in mysql_update (thd=0x975b040, table_list=0x7f29d0005160, fields=..., values=..., 
    conds=0x7f29d00b7cb8, order_num=0, order=0x0, limit=1, handle_duplicates=DUP_ERROR, ignore=true, 
    found_return=0x7f2ab1148ca8, updated_return=0x7f2ab1148ca0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc:284
        safe_update = false
        used_index = 0
        want_privilege = 0
        __FUNCTION__ =           "mysql_update"
        transactional_table = false
        will_batch = false
        reverse = false
        table_count = 1
        id = 7235753
        used_key_is_modified = false
        select_lex = 0x975d390
        res = -1324056592
        dup_key_found = 2970910672
        found = 139821336264720
        old_covering_keys = {
          map = 0
        }
        table = 0x0
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1148c00
        }
        loc_error = 158715224
        need_sort = true
        updated = 7157794
        select = 0x7f29d00b7e38
        info = {
          table = 0x7f2ab1147e80, 
          file = 0x6800fe, 
          forms = 0x7f29d0000a90, 
          unlock_row = 0x5, 
          read_record = 0x7f2ab1147f20, 
          thd = 0x6e6d5d, 
          select = 0x0, 
          cache_records = 3489682392, 
          ref_length = 32553, 
          struct_length = 12998845, 
          reclength = 0, 
          rec_cache_size = 12997536, 
          error_offset = 0, 
          index = 2147483653, 
          ref_pos = 0x7f2ab1148c00 "gc", <incomplete sequence \306>, 
          record = 0xc658bd "mysql_execute_command", 
          rec_buf = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          cache = 0x0, 
          cache_pos = 0x4 <Address 0x4 out of bounds>, 
          cache_end = 0x975c018 ".\362", <incomplete sequence \302>, 
          read_positions = 0x0, 
          io_cache = 0x100000000, 
          print_error = false, 
          ignore_not_found_rows = false, 
          copy_field = 0x975c018, 
          copy_field_end = 0x4
        }
        __PRETTY_FUNCTION__ =           "int mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, uint, ORDER*, ha_rows, enum_duplicates, bool, ha_rows*, ha_rows*)"
        using_limit = true
        error = 32554
        all_fields = {
          <base_list> = {
            <Sql_alloc> = {<No data fields>}, 
            members of base_list: 
            first = 0x140fcc0, 
            last = 0x7f2ab1147f50, 
            elements = 0
          }, <No data fields>}
        killed_status = THD::NOT_KILLED
#11 0x00000000006e0ddf in mysql_execute_command (thd=0x975b040)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2710
        found = 0
        updated = 0
        res = 0
        lex = 0x975cca8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1148ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x975d390
        first_table = 0x7f29d0005160
        all_tables = 0x7f29d0005160
        unit = 0x975cd58
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x975b040, 
    rawbuf=0x7f29d0004d20 "update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1", length=452, 
    parser_state=0x7f2ab1149610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x975cca8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1149b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x975b040, 
    packet=0x975e151 "update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1", packet_length=452)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29d0004ee4 ""
        parser_state = {
          m_lip = {
            m_thd = 0x975b040, 
            yylineno = 15, 
            yytoklen = 1, 
            yylval = 0x7f2ab1147680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29d0004ee5 "\n`col24` = -1322384464,\n`col25` = 116,\n`col26` = 128,\n`col27` = 49,\n`col28` = 25639,\n`col29` = \"\016\345\032update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1", 
            m_tok_start = 0x7f29d0004ee5 "\n`col24` = -1322384464,\n`col25` = 116,\n`col26` = 128,\n`col27` = 49,\n`col28` = 25639,\n`col29` = \"\016\345\032update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1", 
            m_tok_end = 0x7f29d0004ee5 "\n`col24` = -1322384464,\n`col25` = 116,\n`col26` = 128,\n`col27` = 49,\n`col28` = 25639,\n`col29` = \"\016\345\032update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1", 
            m_end_of_query = 0x7f29d0004ee4 "", 
            m_tok_start_prev = 0x7f29d0004ee4 "", 
            m_buf = 0x7f29d0004d20 "update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1", 
            m_buf_length = 452, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29d0004f48 "update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1", 
            m_cpp_ptr = 0x7f29d000510c "", 
            m_cpp_tok_start = 0x7f29d000510c "", 
            m_cpp_tok_start_prev = 0x7f29d000510c "", 
            m_cpp_tok_end = 0x7f29d000510c "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 127 '\177', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29d000510b "1", 
            m_cpp_text_end = 0x7f29d000510c "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x975b2b8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1149d00
        }
#14 0x00000000006dc1ad in do_command (thd=0x975b040) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x975e150 "\003update ignore `test`.`t16` set\n`a16` = '',\n`col173` = -1075813,\n`col174` = from_unixtime(unix_timestamp()),\n`col175` = \"\356\312\360\331\311\065\035j\270\312\300!1Z\023\",\n`col176` = \"\301\244\343X7\301\315M\213\246\346t\337\063\344\002\",\n`col177` = '2011-09-11 03:56:03',\n`col178` = '2011-07-21',\n`col179` = 'mumdimdc',\n`col180` = null,\n`col181` = geomfromtext(\"point(-1931 -35765)\"),\n`col182` = null,\n`col183` = -5246711,\n`col184` = -41\nwhere `col184`<=> \"<uc ba='f'  p='ix' ><fg><dyq d='mg' >ep</dyq></fg></uc>\" limit 1"
        packet_length = 453
        net = 0x975b2b8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x975b040)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x975b2b8
        rc = false
        thd = 0x975b040
#16 0x00000000006b6753 in handle_one_connection (arg=0x975b040)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x975b040
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 17 (Thread 0x7f2ab1109700 (LWP 2388)):
+backtrace full
#0  0x00000032c1c7a0c1 in _int_malloc () from /lib64/libc.so.6
No symbol table info available.
#1  0x00000032c1c7c922 in malloc () from /lib64/libc.so.6
No symbol table info available.
#2  0x0000000000afae31 in mem_area_alloc (psize=0x7f2ab11053d8, pool=0x32f5510)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/mem/mem0pool.c:385
        area = 0x7f2ab1105908
        size = 0
        n = 139821335992584
        ret = 16
#3  0x0000000000af975a in mem_heap_create_block (heap=0x0, n=256, type=0, 
    file_name=0xd38f38 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/btr/btr0pcur.c", line=282)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/mem/mem0mem.c:333
        buf_block = 0x0
        block = 0x7f2ab1105400
        len = 376
#4  0x0000000000a41774 in mem_heap_create_func (n=256, type=0, 
    file_name=0xd38f38 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/btr/btr0pcur.c", line=282)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/include/mem0mem.ic:443
        block = 0xa4355b
#5  0x0000000000a4458f in btr_pcur_restore_position_func (latch_mode=1, cursor=0x7f29d804dde8, 
    file=0xd20c38 "/mysql2/mysql-next-mr-opt-backporting/storage/innobase/row/row0sel.c", line=3178, 
    mtr=0x7f2ab1105900) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/btr/btr0pcur.c:282
        rec = 0x7f29ec1080a9 ""
        offsets1 = 0x7f2ab11054f0
        offsets2 = 0x7f29e734dc78
        index = 0x7f29d409a5e8
        tuple = 0x1
        mode = 139821335992576
        old_mode = 11536611
        heap = 0x7f2ab11054c0
#6  0x00000000009d42d4 in sel_restore_position_for_mysql (same_user_rec=0x7f2ab1105dd0, latch_mode=1, 
    pcur=0x7f29d804dde8, moves_up=1, mtr=0x7f2ab1105900)
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/row/row0sel.c:3178
        success = 139821335991632
        relative_position = 1
#7  0x00000000009d7248 in row_search_for_mysql (buf=0x7f29d804c280 "", mode=1, prebuilt=0x7f29d804db68, match_mode=0, 
    direction=1) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/row/row0sel.c:4778
        index = 0x7f29d409a5e8
        comp = 1
        search_tuple = 0x7f29d804e0c8
        pcur = 0x7f29d804dde8
        trx = 0x7f29d8019738
        clust_index = 0x7f29d4061818
        thr = 0x7f29d809bc28
        rec = 0x7f29ec1080a9 ""
        result_rec = 0x9765af0 "\020F\021\001"
        clust_rec = 0x0
        err = 10
        unique_search = 0
        mtr_has_extra_clust_latch = 0
        moves_up = 1
        set_also_gap_locks = 1
        did_semi_consistent_read = 0
        next_offs = 483
        same_user_rec = 1
        mtr = {
          state = 12231, 
          memo = {
            heap = 0x0, 
            used = 16, 
            data =               "\001\000\000\000\000\000\000\000x\334\064\347)\177\000\000\001", '\000' <repeats 16 times>, "m@\001\000\000\000\000Ar\000\330)\177\000\000Ar\000\330)\177\000\000\200Y\020\261*\177\000\001\017\000\000\000\000\000\000\000\\/\357+\000\000\000\000\360\277\376\n\000\000\000\000@r\000\330\000\000\000\000|\\\020\261*\177\000\000\001\000\000\000\000\000\000\000Ar\000\330)\177\000\000Ar\000\330)\177\000\000Ar\000\330)\177\000\000\320Y\020\261*\177\000\000\313\\\273\000\000\000\000\000\f\\\020\261*\177\000\000\350Y\020\261*\177\000\000@r\000\330)\177\000\000\314\\\020\261*\177\000\000\250Z\020\261*\177\000\000@r\000\330)\177\000\000\060\000\000\000\000\000\000\000Ar\000\330)\177\000\000@r\000\330)\177\000\000\000m@\001", '\000' <repeats 12 times>, "\001", '\000' <repeats 14 times>, "\001\300>\001\330)\177\000\000\220Z\020\261*\177\000\000i\fY\000\000\000\000\000t\207\000\000\000\000\000\000\300>\001\330)\177\000\000\020\000\000\000\000\000\000\000\001", '\000' <repeats 15 times>, "Ar\000\330)\177\000\000\220Z\020\261*\177\000\000\313\\\273\000\000\000\000\000\314\\\020\261*\177\000\000\250Z\020\261*\177\000\000@r\000\330)\177\000\000Z\237W\000\000\000\000\000\300Z\020\261*\177\000\000\267<[\000\000\000\000\000@r\000\330)\177\000\000\230?\001\330)\177\000\000@r\000\330)\177\000\000\000m@\001\000\000\000\000\340Z\020\261*\177\000\000\067=[\000\000\000\000\000\250[\020\261*\177\000\000\300>\001\330)\177", '\000' <repeats 34 times>, "p[\020\261*\177\000\000\366\vY\000\000\000\000\000\060\000\000\000\000\000\000\001", 
            base = {
              count = 139817694866720, 
              start = 0x7f29d8092e88, 
              end = 0x7f2ab1105b90
            }, 
            list = {
              prev = 0x7f2ab1105b50, 
              next = 0x7f2ab1105b90
            }, 
            buf_end = 0, 
            magic_n = 375767
          }, 
          log = {
            heap = 0x0, 
            used = 0, 
            data =               "\210.\t\330\000\000\000\000\230?\001\330)\177\000\000\300[\020\261*\177\000\000g\326[\000\000\000\000\000\240[\020\261*\177\000\000\067=[\000\000\000\000\000\210.\t\330)\177\000\000\300>\001\330)\177\000\000\020\\\020\261*\177\000\000i\fY\000\000\000\000\000@r\000\330)\177\000\000\300>\001\330)\177\000\000\060\\\020\261*\177\000\000\366\vY\000\000\000\000\000\034'\321", '\000' <repeats 13 times>, "\035\277\306", '\000' <repeats 13 times>, "\020\\\020\261*\177\000\000P\020\000\330\000\000\001\000 \\\020\261*\177\000\000V\257\272\000\000\000\000\000P\021\000\330)\177\000\000p\021\000\330)\177\000\000P^\020\261*\177\000\000٢\272\000\000\000\000\000\220^\020\261*\177\000\000\000\000\000\000DT\000\000`\\\020\261*\177\000\000P\020\000\330\000\000\001\000\061\275\306", '\000' <repeats 13 times>, "P\021\000\330)\177\000\000P\020\000\330\000\000\001\000\220\\\020\261*\177\000\000V\257\272\000\000\000\000\000P\021\000\330)\177\000\000p\021\000\330)\177\000\000\300^\020\261*\177\000\000٢\272\000\000\000\000\000\020_\020\261*\177\000\000p\021\000\330QI\000\000\340^\020\261*\177\000\000٢\272\000\000\000\000\000\000_\020\261*\177\000\000\300\374@\001\070\031\000\000\000]\020\261*\177\000\000\267<[\000\000\000\000\000N\273\306", '\000' <repeats 13 times>, "@]\020\261*\177\000\000P\020\000\330\000\000\001\000 ]\020\261*\177\000\000V\257\272\000\000\000\000\000P\021\000\330)\177\000\000p\021\000\330)\177\000\000P_\020\261*\177\000\000٢\272\000\000\000\000\000\200_\020\261*\177\000\000i|\272\000\275E\000\000\231\242\306\000\000\000\000\000p\021\000\330)\177\000\000P^\020\261*\177\000\000\377\243\272\000\000\000\000", 
            base = {
              count = 54551, 
              start = 0xc6bf38, 
              end = 0x3000000008
            }, 
            list = {
              prev = 0x7f2ab1105e60, 
              next = 0x7f2ab1105da0
            }, 
            buf_end = 0, 
            magic_n = 375767
          }, 
          modifications = 0, 
          n_log_recs = 0, 
          log_mode = 21, 
          start_lsn = 13017753, 
          end_lsn = 218009535168, 
          magic_n = 54551
        }
        heap = 0x0
        offsets_ =           {[0] = 100,
          [1] = 14,
          [2] = 139818030448844,
          [3] = 139817627555864,
          [4] = 2147483660,
          [5] = 4,
          [6] = 29,
          [7] = 54,
          [8] = 60,
          [9] = 67,
          [10] = 92,
          [11] = 93,
          [12] = 118,
          [13] = 143,
          [14] = 151,
          [15] = 154,
          [16] = 156,
          [17] = 157,
          [18] = 158,
          [19] = 11538873,
          [20] = 139817694369592,
          [21] = 139817631483728,
          [22] = 139821335994320,
          [23] = 10319086,
          [24] = 4166,
          [25] = 139821335991968,
          [26] = 100,
          [27] = 2,
          [28] = 139818030170347,
          [29] = 1,
          [30] = 0,
          [31] = 139817631487880,
          [32] = 1,
          [33] = 139817631483728,
          [34] = 139821335992064,
          [35] = 11534370,
          [36] = 139821335992144,
          [37] = 139821335992064,
          [38] = 100,
          [39] = 2,
          [40] = 139818030170532,
          [41] = 139817627556648,
          [42] = 2147483654,
          [43] = 4,
          [44] = 29,
          [45] = 10266850,
          [46] = 1,
          [47] = 0,
          [48] = 139817694913340,
          [49] = 139817227112720,
          [50] = 139821335992240,
          [51] = 10306975,
          [52] = 139817225074408,
          [53] = 139817227112720,
          [54] = 139821335993192,
          [55] = 139821335992972,
          [56] = 139821335992424,
          [57] = 139817694294592,
          [58] = 139817694369592,
          [59] = 139817227112720,
          [60] = 139821335994624,
          [61] = 10319086,
          [62] = 4166,
          [63] = 139821335992272,
          [64] = 72057594037928036,
          [65] = 15,
          [66] = 737095516,
          [67] = 184467440,
          [68] = 0,
          [69] = 139817225074408,
          [70] = 1,
          [71] = 139817694294593,
          [72] = 139817694294593,
          [73] = 139817694294593,
          [74] = 139821335992400,
          [75] = 12278987,
          [76] = 139821335992972,
          [77] = 139821335992424,
          [78] = 139817694294592,
          [79] = 139821335993164,
          [80] = 139821335992616,
          [81] = 139817694294592,
          [82] = 139818026123463,
          [83] = 139817694294593,
          [84] = 139817694294592,
          [85] = 20999424,
          [86] = 6,
          [87] = 13,
          [88] = 72057594037927953,
          [89] = 0,
          [90] = 34676,
          [91] = 0,
          [92] = 64,
          [93] = 55,
          [94] = 0,
          [95] = 3,
          [96] = 0,
          [97] = 1,
          [98] = 0,
          [99] = 1}
        offsets = 0x7f2ab11055d0
        table_lock_waited = 0
#8  0x0000000000996c3a in ha_innobase::general_fetch (this=0x7f29d804be90, buf=0x7f29d804c280 "", direction=1, 
    match_mode=0) at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/handler/ha_innodb.cc:6359
        ret = 139817694269776
        error = 0
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483671, 
          prev = 0x7f2ab1106030
        }
#9  0x0000000000996d63 in ha_innobase::index_next (this=0x7f29d804be90, buf=0x7f29d804c280 "")
    at /mysql2/mysql-next-mr-opt-backporting/storage/innobase/handler/ha_innodb.cc:6399
No locals.
#10 0x0000000000584697 in handler::ha_index_next (this=0x7f29d804be90, buf=0x7f29d804c280 "")
    at /mysql2/mysql-next-mr-opt-backporting/sql/handler.cc:2277
        result = 0
        locker = 0x0
        state = {
          m_flags = 2970640256, 
          m_table = 0xba7c69, 
          m_table_share = 0x7f29d80921f8, 
          m_thread = 0x7f29d80454a8, 
          m_timer_start = 13024036, 
          m_timer = 0xc6a360, 
          m_io_operation = 2147483671, 
          m_index = 32554, 
          m_src_file = 0x7f2ab1106030 "N\273", <incomplete sequence \306>, 
          m_src_line = -671084208, 
          m_wait = 0x7f29d8001170
        }
#11 0x000000000072e325 in join_read_next (info=0x7f29d8092280)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:18438
        error = 32553
#12 0x000000000072c1c9 in sub_select (join=0x7f29d80454a8, join_tab=0x7f29d80921f8, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17490
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483670, 
          prev = 0x7f2ab11060b0
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29d8092280
#13 0x000000000072cc3a in evaluate_join_record (join=0x7f29d80454a8, join_tab=0x7f29d8091f48, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = NESTED_LOOP_OK
        return_tab = 0x7f29d8091f48
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x7f29d8096a20
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483669, 
          prev = 0x7f2ab1106160
        }
#14 0x000000000072c225 in sub_select (join=0x7f29d80454a8, join_tab=0x7f29d8091f48, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17495
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483668, 
          prev = 0x7f2ab11061e0
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29d8091fd0
#15 0x000000000072cc3a in evaluate_join_record (join=0x7f29d80454a8, join_tab=0x7f29d8091c98, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = NESTED_LOOP_OK
        return_tab = 0x7f29d8091c98
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x7f29d8096848
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483667, 
          prev = 0x7f2ab1106290
        }
#16 0x000000000072c225 in sub_select (join=0x7f29d80454a8, join_tab=0x7f29d8091c98, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17495
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483666, 
          prev = 0x7f2ab1106310
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29d8091d20
#17 0x000000000072cc3a in evaluate_join_record (join=0x7f29d80454a8, join_tab=0x7f29d80919e8, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = -1324326000
        return_tab = 0x7f29d80919e8
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x0
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483665, 
          prev = 0x7f2ab11063c0
        }
#18 0x000000000072c1b3 in sub_select (join=0x7f29d80454a8, join_tab=0x7f29d80919e8, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17482
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483664, 
          prev = 0x7f2ab1106440
        }
        error = 0
        rc = 17795
        info = 0x7f29d8091a70
#19 0x000000000072cc3a in evaluate_join_record (join=0x7f29d80454a8, join_tab=0x7f29d8091738, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = NESTED_LOOP_OK
        return_tab = 0x7f29d8091738
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x7f29d80963e0
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483663, 
          prev = 0x7f2ab11064f0
        }
#20 0x000000000072c225 in sub_select (join=0x7f29d80454a8, join_tab=0x7f29d8091738, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17495
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483662, 
          prev = 0x7f2ab1106570
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29d80917c0
#21 0x000000000072cc3a in evaluate_join_record (join=0x7f29d80454a8, join_tab=0x7f29d8091488, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = NESTED_LOOP_OK
        return_tab = 0x7f29d8091488
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x7f29d8096670
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483661, 
          prev = 0x7f2ab1106620
        }
#22 0x000000000072c225 in sub_select (join=0x7f29d80454a8, join_tab=0x7f29d8091488, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17495
        _db_stack_frame_ = {
          func = 0xc6bb4e "evaluate_join_record", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483660, 
          prev = 0x7f2ab11066a0
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29d8091510
#23 0x000000000072cc3a in evaluate_join_record (join=0x7f29d80454a8, join_tab=0x7f29d80911d8, error=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17801
        rc = -1324325088
        return_tab = 0x7f29d80911d8
        not_used_in_distinct = false
        found_records = 0
        select_cond = 0x0
        __PRETTY_FUNCTION__ =           "enum_nested_loop_state evaluate_join_record(JOIN*, JOIN_TAB*, int)"
        found = true
        _db_stack_frame_ = {
          func = 0xc6bb24 "sub_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483659, 
          prev = 0x7f2ab1106750
        }
#24 0x000000000072c1b3 in sub_select (join=0x7f29d80454a8, join_tab=0x7f29d80911d8, end_of_records=false)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17482
        _db_stack_frame_ = {
          func = 0xc6ba1b "do_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483658, 
          prev = 0x7f2ab11067d0
        }
        error = 0
        rc = NESTED_LOOP_OK
        info = 0x7f29d8091260
#25 0x000000000072b69a in do_select (join=0x7f29d80454a8, fields=0x7f29d80457c0, table=0x0, procedure=0x0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:17023
        join_tab = 0x7f29d80911d8
        end_select = 0x72ec09 <end_send_group(JOIN*, JOIN_TAB*, bool)>
        __PRETTY_FUNCTION__ =           "int do_select(JOIN*, List<Item>*, TABLE*, Procedure*)"
        rc = 0
        error = NESTED_LOOP_OK
        _db_stack_frame_ = {
          func = 0xc6a950 "JOIN::exec", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483657, 
          prev = 0x7f2ab1106870
        }
#26 0x000000000070b79e in JOIN::exec (this=0x7f29d80454a8)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:3365
        _db_stack_frame_ = {
          func = 0xc7710a "st_select_lex_unit::exec", 
          file = 0xc77070 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc", 
          level = 2147483656, 
          prev = 0x7f2ab11069b0
        }
        __FUNCTION__ =           "exec"
        tmp_error = 32553
        curr_join = 0x7f29d80454a8
        curr_fields_list = 0x7f29d80457c0
        __PRETTY_FUNCTION__ =           "void JOIN::exec()"
        columns_list = 0x9767f48
        has_group_by = false
        curr_all_fields = 0x7f29d8045778
        curr_tmp_table = 0x0
#27 0x0000000000781a1b in st_select_lex_unit::exec (this=0x9767808)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc:531
        records_at_start = 0
        error = 16809769
        sl = 0x9767e40
        select_cursor = 0x9767e40
        examined_rows = 0
        __PRETTY_FUNCTION__ =           "bool st_select_lex_unit::exec()"
        lex_select_save = 0x7f29d800c7b0
        add_rows = 0
        _db_stack_frame_ = {
          func = 0xc770a7 "mysql_union", 
          file = 0xc77070 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1106a90
        }
#28 0x0000000000780053 in mysql_union (thd=0x9765af0, lex=0x9767758, result=0x7f29d80453a8, unit=0x9767808, 
    setup_tables_done_option=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_union.cc:38
        _db_stack_frame_ = {
          func = 0xc6a398 "handle_select", 
          file = 0xc6a360 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1106b50
        }
        res = false
#29 0x0000000000702760 in handle_select (thd=0x9765af0, lex=0x9767758, result=0x7f29d80453a8, 
    setup_tables_done_option=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_select.cc:301
        res = false
        select_lex = 0x9767758
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1107c00
        }
#30 0x00000000006e66c6 in execute_sqlcom_select (thd=0x9765af0, all_tables=0x7f29d8005f20)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4503
        lex = 0x9767758
        result = 0x7f29d80453a8
        res = false
#31 0x00000000006df545 in mysql_execute_command (thd=0x9765af0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x9767758
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1107ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x9767e40
        first_table = 0x7f29d8005f20
        all_tables = 0x7f29d8005f20
        unit = 0x9767808
        have_table_map_for_update = false
#32 0x00000000006e8823 in mysql_parse (thd=0x9765af0, 
    rawbuf=0x7f29d80053b0 "select   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1", 
    length=1090, parser_state=0x7f2ab1108610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x9767758
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1108b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#33 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9765af0, 
    packet=0x9768c01 "\nselect   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   ", 
    packet_length=1095) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29d80057f2 ""
        parser_state = {
          m_lip = {
            m_thd = 0x9765af0, 
            yylineno = 47, 
            yytoklen = 1, 
            yylval = 0x7f2ab1106680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29d80057f3 "e) <= t23.a23 )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var4 >> t18.col197 )\n \t\n\t nselect   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1", 
            m_tok_start = 0x7f29d80057f3 "e) <= t23.a23 )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var4 >> t18.col197 )\n \t\n\t nselect   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1", 
            m_tok_end = 0x7f29d80057f3 "e) <= t23.a23 )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var4 >> t18.col197 )\n \t\n\t nselect   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1", 
            m_end_of_query = 0x7f29d80057f2 "", 
            m_tok_start_prev = 0x7f29d80057f2 "", 
            m_buf = 0x7f29d80053b0 "select   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1", 
            m_buf_length = 1090, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29d8005850 "select   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1", 
            m_cpp_ptr = 0x7f29d8005c92 "", 
            m_cpp_tok_start = 0x7f29d8005c92 "", 
            m_cpp_tok_start_prev = 0x7f29d8005c92 "", 
            m_cpp_tok_end = 0x7f29d8005c92 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29d8005c91 "1", 
            m_cpp_text_end = 0x7f29d8005c92 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x9765d68
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1108d00
        }
#34 0x00000000006dc1ad in do_command (thd=0x9765af0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x9768c00 "\003\nselect   count(*) from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 is not false )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (t23.col234 is not null )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n    union all \nselect  \t col235 from\n\t`test`.`t23` as `t23` force index (PRIMARY,idx192)\n\t natural right join `test`.`t3` as `t3` ignore index (idx13,idx15)\n \t\n\t left outer join `test`.`t10` as `t10` ignore index (idx56) \non ( '1'  )\n \t\n\t left outer join `test`.`t18` as `t18`  \non (@var7 regexp @var3 )\n \t\n\t natural right join `test`.`t7` as `t7` force index (PRIMARY)\n \t\n\t right outer join `test`.`t1` as `t1`  \non (@var4 is true )\n \t\n\t inner join `test`.`t21` as `t21` force index (PRIMARY,PRIMARY,PRIMARY,idx174) \non ( '1'  )\n  \n\n \n \n \nlimit 1\n   "
        packet_length = 1096
        net = 0x9765d68
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#35 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9765af0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9765d68
        rc = false
        thd = 0x9765af0
#36 0x00000000006b6753 in handle_one_connection (arg=0x9765af0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9765af0
#37 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#38 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 16 (Thread 0x7f2ab10c8700 (LWP 2389)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x976cd50, mp=0x976cce0, abstime=0x7f2ab10c5160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x976cd50, mutex=0x976cce0, abstime=0x7f2ab10c5160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2970374224, 
          m_cond = 0x91e646, 
          m_mutex = 0x976cce0, 
          m_thread = 0x976cdb8, 
          m_timer_start = 139821335728256, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x976cce0 "", 
          m_src_line = 158780752, 
          m_wait = 0x976cc10
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x976cce0, owner=0x976ccd8, abs_timeout=0x7f2ab10c5160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32554
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x976cce0, mdl_request=0x7f2aac006108, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f2aac014a80
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 994668600
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x976cc10, ot_ctx=0x7f2ab10c5a10, mdl_request=0x7f2aac006108, 
    flags=0, mdl_ticket=0x7f2ab10c5840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab10c5a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 2970374792, 
          duration = 917, 
          next_in_list = 0x7f2ab10c5fc0, 
          prev_in_list = 0x39801406d00, 
          ticket = 0x101406d00, 
          key = {
            m_length = 21152, 
            m_db_name_length = 45324, 
            m_ptr =               "*\177\000\000\331\375u\000\000\000\000\000\t\000\000\000\005\000\000\000\021y\001\254*\177\000\000pR\f\261*\177\000\000\001\000\000\000\000\000\000\062\000m@\001\000\000\000\000\300_\f\261\001\000\000\000\336R\f\261*\177\000\000\300_\f\261*\177\000\000\240R\f\261*\177\000\000\000\000\000\000\000\000\000\000\336R\f\261*\177\000\000\333\003\000\000\000\000\000\000\000S\f\261*\177\000\000\033rt\000\000\000\000\000\376R\f\261\001\000\000\000\021y\001\254*\177\000\000\300_\f\261*\177\000\000\020\314v\t\000\000\000\000; Us\001\000\000\000\230\233\021\324)\177`2\021y\001\254*\177\000\000\020\314v\t`\000\000\000\336\vZ\000.\000\000\000\300_\f\261*\177\000\000`U\f\261*\177\000\000S_Y\000\000\000\000\000\336\vZ\000.\000\000\000\300_\f\261\000\000\000\000\300_\f\261*\177\000\000\000\275\005\254*\177\000\000`\243\306\000\000\000\000\000\336\vZ\000\000\000\000\000\300_\f\261*\177\000\000@\206\005\254*\177\000\000\360\020\000\254*\177\000\000\320\017\000\254\000\000\000\000\300_\f\261*\177\000\000\020\314v\t\000\000\000\000\017P\305", '\000' <repeats 13 times>"\260, U\f\261*\177\000\000\320\017\000\254\000\000\001\000\260S\f\261*\177\000\000V\257\272\000\000\000\000\000x]\000\254*\177\000\000Z\237W\000\000\000\000\000\000T\f\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x976cc10, table_list=0x7f2aac005d78, mem_root=0x7f2ab10c59d0, 
    ot_ctx=0x7f2ab10c5a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab10c5a10
        key =           "test\000t6\000\000\000\000\000\036\000\000\000\360\020\000\254*\177\000\000\a\000\000\000\000\000\000\000\300V\f\261*\177\000\000R>\217", '\000' <repeats 13 times>"\320, X\f\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@Z\f\261*\177\000\000\340V\f\261*\177\000\000̪i\000\000\000\000\000\000Y\f\261*\177\000\000\320X\f\261*\177\000\000pY\f\261*\177\000\000\030\005i\000\000\000\000\000w\023\320", '\000' <repeats 13 times>"\200, \063\341\001", '\000' <repeats 12 times>, "x]\000\254*\177\000\000\020\314v\t\000\000\000\000\320\020\000\254*\177\000\000\360\020\000\254*\177\000\000`Y\f\261*\177\000\000٢\272\000\000\000\000\000\200Y\f\261*\177\000\000٢\272\000\360\000\000\000\220Y\f\261*\177\000\000\360\020\000\254<\000\000\000x\350v\t\000\000\000\000\000J\221\000\000\000\000\000\260Y\f\261*\177\000\000\320\017\000\254*\177\000\000\240W\f\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\360\020\000\254*\177\000\000\240X\f\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260X\f\261*\177\000\000\360W\f\261*\177\000\000\320\017\000\254*\177\000\000\000X\f\261*\177\000\000\360\020"
        alias = 0x7f2aac005d60 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab10c58f0
        }
        mdl_ticket = 0x7f2aac0010d0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 2885685456
#7  0x000000000068fbe0 in open_and_process_table (thd=0x976cc10, lex=0x976e878, tables=0x7f2aac005d78, 
    counter=0x7f2ab10c5b34, flags=0, prelocking_strategy=0x7f2ab10c5b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab10c5a10, new_frm_mem=0x7f2ab10c59d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab10c5a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x976cc10, start=0x7f2ab10c5af0, counter=0x7f2ab10c5b34, flags=0, 
    prelocking_strategy=0x7f2ab10c5b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab10c5b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab10c5af0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x976e900
        tables = 0x7f2aac005d78
        error = false
        new_frm_mem = {
          free = 0x7f2aac05dad0, 
          used = 0x0, 
          pre_alloc = 0x7f2aac05dad0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x976cc10, tables=0x7f2aac005d78, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab10c5b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab10c6c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x976cc10, tables=0x7f2aac005d78, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x976cc10, all_tables=0x7f2aac005d78)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x976e878
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x976cc10)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x976e878
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab10c6ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x976ef60
        first_table = 0x7f2aac005d78
        all_tables = 0x7f2aac005d78
        unit = 0x976e928
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x976cc10, 
    rawbuf=0x7f2aac005380 "explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )", length=1051, parser_state=0x7f2ab10c7610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x976e878
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab10c7b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x976cc10, 
    packet=0x976fd21 "explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )\n  \n\n \n \n \n\n   ", packet_length=1066)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f2aac00579b ""
        parser_state = {
          m_lip = {
            m_thd = 0x976cc10, 
            yylineno = 27, 
            yytoklen = 5, 
            yylval = 0x7f2ab10c5680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f2aac00579c "s `t25` \n \t\n\t left outer joiexplain extended \nselect sql_cache all  \t\n`t20`.`col215` as col2explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )", 
            m_tok_start = 0x7f2aac00579c "s `t25` \n \t\n\t left outer joiexplain extended \nselect sql_cache all  \t\n`t20`.`col215` as col2explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )", 
            m_tok_end = 0x7f2aac00579c "s `t25` \n \t\n\t left outer joiexplain extended \nselect sql_cache all  \t\n`t20`.`col215` as col2explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )", 
            m_end_of_query = 0x7f2aac00579b "", 
            m_tok_start_prev = 0x7f2aac00579b "", 
            m_buf = 0x7f2aac005380 "explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )", 
            m_buf_length = 1051, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f2aac0057f8 "explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )", 
            m_cpp_ptr = 0x7f2aac005c13 "", 
            m_cpp_tok_start = 0x7f2aac005c13 "", 
            m_cpp_tok_start_prev = 0x7f2aac005c13 "", 
            m_cpp_tok_end = 0x7f2aac005c13 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 119 'w', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f2aac005c0c "col54 )", 
            m_cpp_text_end = 0x7f2aac005c11 " )", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x976ce88
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab10c7d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x976cc10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x976fd20 "\003explain partitions \nselect sql_cache all  \t col215 from\n\t`test`.`t6` as `t6` \n\t natural left outer join `test`.`t25` as `t25` \n \t\n\t left outer join `test`.`t12` as `t12`  \non (@var0 & t12.col113 )\n \t\n\t left join `test`.`t5` as `t5`  \non (t6.col53 is not null )\n \t\n\t natural left outer join `test`.`t11` as `t11` \n \t\n\t cross join `test`.`t14` as `t14`  \non ( @@global.myisam_data_pointer_size + t6.col55 )\n \t\n\t right outer join `test`.`t27` as `t27` ignore index (idx241) \non ( (case ((t6.col52)) when ((t6.a6)) then ((t6.col54))when ((t6.a6)) then ((t6.col52)) else ((t6.col52)) end) <=  timestamp((t27.a27)) )\n \t\n\t left outer join `test`.`t20` as `t20`  \non ( coalesce(( least((t6.col52),(t6.col53),(t6.col52),(t6.col52),(t6.col54))),( get_format(datetime,'eur')),( coalesce((t6.col52),(t6.col53),(t6.a6),(t6.col52),(t6.a6)))) rlike @var3 )\n \t\n\t left join `test`.`t18` as `t18`  \non (@var5 < t18.col191 )\n \t\n\t left join `test`.`t3` as `t3` ignore index (idx13) \non ( ((t6.a6) not in ((t6.col55),(t6.col52),(t6.col53),(t6.col52))) not rlike t6.col54 )\n  \n\n \n \n \n\n   "
        packet_length = 1067
        net = 0x976ce88
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x976cc10)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x976ce88
        rc = false
        thd = 0x976cc10
#17 0x00000000006b6753 in handle_one_connection (arg=0x976cc10)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x976cc10
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 15 (Thread 0x7f2ab1087700 (LWP 2390)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x9773f90, mp=0x9773f20, abstime=0x7f2ab1084250, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x9773f90, mutex=0x9773f20, abstime=0x7f2ab1084250, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2970108224, 
          m_cond = 0x91e646, 
          m_mutex = 0x9773f20, 
          m_thread = 0x9773ff8, 
          m_timer_start = 139821335462256, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x9773f20 "", 
          m_src_line = 158810000, 
          m_wait = 0x9773e50
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x9773f20, owner=0x9773f18, abs_timeout=0x7f2ab1084250, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = MDL_wait::EMPTY
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x9773f20, mdl_request=0x9787bf0, lock_wait_timeout=31536000)
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x9666640
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29bc070100
        abs_timeout = {
          tv_sec = 1331672704, 
          tv_nsec = 146983900
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x9773e50, ot_ctx=0x7f2ab1084b00, mdl_request=0x9787bf0, 
    flags=0, mdl_ticket=0x7f2ab1084930) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1084b00, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 2970108720, 
          duration = 32554, 
          next_in_list = 0x258c1f9f1c0, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000\067\000\000\000\000\000\000\000Q\004\000\000\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000\370\300k\t\000\000\000\000\030\001.\003\000\000\000\000\240C\b\261*\177\000\000@h\302\b\000\000\000\000\240C\b\261*\177\000\000\314\345\221\000\000\000\000\000\350\300k\t\000\000\000\000\320?w\t\000\000\000\000\320C\b\261*\177\000\000\332\354c\000\000\000\000\000\340\300k\t\000\000\000\000\320?w\t\000\000\000\000@h\302\b\000\000\000\000@h\302\b\000\000\000\000\060D\b\261*\177\000\000\336\300c\000\000\000\000\000 D\b\261*\177\000\000\230D\b\261*\177\000\000@E\b\261*\177\000\000 ?w\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\340\300k\t\000\000\000\000`E\b\261*\177\000\000\000\203~M\000\000\000\000@h\302\b\000\000\000\000\360D\b\261*\177\000\000\204\305c", '\000' <repeats 14 times>"\300, h\313t\002\034\000\000\000\000\000\000\000\000\000\200\063\341\001\000\000\000\000@E\b\261*\177\000\000 ?w\t\000\000\000\000\n\000\000\200\000\000\000\000%\340c\000\000\000\000\000\200\266_O\000\000\000\000@h\302\b\000\000\000\000`xx\t\000\000\000\000`E\b\261*\177\000\000\360D\b\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x9773e50, table_list=0x9787860, mem_root=0x7f2ab1084ac0, 
    ot_ctx=0x7f2ab1084b00) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1084b00
        key =           "test\000t25\000\000\000\000\000\037\000\000\000\250d\t\000\000\000\000\a\000\000\000\000\000\000\000\260G\b\261*\177\000\000R>\217", '\000' <repeats 13 times>"\300, I\b\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000\060K\b\261*\177\000\000\320G\b\261*\177\000\000̪i\000\000\000\000\000\360I\b\261*\177\000\000\300I\b\261*\177\000\000`J\b\261*\177\000\000\030\005i\000\000\000\000\000\000wI\261*\177\000\000\000\000\000\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "`xx\t\000\000\000\000P>w\t\000\000\000\000\300\361\371\301\062\000\000\000\060\205x\t", '\000' <repeats 12 times>, "\t\000\000\000\000\000\000\000h\037\000\000\000\000\000\000ؘ\307\301\062\000\000\000\000\001\000\000\000\000\000\000\020\241u\t\000\000\000\000\270Zw\t\000\000\000\000\000J\221", '\000' <repeats 13 times>, "P5x\t\000\000\000\000\220H\b\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\240\250d\t\000\000\000\000\220I\b\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\240I\b\261*\177\000\000\340H\b\261*\177\000\000P5x\t\000\000\000\000\360H\b\261*\177\000\000\240\250"
        alias = 0x9787858 "t25"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab10849e0
        }
        mdl_ticket = 0x9783650
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 158873168
#7  0x000000000068fbe0 in open_and_process_table (thd=0x9773e50, lex=0x9775ab8, tables=0x9787860, 
    counter=0x7f2ab1084f78, flags=0, prelocking_strategy=0x7f2ab1084be0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1084b00, new_frm_mem=0x7f2ab1084ac0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1084b30
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x9773e50, start=0x7f2ab1084c50, counter=0x7f2ab1084f78, flags=0, 
    prelocking_strategy=0x7f2ab1084be0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc77529 "mysql_update", 
          file = 0xc774b0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1084f10
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1084c50
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x9775b40
        tables = 0x9787860
        error = false
        new_frm_mem = {
          free = 0x9797e80, 
          used = 0x0, 
          pre_alloc = 0x9797e80, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006c155d in open_tables (thd=0x9773e50, tables=0x7f2ab1084c50, counter=0x7f2ab1084f78, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:461
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#10 0x0000000000783324 in mysql_update (thd=0x9773e50, table_list=0x9787860, fields=..., values=..., conds=0x9788530, 
    order_num=0, order=0x0, limit=1, handle_duplicates=DUP_ERROR, ignore=true, found_return=0x7f2ab1085ca8, 
    updated_return=0x7f2ab1085ca0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc:284
        safe_update = false
        used_index = 0
        want_privilege = 0
        __FUNCTION__ =           "mysql_update"
        transactional_table = false
        will_batch = false
        reverse = false
        table_count = 1
        id = 7235753
        used_key_is_modified = false
        select_lex = 0x97761a0
        res = -1324855312
        dup_key_found = 2970111952
        found = 139821335466000
        old_covering_keys = {
          map = 0
        }
        table = 0x0
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1085c00
        }
        loc_error = 158817128
        need_sort = true
        updated = 7157794
        select = 0x97886b0
        info = {
          table = 0x7f2ab1084e80, 
          file = 0x6800fe, 
          forms = 0x964a8a0, 
          unlock_row = 0x5, 
          read_record = 0x7f2ab1084f20, 
          thd = 0x6e6d5d, 
          select = 0x0, 
          cache_records = 158890712, 
          ref_length = 0, 
          struct_length = 12998845, 
          reclength = 0, 
          rec_cache_size = 12997536, 
          error_offset = 0, 
          index = 2147483653, 
          ref_pos = 0x7f2ab1085c00 "gc", <incomplete sequence \306>, 
          record = 0xc658bd "mysql_execute_command", 
          rec_buf = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          cache = 0x0, 
          cache_pos = 0x4 <Address 0x4 out of bounds>, 
          cache_end = 0x9774e28 ".\362", <incomplete sequence \302>, 
          read_positions = 0x0, 
          io_cache = 0x100000000, 
          print_error = false, 
          ignore_not_found_rows = false, 
          copy_field = 0x9774e28, 
          copy_field_end = 0x4
        }
        __PRETTY_FUNCTION__ =           "int mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, uint, ORDER*, ha_rows, enum_duplicates, bool, ha_rows*, ha_rows*)"
        using_limit = true
        error = 32554
        all_fields = {
          <base_list> = {
            <Sql_alloc> = {<No data fields>}, 
            members of base_list: 
            first = 0x140fcc0, 
            last = 0x7f2ab1084f50, 
            elements = 0
          }, <No data fields>}
        killed_status = THD::NOT_KILLED
#11 0x00000000006e0ddf in mysql_execute_command (thd=0x9773e50)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2710
        found = 0
        updated = 0
        res = 0
        lex = 0x9775ab8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1085ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97761a0
        first_table = 0x9787860
        all_tables = 0x9787860
        unit = 0x9775b68
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x9773e50, 
    rawbuf=0x9787690 "update ignore `test`.`t25` set\n`col252` = 0,\n`col253` = 2071150030,\n`a25` = geomfromtext(\"point(90237 67715)\")\nwhere `a25`>= 2249025804 limit 1", length=143, parser_state=0x7f2ab1086610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x9775ab8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1086b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x9773e50, 
    packet=0x97778a1 "update ignore `test`.`t25` set\n`col252` = 0,\n`col253` = 2071150030,\n`a25` = geomfromtext(\"point(90237 67715)\")\nwhere `a25`>= 2249025804 limit 1", packet_length=143)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x978771f ""
        parser_state = {
          m_lip = {
            m_thd = 0x9773e50, 
            yylineno = 5, 
            yytoklen = 1, 
            yylval = 0x7f2ab1084680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x9787720 "oint(-61280 52626)\")", 
            m_tok_start = 0x9787720 "oint(-61280 52626)\")", 
            m_tok_end = 0x9787720 "oint(-61280 52626)\")", 
            m_end_of_query = 0x978771f "", 
            m_tok_start_prev = 0x978771f "", 
            m_buf = 0x9787690 "update ignore `test`.`t25` set\n`col252` = 0,\n`col253` = 2071150030,\n`a25` = geomfromtext(\"point(90237 67715)\")\nwhere `a25`>= 2249025804 limit 1", 
            m_buf_length = 143, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x9787780 "update ignore `test`.`t25` set\n`col252` = 0,\n`col253` = 2071150030,\n`a25` = geomfromtext(\"point(90237 67715)\")\nwhere `a25`>= 2249025804 limit 1", 
            m_cpp_ptr = 0x978780f "", 
            m_cpp_tok_start = 0x978780f "", 
            m_cpp_tok_start_prev = 0x978780f "", 
            m_cpp_tok_end = 0x978780f "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 127 '\177', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x978780e "1", 
            m_cpp_text_end = 0x978780f "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97740c8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1086d00
        }
#14 0x00000000006dc1ad in do_command (thd=0x9773e50) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97778a0 "\003update ignore `test`.`t25` set\n`col252` = 0,\n`col253` = 2071150030,\n`a25` = geomfromtext(\"point(90237 67715)\")\nwhere `a25`>= 2249025804 limit 1"
        packet_length = 144
        net = 0x97740c8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x9773e50)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97740c8
        rc = false
        thd = 0x9773e50
#16 0x00000000006b6753 in handle_one_connection (arg=0x9773e50)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9773e50
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 14 (Thread 0x7f2ab1046700 (LWP 2391)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x977bb10, mp=0x977baa0, abstime=0x7f2ab1043870, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x977bb10, mutex=0x977baa0, abstime=0x7f2ab1043870, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2969843568, 
          m_cond = 0x977ba98, 
          m_mutex = 0x7f2ab1043790, 
          m_thread = 0x970c4e0, 
          m_timer_start = 139821335197648, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x977baa0 "", 
          m_src_line = 158841616, 
          m_wait = 0x977b9d0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x977baa0, owner=0x977ba98, abs_timeout=0x7f2ab1043870, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x977baa0, mdl_request=0x7f29a00d0fd0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 787112500
        }
        ticket = 0x7f29a0286c70
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc0b1a30
        abs_timeout = {
          tv_sec = 1331672676, 
          tv_nsec = 39076500
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063cc6e in MDL_context::acquire_locks (this=0x977baa0, mdl_requests=0x7f2ab1043be0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1925
        sort_buf = 0x7f29a00da4d0
        p_req = 0x7f29a00da4e0
        mdl_svp = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        it = {
          list = 0x7f2ab1043be0, 
          current = 0x0
        }
        req_count = 3
#6  0x00000000006904f9 in lock_table_names (thd=0x977b9d0, tables_start=0x7f29a00d0c40, tables_end=0x0, 
    lock_wait_timeout=31536000, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4604
        mdl_requests = {
          <I_P_List_counter> = {
            m_counter = 3
          }, 
          <I_P_List_no_push_back<MDL_request>> = {<No data fields>}, 
          members of I_P_List<MDL_request, I_P_List_adapter<MDL_request, &(MDL_request::next_in_list), &(MDL_request::prev_in_list)>, I_P_List_counter, I_P_List_no_push_back<MDL_request> >: 
          m_first = 0x7f2ab10439c0
        }
        schema_set = {
          m_hash = {
            key_offset = 0, 
            key_length = 0, 
            blength = 2, 
            records = 1, 
            flags = 0, 
            array = {
              buffer = 0x7f29a011e9d0 "\377\377\377\377)\177", 
              elements = 1, 
              max_element = 8, 
              alloc_increment = 511, 
              size_of_element = 16
            }, 
            get_key = 0x69019e <schema_set_get_key(uchar const*, size_t*, my_bool)>, 
            free = 0, 
            charset = 0x1174280
          }
        }
        __PRETTY_FUNCTION__ =           "bool lock_table_names(THD*, TABLE_LIST*, TABLE_LIST*, ulong, uint)"
        table = 0x0
        global_request = {
          type = MDL_INTENTION_EXCLUSIVE, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29a00d1188, 
          prev_in_list = 0x7f2ab1043be8, 
          ticket = 0x7f29a00eee70, 
          key = {
            m_length = 3, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\200\006\004\240)\177\000\000 <\004\261*\177\000\000٢\272\000\000\000\000\000\220=\004\261*\177\000\000\000J\221\000\000\000\000\000 \000\000\240)\177\000\000`\350\003\240)\177\000\000@:\004\261*\177\000\000i|\272\000\002\000\001\000\216.\320\000\000\000\000\000\200\006\004\240)\177\000\000@;\004\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000\223.\320\000\000\000\000\000\220=\004\261*\177\000\000\000J\221\000\000\000\000\000\220:\004\261*\177\000\000`\350\003\240)\177\000\000\240:\004\261*\177\000\000i|\272\000\002\000\001\000ܥ\305\000\000\000\000\000\200\006\004\240)\177\000\000|\225\306", '\000' <repeats 13 times>"\220, >\004\261*\177\000\000`\350\003\240\000\000\001\000\340:\004\261*\177\000\000V\257\272\000\000\000\000\000`\351\003\240)\177\000\000\200\006\004\240)\177\000\000\060;\004\261*\177\000\000;\241\272\000\000\000\000\000p;\004\261*\177\000\000ZE\305\000P\001\000\000ؔ\306\000\000\000\000\000|\225\306\000\000\000\000\000\210\022\000\000\000\000\000\000\200\006\004\240)\177\000\000\200\006\004\240)\177\000\000\t\000\000\000\000\000\000\000\240;\004\261*\177\000\000\026\367o\000\000\000\000\000\240;\004\261*\177\000\000`\350\003\240\210\022\000\000ZE\305\000\000\000\000\000\226m\305\000\000\000\000\000 U\305\000\000\000", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
#7  0x000000000069084e in open_tables (thd=0x977b9d0, start=0x7f2ab1043d90, counter=0x7f2ab1043dd4, flags=0, 
    prelocking_strategy=0x7f2ab1043e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4781
        table = 0x7f29a0040680
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab1043da0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab1043d90
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x977d6c0
        tables = 0xbaa2f4
        error = false
        new_frm_mem = {
          free = 0x7f29a00fce50, 
          used = 0x0, 
          pre_alloc = 0x7f29a00fce50, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#8  0x00000000006917c8 in open_and_lock_tables (thd=0x977b9d0, tables=0x7f29a00d0c40, derived=false, flags=0, 
    prelocking_strategy=0x7f2ab1043e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 0
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc555d8 "open_n_lock_single_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1043e20
        }
#9  0x000000000069128d in open_n_lock_single_table (thd=0x977b9d0, table_l=0x7f29a00d0c40, 
    lock_type=TL_READ_NO_INSERT, flags=0, prelocking_strategy=0x7f2ab1043e90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5262
        save_next_global = 0x0
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1043f90
        }
#10 0x0000000000774b19 in open_n_lock_single_table (thd=0x977b9d0, table_l=0x7f29a00d0c40, 
    lock_type=TL_READ_NO_INSERT, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:471
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x0000000000779684 in mysql_create_or_drop_trigger (thd=0x977b9d0, tables=0x7f29a00d0c40, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:479
        lock_upgrade_done = false
        mdl_ticket = 0x0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000a003e860, 
          query_tables_last = 0x7f2ab1043f10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139816754997600, 
            key_length = 139816755005056, 
            blength = 139821335199584, 
            records = 12230971, 
            flags = 2969845648, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29a0040680, 
            charset = 0x7f29a0040680
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab1043f60
          }, 
          sroutines_list_own_last = 0x7f29a003e960, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2969845712
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f2ab1044010
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1044c00
        }
#12 0x00000000006e56a9 in mysql_execute_command (thd=0x977b9d0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x977d638
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1044ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x977dd20
        first_table = 0x7f29a00d0c40
        all_tables = 0x7f29a00d0c40
        unit = 0x977d6e8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x977b9d0, 
    rawbuf=0x7f29a00c4d10 "create trigger `trg_t17_after_update` after update on `t17` for each row\nbegin\ndelete t25 from  (\nselect  \t\n group_concat(distinct (`t15`.`col170`) order by ((\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( '1'  )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col171 = @var5 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var5 % t21.col221 )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col170 is true )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col163 is not true )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   )) desc) as col170 ,\n`t15`.`col169` as col169 \nfrom\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col172 <> @var9 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( ((t15.col161) between (t15.col170) and (t15.col160)) + t15.col162 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( (( ((t15.col172) not in ((t15.col171),(t15.col165),(t15.col162),(t15.a15),(t15.col161)))) not in (( @@global.tx_isolation),( addtime((t15.col167),(t15.col159))),( timediff((t15.col159),(t15.col169))),( coalesce((t15.a15),(t15.col172),(t15.col161),(t15.col162))),( ((t15.col158) in ((t15.col158),(t15.col167),(t15.col161),(t15.col167),(t15.col159)))))) <<  monthname((t21.col226)) )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var9 is true )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non ( maketime((t15.col159),(t15.col165),(t15.col158)) % t15.col164 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non ( '1'  )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\nt25 as t25 \nwhere t25.a25>x.col170\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col166 is false )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col167 >> @var8 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var9 is false )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var2 && t22.col230 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col160 regexp t5.col47 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (@var7 between t15.col162 and t16.col173 )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`col19`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( greatest(( ((t15.col158) in ((t15.col168),(t15.col158),(t15.col169),(t15.col162),(t15.col167)))),( mid((t15.col167),(t15.a15),(t15.col164))),( ((t15.col166) between (t15.col162) and (t15.col159)))) or t15.col172 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( '1'  )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( ((t15.col162) ^ (t15.col170)) - @var3 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 like t5.col43 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col159 is not unknown )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", length=3837, parser_state=0x7f2ab1045610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x977d638
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1045b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x977b9d0, 
    packet=0x977f421 "create trigger `trg_t17_after_update` after update on `t17` for each row\nbegin\ndelete t25 from  (\nselect  \t\n group_concat(distinct (`t15`.`col170`) order by ((\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( '1'  )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col171 = @var5 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var5 % t21.col221 )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col170 is true )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col163 is not true )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   )) desc) as col170 ,\n`t15`.`col169` as col169 \nfrom\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col172 <> @var9 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( ((t15.col161) between (t15.col170) and (t15.col160)) + t15.col162 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( (( ((t15.col172) not in ((t15.col171),(t15.col165),(t15.col162),(t15.a15),(t15.col161)))) not in (( @@global.tx_isolation),( addtime((t15.col167),(t15.col159))),( timediff((t15.col159),(t15.col169))),( coalesce((t15.a15),(t15.col172),(t15.col161),(t15.col162))),( ((t15.col158) in ((t15.col158),(t15.col167),(t15.col161),(t15.col167),(t15.col159)))))) <<  monthname((t21.col226)) )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var9 is true )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non ( maketime((t15.col159),(t15.col165),(t15.col158)) % t15.col164 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non ( '1'  )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\nt25 as t25 \nwhere t25.a25>x.col170\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col166 is false )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col167 >> @var8 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var9 is false )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var2 && t22.col230 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col160 regexp t5.col47 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (@var7 between t15.col162 and t16.col173 )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`col19`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( greatest(( ((t15.col158) in ((t15.col168),(t15.col158),(t15.col169),(t15.col162),(t15.col167)))),( mid((t15.col167),(t15.a15),(t15.col164))),( ((t15.col166) between (t15.col162) and (t15.col159)))) or t15.col172 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( '1'  )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( ((t15.col162) ^ (t15.col170)) - @var3 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 like t5.col43 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col159 is not unknown )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend;\n", packet_length=3839) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29a00c5c0d ""
        parser_state = {
          m_lip = {
            m_thd = 0x977b9d0, 
            yylineno = 149, 
            yytoklen = 4, 
            yylval = 0x7f2ab1043680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29a00c5c0e "", 
            m_tok_start = 0x7f29a00c5c0e "", 
            m_tok_end = 0x7f29a00c5c0e "", 
            m_end_of_query = 0x7f29a00c5c0d "", 
            m_tok_start_prev = 0x7f29a00c5c0d "", 
            m_buf = 0x7f29a00c4d10 "create trigger `trg_t17_after_update` after update on `t17` for each row\nbegin\ndelete t25 from  (\nselect  \t\n group_concat(distinct (`t15`.`col170`) order by ((\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( '1'  )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col171 = @var5 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var5 % t21.col221 )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col170 is true )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col163 is not true )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   )) desc) as col170 ,\n`t15`.`col169` as col169 \nfrom\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col172 <> @var9 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( ((t15.col161) between (t15.col170) and (t15.col160)) + t15.col162 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( (( ((t15.col172) not in ((t15.col171),(t15.col165),(t15.col162),(t15.a15),(t15.col161)))) not in (( @@global.tx_isolation),( addtime((t15.col167),(t15.col159))),( timediff((t15.col159),(t15.col169))),( coalesce((t15.a15),(t15.col172),(t15.col161),(t15.col162))),( ((t15.col158) in ((t15.col158),(t15.col167),(t15.col161),(t15.col167),(t15.col159)))))) <<  monthname((t21.col226)) )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var9 is true )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non ( maketime((t15.col159),(t15.col165),(t15.col158)) % t15.col164 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non ( '1'  )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\nt25 as t25 \nwhere t25.a25>x.col170\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col166 is false )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col167 >> @var8 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var9 is false )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var2 && t22.col230 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col160 regexp t5.col47 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (@var7 between t15.col162 and t16.col173 )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`col19`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( greatest(( ((t15.col158) in ((t15.col168),(t15.col158),(t15.col169),(t15.col162),(t15.col167)))),( mid((t15.col167),(t15.a15),(t15.col164))),( ((t15.col166) between (t15.col162) and (t15.col159)))) or t15.col172 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( '1'  )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( ((t15.col162) ^ (t15.col170)) - @var3 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 like t5.col43 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col159 is not unknown )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_buf_length = 3837, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29a00c5c70 "create trigger `trg_t17_after_update` after update on `t17` for each row\nbegin\ndelete t25 from  (\nselect  \t\n group_concat(distinct (`t15`.`col170`) order by ((\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( '1'  )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col171 = @var5 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var5 % t21.col221 )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col170 is true )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col163 is not true )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   )) desc) as col170 ,\n`t15`.`col169` as col169 \nfrom\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col172 <> @var9 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( ((t15.col161) between (t15.col170) and (t15.col160)) + t15.col162 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( (( ((t15.col172) not in ((t15.col171),(t15.col165),(t15.col162),(t15.a15),(t15.col161)))) not in (( @@global.tx_isolation),( addtime((t15.col167),(t15.col159))),( timediff((t15.col159),(t15.col169))),( coalesce((t15.a15),(t15.col172),(t15.col161),(t15.col162))),( ((t15.col158) in ((t15.col158),(t15.col167),(t15.col161),(t15.col167),(t15.col159)))))) <<  monthname((t21.col226)) )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var9 is true )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non ( maketime((t15.col159),(t15.col165),(t15.col158)) % t15.col164 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non ( '1'  )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\nt25 as t25 \nwhere t25.a25>x.col170\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col166 is false )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col167 >> @var8 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var9 is false )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var2 && t22.col230 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col160 regexp t5.col47 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (@var7 between t15.col162 and t16.col173 )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`col19`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( greatest(( ((t15.col158) in ((t15.col168),(t15.col158),(t15.col169),(t15.col162),(t15.col167)))),( mid((t15.col167),(t15.a15),(t15.col164))),( ((t15.col166) between (t15.col162) and (t15.col159)))) or t15.col172 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( '1'  )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( ((t15.col162) ^ (t15.col170)) - @var3 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 like t5.col43 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col159 is not unknown )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_cpp_ptr = 0x7f29a00c6b6d "", 
            m_cpp_tok_start = 0x7f29a00c6b6d "", 
            m_cpp_tok_start_prev = 0x7f29a00c6b6d "", 
            m_cpp_tok_end = 0x7f29a00c6b6d "", 
            m_body_utf8 = 0x7f29a0048600 "\nbegin\ndelete t25 from  (\nselect  \t\n group_concat(distinct (`t15`.`col170`) order by ((\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( '1'  )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col171 = @var5 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var5 % t21.col221 )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col170 is true )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col163 is not true )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   )) desc) as col170 ,\n`t15`.`col169` as col169 \nfrom\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col172 <> @var9 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( ((t15.col161) between (t15.col170) and (t15.col160)) + t15.col162 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( (( ((t15.col172) not in ((t15.col171),(t15.col165),(t15.col162),(t15.a15),(t15.col161)))) not in (( @@global.tx_isolation),( addtime((t15.col167),(t15.col159))),( timediff((t15.col159),(t15.col169))),( coalesce((t15.a15),(t15.col172),(t15.col161),(t15.col162))),( ((t15.col158) in ((t15.col158),(t15.col167),(t15.col161),(t15.col167),(t15.col159)))))) <<  monthname((t21.col226)) )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var9 is true )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non ( maketime((t15.col159),(t15.col165),(t15.col158)) % t15.col164 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non ( '1'  )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\nt25 as t25 \nwhere t25.a25>x.col170\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col166 is false )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col167 >> @var8 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var9 is false )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var2 && t22.col230 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col160 regexp t5.col47 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (@var7 between t15.col162 and t16.col173 )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`col19`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( greatest(( ((t15.col158) in ((t15.col168),(t15.col158),(t15.col169),(t15.col162),(t15.col167)))),( mid((t15.col167),(t15.a15),(t15.col164))),( ((t15.col166) between (t15.col162) and (t15.col159)))) or t15.col172 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( '1'  )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( ((t15.col162) ^ (t15.col170)) - @var3 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 like t5.col43 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col159 is not unknown )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29a00494b5 "", 
            m_cpp_utf8_processed_ptr = 0x7f29a00c6b6d "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29a00c6b61 "var1` ;\n\nend", 
            m_cpp_text_end = 0x7f29a00c6b65 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x977bc48
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1045d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x977b9d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x977f420 "\003create trigger `trg_t17_after_update` after update on `t17` for each row\nbegin\ndelete t25 from  (\nselect  \t\n group_concat(distinct (`t15`.`col170`) order by ((\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( '1'  )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col171 = @var5 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var5 % t21.col221 )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( '1'  )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col170 is true )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col163 is not true )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   )) desc) as col170 ,\n`t15`.`col169` as col169 \nfrom\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col172 <> @var9 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( ((t15.col161) between (t15.col170) and (t15.col160)) + t15.col162 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( (( ((t15.col172) not in ((t15.col171),(t15.col165),(t15.col162),(t15.a15),(t15.col161)))) not in (( @@global.tx_isolation),( addtime((t15.col167),(t15.col159))),( timediff((t15.col159),(t15.col169))),( coalesce((t15.a15),(t15.col172),(t15.col161),(t15.col162))),( ((t15.col158) in ((t15.col158),(t15.col167),(t15.col161),(t15.col167),(t15.col159)))))) <<  monthname((t21.col226)) )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var9 is true )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non ( maketime((t15.col159),(t15.col165),(t15.col158)) % t15.col164 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non ( '1'  )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\nt25 as t25 \nwhere t25.a25>x.col170\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non (t15.col166 is false )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non (t15.col167 >> @var8 )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non (@var9 is false )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non (@var2 && t22.col230 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (t15.col160 regexp t5.col47 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (@var7 between t15.col162 and t16.col173 )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`col19`=`x`.`col169`\n;\n\n\nselect   count(*) from\n\t`test`.`t15` as `t15` \n\t left join `test`.`t1` as `t1` ignore index (idx1) \non ( greatest(( ((t15.col158) in ((t15.col168),(t15.col158),(t15.col169),(t15.col162),(t15.col167)))),( mid((t15.col167),(t15.a15),(t15.col164))),( ((t15.col166) between (t15.col162) and (t15.col159)))) or t15.col172 )\n \t\n\t left join `test`.`t12` as `t12` force index (PRIMARY,idx90) \non ( '1'  )\n \t\n\t natural left outer join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t21` as `t21`  \non ( '1'  )\n \t\n\t natural left join `test`.`t29` as `t29` force index (idx260,idx272,idx265)\n \t\n\t right outer join `test`.`t22` as `t22`  \non ( ((t15.col162) ^ (t15.col170)) - @var3 )\n \t\n\t natural left join `test`.`t7` as `t7` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 like t5.col43 )\n \t\n\t right outer join `test`.`t16` as `t16`  \non (t15.col159 is not unknown )\n  where\nt15.col169 < timestamp(now()) \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend;\n"
        packet_length = 3840
        net = 0x977bc48
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x977b9d0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x977bc48
        rc = false
        thd = 0x977b9d0
#17 0x00000000006b6753 in handle_one_connection (arg=0x977b9d0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x977b9d0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 13 (Thread 0x7f2ab1005700 (LWP 2392)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x978aff0, mp=0x978af80, abstime=0x7f2ab1002160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x978aff0, mutex=0x978af80, abstime=0x7f2ab1002160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2969575504, 
          m_cond = 0x91e646, 
          m_mutex = 0x978af80, 
          m_thread = 0x978b058, 
          m_timer_start = 139821334929536, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x978af80 "", 
          m_src_line = 158904304, 
          m_wait = 0x978aeb0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x978af80, owner=0x978af78, abs_timeout=0x7f2ab1002160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x978af80, mdl_request=0x7f29ac012590, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29ac051630
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29b4058770
        abs_timeout = {
          tv_sec = 1331672650, 
          tv_nsec = 416170600
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x978aeb0, ot_ctx=0x7f2ab1002a10, mdl_request=0x7f29ac012590, 
    flags=0, mdl_ticket=0x7f2ab1002840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab1002a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29ac0526d0, 
          prev_in_list = 0x7f2ab1002320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 8, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060#\000\261*\177\000\000p\"\000\261*\177\000\000\000J\221\000\000\000\000\000\260&\005\254)\177\000\000\320&\005\254)\177\000\000\021\000\000\000\000\000\000\000\000q\002\324)\177\000\000 q\002\324)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\260%\005\254\000\000\001\000\020p\002\324)\177\000\000\000J\221\000\000\000\000\000\260&\005\254)\177\000\000\260%\005\254)\177\000\000\360\"\000\261*\177\000\000i|\272\000\000\000\000\000\260&\005\254)\177\000\000\320&\005\254)\177\000\000 #\000\261*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\320&\005\254\257\n\000\000\320&\005\254)\177\000\000\t\000\000\000\000\000\000\000`#\000\261*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\360\005\002\324)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020(\000\261*\177\000\000\220#\000\261*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 14 times>, "q\002\324)\177\000\000\260%\005\254\000\000\001\000\260#\000\261*\177\000\000V\257\272\000\000\000\000\000\000\"\001\254)\177\000\000Z\237W\000\000\000\000\000\000$\000\261*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x978aeb0, table_list=0x7f29ac012200, mem_root=0x7f2ab10029d0, 
    ot_ctx=0x7f2ab1002a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab1002a10
        key =           "test\000t16\000\000\000\000\000!\000\000\000(\000\261*\177\000\000٢\272\000\000\000\000\000\360(\000\261*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000\320(\000\261*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@*\000\261*\177\000\000\340&\000\261*\177\000\000̪i\000\000\000\000\000\000)\000\261*\177\000\000\320(\000\261*\177\000\000p)\000\261*\177\000\000\030\005i\000\000\000\000\000@\361\003\254)\177\000\000\360\362\003\254\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "`\026\001\254)\177\000\000\000J\221\000\000\000\000\000@\361\003\254)\177\000\000\260%\005\254)\177\000\000P'\000\261*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\320&\005\254)\177\000\000P(\000\261*\177\000\000\377\243\272\000\000\000\000\000\030\313x\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\260%\005\254)\177\000\000\240'\000\261*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\320&\005\254)\177\000\000\240(\000\261*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260(\000\261*\177\000\000\360'\000\261*\177\000\000\260%\005\254\000\000\001\000`\026\001\254)\177\000\000\320&"
        alias = 0x7f29ac0634d0 "t16"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab10028f0
        }
        mdl_ticket = 0x7f29ac0526b0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 2886018736
#7  0x000000000068fbe0 in open_and_process_table (thd=0x978aeb0, lex=0x978cb18, tables=0x7f29ac012200, 
    counter=0x7f2ab1002b34, flags=0, prelocking_strategy=0x7f2ab1002b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab1002a10, new_frm_mem=0x7f2ab10029d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab1002a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x978aeb0, start=0x7f2ab1002af0, counter=0x7f2ab1002b34, flags=0, 
    prelocking_strategy=0x7f2ab1002b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab1002b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29ac011668
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x978cba0
        tables = 0x7f29ac012200
        error = false
        new_frm_mem = {
          free = 0x7f29ac047970, 
          used = 0x0, 
          pre_alloc = 0x7f29ac047970, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x978aeb0, tables=0x7f29ac061fa8, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab1002b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 4
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab1003c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x978aeb0, tables=0x7f29ac061fa8, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x978aeb0, all_tables=0x7f29ac061fa8)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x978cb18
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x978aeb0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x978cb18
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab1003ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x978d200
        first_table = 0x7f29ac061fa8
        all_tables = 0x7f29ac061fa8
        unit = 0x978cbc8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x978aeb0, 
    rawbuf=0x7f29ac0616e0 "explain \nselect distinctrow sql_no_cache  \t col179 from\n\t`test`.`t27` as `t27` ignore index (idx238,PRIMARY,idx240,idx247)\n\t straight_join `test`.`t19` as `t19` force index (idx132,idx143) \non (t27.col258 is not unknown )\n \t\n\t natural right join `test`.`t4` as `t4` use index (PRIMARY)\n \t\n\t cross join `test`.`t16` as `t16`  \non (t27.a27 < t16.col181 )\n \t\n\t straight_join `test`.`t21` as `t21`  \non (@var2 is not false )\n \t\n\t inner join `test`.`t3` as `t3` use index (idx13,idx15,idx15) \non ( '1'  )\n \t\n\t left outer join `test`.`t7` as `t7` ignore index (idx31) \non ( char_length((t27.a27)) >> t27.a27 )\n \t\n\t right join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` force index (idx39,idx39) \non (@var4 >> @var9 )\n  \n\n \n \n  \norder by \n\tt27.col258 desc,\n\tt8.a8\nlimit 259", length=795, parser_state=0x7f2ab1004610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x978cb18
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab1004b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x978aeb0, 
    packet=0x978dfc1 "explain \nselect distinctrow sql_no_cache  \t col179 from\n\t`test`.`t27` as `t27` ignore index (idx238,PRIMARY,idx240,idx247)\n\t straight_join `test`.`t19` as `t19` force index (idx132,idx143) \non (t27.col258 is not unknown )\n \t\n\t natural right join `test`.`t4` as `t4` use index (PRIMARY)\n \t\n\t cross join `test`.`t16` as `t16`  \non (t27.a27 < t16.col181 )\n \t\n\t straight_join `test`.`t21` as `t21`  \non (@var2 is not false )\n \t\n\t inner join `test`.`t3` as `t3` use index (idx13,idx15,idx15) \non ( '1'  )\n \t\n\t left outer join `test`.`t7` as `t7` ignore index (idx31) \non ( char_length((t27.a27)) >> t27.a27 )\n \t\n\t right join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` force index (idx39,idx39) \non (@var4 >> @var9 )\n  \n\n \n \n  \norder by \n\tt27.col258 desc,\n\tt8.a8\nlimit 259\n   ", packet_length=799) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29ac0619fb ""
        parser_state = {
          m_lip = {
            m_thd = 0x978aeb0, 
            yylineno = 34, 
            yytoklen = 3, 
            yylval = 0x7f2ab1002680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29ac0619fc "", 
            m_tok_start = 0x7f29ac0619fc "", 
            m_tok_end = 0x7f29ac0619fc "", 
            m_end_of_query = 0x7f29ac0619fb "", 
            m_tok_start_prev = 0x7f29ac0619fb "", 
            m_buf = 0x7f29ac0616e0 "explain \nselect distinctrow sql_no_cache  \t col179 from\n\t`test`.`t27` as `t27` ignore index (idx238,PRIMARY,idx240,idx247)\n\t straight_join `test`.`t19` as `t19` force index (idx132,idx143) \non (t27.col258 is not unknown )\n \t\n\t natural right join `test`.`t4` as `t4` use index (PRIMARY)\n \t\n\t cross join `test`.`t16` as `t16`  \non (t27.a27 < t16.col181 )\n \t\n\t straight_join `test`.`t21` as `t21`  \non (@var2 is not false )\n \t\n\t inner join `test`.`t3` as `t3` use index (idx13,idx15,idx15) \non ( '1'  )\n \t\n\t left outer join `test`.`t7` as `t7` ignore index (idx31) \non ( char_length((t27.a27)) >> t27.a27 )\n \t\n\t right join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` force index (idx39,idx39) \non (@var4 >> @var9 )\n  \n\n \n \n  \norder by \n\tt27.col258 desc,\n\tt8.a8\nlimit 259", 
            m_buf_length = 795, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29ac061a58 "explain \nselect distinctrow sql_no_cache  \t col179 from\n\t`test`.`t27` as `t27` ignore index (idx238,PRIMARY,idx240,idx247)\n\t straight_join `test`.`t19` as `t19` force index (idx132,idx143) \non (t27.col258 is not unknown )\n \t\n\t natural right join `test`.`t4` as `t4` use index (PRIMARY)\n \t\n\t cross join `test`.`t16` as `t16`  \non (t27.a27 < t16.col181 )\n \t\n\t straight_join `test`.`t21` as `t21`  \non (@var2 is not false )\n \t\n\t inner join `test`.`t3` as `t3` use index (idx13,idx15,idx15) \non ( '1'  )\n \t\n\t left outer join `test`.`t7` as `t7` ignore index (idx31) \non ( char_length((t27.a27)) >> t27.a27 )\n \t\n\t right join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` force index (idx39,idx39) \non (@var4 >> @var9 )\n  \n\n \n \n  \norder by \n\tt27.col258 desc,\n\tt8.a8\nlimit 259", 
            m_cpp_ptr = 0x7f29ac061d73 "", 
            m_cpp_tok_start = 0x7f29ac061d73 "", 
            m_cpp_tok_start_prev = 0x7f29ac061d73 "", 
            m_cpp_tok_end = 0x7f29ac061d73 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29ac061d70 "259", 
            m_cpp_text_end = 0x7f29ac061d73 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x978b128
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab1004d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x978aeb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x978dfc0 "\003explain \nselect distinctrow sql_no_cache  \t col179 from\n\t`test`.`t27` as `t27` ignore index (idx238,PRIMARY,idx240,idx247)\n\t straight_join `test`.`t19` as `t19` force index (idx132,idx143) \non (t27.col258 is not unknown )\n \t\n\t natural right join `test`.`t4` as `t4` use index (PRIMARY)\n \t\n\t cross join `test`.`t16` as `t16`  \non (t27.a27 < t16.col181 )\n \t\n\t straight_join `test`.`t21` as `t21`  \non (@var2 is not false )\n \t\n\t inner join `test`.`t3` as `t3` use index (idx13,idx15,idx15) \non ( '1'  )\n \t\n\t left outer join `test`.`t7` as `t7` ignore index (idx31) \non ( char_length((t27.a27)) >> t27.a27 )\n \t\n\t right join `test`.`t14` as `t14`  \non ( '1'  )\n \t\n\t right join `test`.`t8` as `t8` force index (idx39,idx39) \non (@var4 >> @var9 )\n  \n\n \n \n  \norder by \n\tt27.col258 desc,\n\tt8.a8\nlimit 259\n   "
        packet_length = 800
        net = 0x978b128
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x978aeb0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x978b128
        rc = false
        thd = 0x978aeb0
#17 0x00000000006b6753 in handle_one_connection (arg=0x978aeb0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x978aeb0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 12 (Thread 0x7f2ab0fc4700 (LWP 2393)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97a1e70, mp=0x97a1e00, abstime=0x7f2ab0fc1870, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97a1e70, mutex=0x97a1e00, abstime=0x7f2ab0fc1870, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2969311088, 
          m_cond = 0x97a1df8, 
          m_mutex = 0x7f2ab0fc1790, 
          m_thread = 0x96d7920, 
          m_timer_start = 139821334665168, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97a1e00 "", 
          m_src_line = 158998128, 
          m_wait = 0x97a1d30
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97a1e00, owner=0x97a1df8, abs_timeout=0x7f2ab0fc1870, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x97a1e00, mdl_request=0x7f29a8082c90, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140079, 
          tv_nsec = 343837100
        }
        ticket = 0x7f29a80fe480
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc065510
        abs_timeout = {
          tv_sec = 1331672678, 
          tv_nsec = 38352400
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063cc6e in MDL_context::acquire_locks (this=0x97a1e00, mdl_requests=0x7f2ab0fc1be0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1925
        sort_buf = 0x7f29a82cb050
        p_req = 0x7f29a82cb060
        mdl_svp = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        it = {
          list = 0x7f2ab0fc1be0, 
          current = 0x0
        }
        req_count = 3
#6  0x00000000006904f9 in lock_table_names (thd=0x97a1d30, tables_start=0x7f29a8082900, tables_end=0x0, 
    lock_wait_timeout=31536000, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4604
        mdl_requests = {
          <I_P_List_counter> = {
            m_counter = 3
          }, 
          <I_P_List_no_push_back<MDL_request>> = {<No data fields>}, 
          members of I_P_List<MDL_request, I_P_List_adapter<MDL_request, &(MDL_request::next_in_list), &(MDL_request::prev_in_list)>, I_P_List_counter, I_P_List_no_push_back<MDL_request> >: 
          m_first = 0x7f2ab0fc19c0
        }
        schema_set = {
          m_hash = {
            key_offset = 0, 
            key_length = 0, 
            blength = 2, 
            records = 1, 
            flags = 0, 
            array = {
              buffer = 0x7f29a80fe3a0 "\377\377\377\377)\177", 
              elements = 1, 
              max_element = 8, 
              alloc_increment = 511, 
              size_of_element = 16
            }, 
            get_key = 0x69019e <schema_set_get_key(uchar const*, size_t*, my_bool)>, 
            free = 0, 
            charset = 0x1174280
          }
        }
        __PRETTY_FUNCTION__ =           "bool lock_table_names(THD*, TABLE_LIST*, TABLE_LIST*, ulong, uint)"
        table = 0x0
        global_request = {
          type = MDL_INTENTION_EXCLUSIVE, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29a8082e48, 
          prev_in_list = 0x7f2ab0fc1be8, 
          ticket = 0x7f29a80fe430, 
          key = {
            m_length = 3, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\060[\004\250)\177\000\000 \034\374\260*\177\000\000٢\272\000\000\000\000\000\220\035\374\260*\177\000\000\000J\221\000\000\000\000\000 \000\000\250)\177\000\000\340\336\a\250)\177\000\000@\032\374\260*\177\000\000i|\272\000\002\000\001\000\216.\320\000\000\000\000\000\060[\004\250)\177\000\000@\033\374\260*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000\223.\320\000\000\000\000\000\220\035\374\260*\177\000\000\000J\221\000\000\000\000\000\220\032\374\260*\177\000\000\340\336\a\250)\177\000\000\240\032\374\260*\177\000\000i|\272\000\002\000\001\000ܥ\305\000\000\000\000\000\060[\004\250)\177\000\000|\225\306", '\000' <repeats 13 times>"\220, \036\374\260*\177\000\000\340\336\a\250\000\000\001\000\340\032\374\260*\177\000\000V\257\272\000\000\000\000\000\340\337\a\250)\177\000\000\060[\004\250)\177\000\000\060\033\374\260*\177\000\000;\241\272\000\000\000\000\000p\033\374\260*\177\000\000ZE\305\000P\001\000\000ؔ\306\000\000\000\000\000|\225\306\000\000\000\000\000\210\022\000\000\000\000\000\000\060[\004\250)\177\000\000\060[\004\250)\177\000\000\t\000\000\000\000\000\000\000\240\033\374\260*\177\000\000\026\367o\000\000\000\000\000\240\033\374\260*\177\000\000\340\336\a\250\210\022\000\000ZE\305\000\000\000\000\000\226m\305\000\000\000\000\000 U\305\000\000\000", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
#7  0x000000000069084e in open_tables (thd=0x97a1d30, start=0x7f2ab0fc1d90, counter=0x7f2ab0fc1dd4, flags=0, 
    prelocking_strategy=0x7f2ab0fc1e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4781
        table = 0x7f29a8045b30
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0fc1da0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab0fc1d90
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97a3a20
        tables = 0xbaa2f4
        error = false
        new_frm_mem = {
          free = 0x7f29a8070270, 
          used = 0x0, 
          pre_alloc = 0x7f29a8070270, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#8  0x00000000006917c8 in open_and_lock_tables (thd=0x97a1d30, tables=0x7f29a8082900, derived=false, flags=0, 
    prelocking_strategy=0x7f2ab0fc1e90) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 0
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc555d8 "open_n_lock_single_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0fc1e20
        }
#9  0x000000000069128d in open_n_lock_single_table (thd=0x97a1d30, table_l=0x7f29a8082900, 
    lock_type=TL_READ_NO_INSERT, flags=0, prelocking_strategy=0x7f2ab0fc1e90)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5262
        save_next_global = 0x0
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0fc1f90
        }
#10 0x0000000000774b19 in open_n_lock_single_table (thd=0x97a1d30, table_l=0x7f29a8082900, 
    lock_type=TL_READ_NO_INSERT, flags=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:471
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x0000000000779684 in mysql_create_or_drop_trigger (thd=0x97a1d30, tables=0x7f29a8082900, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:479
        lock_upgrade_done = false
        mdl_ticket = 0x0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000a807dee0, 
          query_tables_last = 0x7f2ab0fc1f10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139816889475040, 
            key_length = 139816889244464, 
            blength = 139821334667104, 
            records = 12230971, 
            flags = 2969313168, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29a8045b30, 
            charset = 0x7f29a8045b30
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab0fc1f60
          }, 
          sroutines_list_own_last = 0x7f29a807dfe0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2969313232
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x7f2ab0fc2010
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0fc2c00
        }
#12 0x00000000006e56a9 in mysql_execute_command (thd=0x97a1d30)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x97a3998
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0fc2ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97a4080
        first_table = 0x7f29a8082900
        all_tables = 0x7f29a8082900
        unit = 0x97a3a48
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x97a1d30, 
    rawbuf=0x7f29a8082170 "create trigger `trg_t27_before_update` before update on `t27` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (t4.col26 is not unknown )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col282>x.col30\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non ( uncompress(( acos((t4.col26)))) >  @@global.server_id )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`a3`=`x`.`col230`\n;\n\n\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (~t4.col25 )\n  \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", length=821, parser_state=0x7f2ab0fc3610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97a3998
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0fc3b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97a1d30, 
    packet=0x97a5451 "create trigger `trg_t27_before_update` before update on `t27` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (t4.col26 is not unknown )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col282>x.col30\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non ( uncompress(( acos((t4.col26)))) >  @@global.server_id )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`a3`=`x`.`col230`\n;\n\n\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (~t4.col25 )\n  \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend;\n", packet_length=823)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29a80824a5 ""
        parser_state = {
          m_lip = {
            m_thd = 0x97a1d30, 
            yylineno = 47, 
            yytoklen = 4, 
            yylval = 0x7f2ab0fc1680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29a80824a6 "", 
            m_tok_start = 0x7f29a80824a6 "", 
            m_tok_end = 0x7f29a80824a6 "", 
            m_end_of_query = 0x7f29a80824a5 "", 
            m_tok_start_prev = 0x7f29a80824a5 "", 
            m_buf = 0x7f29a8082170 "create trigger `trg_t27_before_update` before update on `t27` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (t4.col26 is not unknown )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col282>x.col30\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non ( uncompress(( acos((t4.col26)))) >  @@global.server_id )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`a3`=`x`.`col230`\n;\n\n\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (~t4.col25 )\n  \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_buf_length = 821, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29a8082508 "create trigger `trg_t27_before_update` before update on `t27` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (t4.col26 is not unknown )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col282>x.col30\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non ( uncompress(( acos((t4.col26)))) >  @@global.server_id )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`a3`=`x`.`col230`\n;\n\n\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (~t4.col25 )\n  \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_cpp_ptr = 0x7f29a808283d "", 
            m_cpp_tok_start = 0x7f29a808283d "", 
            m_cpp_tok_start_prev = 0x7f29a808283d "", 
            m_cpp_tok_end = 0x7f29a808283d "", 
            m_body_utf8 = 0x7f29a806c7e0 "\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (t4.col26 is not unknown )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col282>x.col30\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non ( uncompress(( acos((t4.col26)))) >  @@global.server_id )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`a3`=`x`.`col230`\n;\n\n\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (~t4.col25 )\n  \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29a806cacb "", 
            m_cpp_utf8_processed_ptr = 0x7f29a808283d "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 119 'w', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29a8082831 "var1` ;\n\nend", 
            m_cpp_text_end = 0x7f29a8082835 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97a1fa8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0fc3d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x97a1d30) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97a5450 "\003create trigger `trg_t27_before_update` before update on `t27` for each row\nbegin\ndelete t29 from  (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (t4.col26 is not unknown )\n  \n\n \n \n \nlimit 1\n   ) `x`,\nt29 as t29 \nwhere t29.col282>x.col30\n;\n\nupdate (\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non ( uncompress(( acos((t4.col26)))) >  @@global.server_id )\n  \n\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t3` as `t3` set `t3`.`a3`=`x`.`col230`\n;\n\n\nselect   count(*) from\n\t`test`.`t4` as `t4` force index (PRIMARY,idx19)\n\t straight_join `test`.`t22` as `t22` use index (idx185,idx180) \non (~t4.col25 )\n  \n\n \n \n \nlimit 1\n  into @`var0`,@`var1` ;\n\nend;\n"
        packet_length = 824
        net = 0x97a1fa8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97a1d30)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97a1fa8
        rc = false
        thd = 0x97a1d30
#17 0x00000000006b6753 in handle_one_connection (arg=0x97a1d30)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97a1d30
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 11 (Thread 0x7f2ab0f83700 (LWP 2394)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97a96c0, mp=0x97a9650, abstime=0x7f2ab0f80160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97a96c0, mutex=0x97a9650, abstime=0x7f2ab0f80160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2969043024, 
          m_cond = 0x91e646, 
          m_mutex = 0x97a9650, 
          m_thread = 0x97a9728, 
          m_timer_start = 139821334397056, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97a9650 "", 
          m_src_line = 159028928, 
          m_wait = 0x97a9580
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97a9650, owner=0x97a9648, abs_timeout=0x7f2ab0f80160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x97a9650, mdl_request=0x7f29b40a11b8, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29b4167950
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 993570700
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x97a9580, ot_ctx=0x7f2ab0f80a10, mdl_request=0x7f29b40a11b8, 
    flags=0, mdl_ticket=0x7f2ab0f80840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab0f80a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29b4011f70, 
          prev_in_list = 0x7f2ab0f80320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\003\370\260*\177\000\000p\002\370\260*\177\000\000\000J\221\000\000\000\000\000\340t\005\264)\177\000\000p\037\001\264)\177\000\000\023\000\000\000\000\000\000\000\360\276\032\300)\177\000\000\020\277\032\300)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\340s\005\264\000\000\001\000\000\276\032\300)\177\000\000\000J\221\000\000\000\000\000\340t\005\264)\177\000\000\340s\005\264)\177\000\000\360\002\370\260*\177\000\000i|\272\000\000\000\000\000\340t\005\264)\177\000\000p\037\001\264)\177\000\000 \003\370\260*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000p\037\001\264\257\n\000\000p\037\001\264)\177\000\000\t\000\000\000\000\000\000\000`\003\370\260*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\340\306\032\300)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\b\370\260*\177\000\000\220\003\370\260*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>"\360, \276\032\300)\177\000\000\340s\005\264\000\000\001\000\260\003\370\260*\177\000\000V\257\272\000\000\000\000\000(\016\n\264)\177\000\000Z\237W\000\000\000\000\000\000\004\370\260*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x97a9580, table_list=0x7f29b40a0e28, mem_root=0x7f2ab0f809d0, 
    ot_ctx=0x7f2ab0f80a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab0f80a10
        key =           "test\000t6\000\000\000\000\000#\000\000\000\240\b\370\260*\177\000\000٢\272\000\000\000\000\000\360\b\370\260*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000\320\b\370\260*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\n\370\260*\177\000\000\340\006\370\260*\177\000\000̪i\000\000\000\000\000\000\t\370\260*\177\000\000\320\b\370\260*\177\000\000p\t\370\260*\177\000\000\030\005i\000\000\000\000\000\020\a\370\260*\177\000\000@\364\n\264\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\330, \a\n\264)\177\000\000\000J\221\000\000\000\000\000\370\205\000\310)\177\000\000\340s\005\264)\177\000\000P\a\370\260*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000p\037\001\264)\177\000\000P\b\370\260*\177\000\000\377\243\272\000\000\000\000\000\350\261z\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\340s\005\264)\177\000\000\240\a\370\260*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000p\037\001\264)\177\000\000\240\b\370\260*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\b\370\260*\177\000\000\360\a\370\260*\177\000\000\340s\005\264\000\000\001\000\330\a\n\264)\177\000\000p\037"
        alias = 0x7f29b40a0d68 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0f808f0
        }
        mdl_ticket = 0x7f29b40574e0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 3020256480
#7  0x000000000068fbe0 in open_and_process_table (thd=0x97a9580, lex=0x97ab1e8, tables=0x7f29b40a0e28, 
    counter=0x7f2ab0f80b34, flags=0, prelocking_strategy=0x7f2ab0f80b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab0f80a10, new_frm_mem=0x7f2ab0f809d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0f80a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x97a9580, start=0x7f2ab0f80af0, counter=0x7f2ab0f80b34, flags=0, 
    prelocking_strategy=0x7f2ab0f80b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0f80b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29b40a07e0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97ab270
        tables = 0x7f29b40a0e28
        error = false
        new_frm_mem = {
          free = 0x7f29b413a250, 
          used = 0x0, 
          pre_alloc = 0x7f29b413a250, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x97a9580, tables=0x7f29b40a07d8, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab0f80b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 2
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0f81c00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x97a9580, tables=0x7f29b40a07d8, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x97a9580, all_tables=0x7f29b40a07d8)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x97ab1e8
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x97a9580)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x97ab1e8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0f81ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97ab8d0
        first_table = 0x7f29b40a07d8
        all_tables = 0x7f29b40a07d8
        unit = 0x97ab298
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x97a9580, 
    rawbuf=0x7f29b409fb40 "select  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1", length=1315, 
    parser_state=0x7f2ab0f82610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97ab1e8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0f82b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97a9580, 
    packet=0x97acfd1 "\nselect  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1\n   ", packet_length=1320)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b40a0063 ""
        parser_state = {
          m_lip = {
            m_thd = 0x97a9580, 
            yylineno = 41, 
            yytoklen = 1, 
            yylval = 0x7f2ab0f80680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b40a0064 "ural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t (\nselect   count(*) from\n\t`test`select  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1", 
            m_tok_start = 0x7f29b40a0064 "ural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t (\nselect   count(*) from\n\t`test`select  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1", 
            m_tok_end = 0x7f29b40a0064 "ural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t (\nselect   count(*) from\n\t`test`select  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1", 
            m_end_of_query = 0x7f29b40a0063 "", 
            m_tok_start_prev = 0x7f29b40a0063 "", 
            m_buf = 0x7f29b409fb40 "select  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1", 
            m_buf_length = 1315, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b40a00c0 "select  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1", 
            m_cpp_ptr = 0x7f29b40a05e3 "", 
            m_cpp_tok_start = 0x7f29b40a05e3 "", 
            m_cpp_tok_start_prev = 0x7f29b40a05e3 "", 
            m_cpp_tok_end = 0x7f29b40a05e3 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b40a05e2 "1", 
            m_cpp_text_end = 0x7f29b40a05e3 "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97a97f8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0f82d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x97a9580) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97acfd0 "\003\nselect  \t\n`t8`.`col60` as col60 \nfrom\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( convert_tz(( greatest((t17.col186),(t17.a17),(t17.col185),(t17.a17),(t17.a17))),( greatest((t17.a17),(t17.col185),(t17.col186),(t17.col186))),( export_set((t17.col185),(t17.a17),(t17.col185),(t17.col186)))) &&  (( bit_length((t6.col55))) not in (( ((t6.col54) not in ((t6.col55),(t6.a6),(t6.col52),(t6.col55)))),( now()),( subdate((t6.col54),interval (t6.col55) hour)),( (case when (t6.col53) then (t6.col52) else (t6.col55) end)))) )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non (@var1 = @var4 )\n  \n\n \n \n \nlimit 1\n    union \nselect   count(*) from\n\t`test`.`t17` as `t17` ignore index (idx119,idx119)\n\t inner join `test`.`t6` as `t6` force index (idx24,idx28,idx28) \non ( '1'  )\n \t\n\t natural left join `test`.`t13` as `t13` \n \t\n\t natural join `test`.`t8` as `t8` \n \t\n\t natural left join `test`.`t3` as `t3` force index (idx13)\n \t\n\t left join `test`.`t22` as `t22` ignore index (idx189,idx189) \non ( ((t17.col185) between (t17.a17) and (t17.col185)) + t17.col186 )\n  \n\n \n \n \nlimit 1\n   "
        packet_length = 1321
        net = 0x97a97f8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97a9580)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97a97f8
        rc = false
        thd = 0x97a9580
#17 0x00000000006b6753 in handle_one_connection (arg=0x97a9580)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97a9580
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 10 (Thread 0x7f2ab0f42700 (LWP 2395)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97b1240, mp=0x97b11d0, abstime=0x7f2ab0f3fb90, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97b1240, mutex=0x97b11d0, abstime=0x7f2ab0f3fb90, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2968779408, 
          m_cond = 0x97b11c8, 
          m_mutex = 0x7f2ab0f3fab0, 
          m_thread = 0x9677700, 
          m_timer_start = 139821334133488, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97b11d0 "", 
          m_src_line = 159060544, 
          m_wait = 0x97b1100
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97b11d0, owner=0x97b11c8, abs_timeout=0x7f2ab0f3fb90, 
    set_status_on_timeout=false, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0x0
        result = 32554
        wait_result = 0
#4  0x000000000063c7e5 in MDL_context::acquire_lock (this=0x97b11d0, mdl_request=0x7f2ab0f3fc50, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1815
        abs_shortwait = {
          tv_sec = 1300140078, 
          tv_nsec = 787124500
        }
        ticket = 0x7f29bc06dcf0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc009810
        abs_timeout = {
          tv_sec = 1331672678, 
          tv_nsec = 38563500
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000063ce89 in MDL_context::upgrade_shared_lock_to_exclusive (this=0x97b11d0, mdl_ticket=0x7f29bc334db0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1994
        mdl_xlock_request = {
          type = MDL_EXCLUSIVE, 
          duration = MDL_TRANSACTION, 
          next_in_list = 0x83765b, 
          prev_in_list = 0xc55792, 
          ticket = 0x0, 
          key = {
            m_length = 10, 
            m_db_name_length = 4, 
            m_ptr =               "\002test\000t26\000\000\000\222W\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200*\177\000\000\000\375\363\260*\177\000\000\360\060\b\274)\177\000\000\340\330'\274)\177\000\000\320\374\363\260\000\000\000\000\340\067\b\274)\177\000\000,\a", '\000' <repeats 14 times>, "`\375\363\260*\177\000\000\205\"i\000\000\000\000\000\360\060\b\274)\177\000\000\000J\221\000\000\000\000\000\360\060\b\274)\177\000\000\360\347\003\274)\177\000\000 \375\363\260*\177\000\000i|\272\000\002\000\001\000\001\000\000\000\000\000\000\000\000J\221\000\000\000\000\000 \376\363\260*\177\000\000\360\347\003\274)\177\000\000P\375\363\260*\177\000\000i|\272\000\002\000\001\000aH\305\000\000\000\000\000\000X\004\274)\177\000\000P\376\363\260*\177\000\000\377\243\272\000\000\000\000\000\360\375\363\260*\177\000\000\320N\305\000\000\000\000\000\b\000\000\000\060\000\000\000`\376\363\260*\177\000\000\240\375\363\260*\177\000\000\300\202a\302\062\000\000\000\001\000\000\000\000\000\000\000\000X\004\274)\177\000\000\330U\305\000\000\000\000\000\315\354\036\324)\177\000\000`\351\036\324)\177\000\000'\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000[\t\000\000\000\000\000\000\360\375\363\260*\177\000\000\360\347\003\274\000\000\001\000\360\060\b\274)\177\000\000\000J\221\000\000\000\000\000\360\350\003\274)\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        mdl_svp = {
          m_stmt_ticket = 0x7f29bc30e6c0, 
          m_trans_ticket = 0x7f29bc334db0
        }
        __PRETTY_FUNCTION__ =           "bool MDL_context::upgrade_shared_lock_to_exclusive(MDL_ticket*, ulong)"
        is_new_ticket = false
        _db_stack_frame_ = {
          func = 0xc54eb0 "wait_while_table_is_used", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0f3fe80
        }
#6  0x000000000068c185 in wait_while_table_is_used (thd=0x97b1100, table=0x98d88f0, function=HA_EXTRA_FORCE_REOPEN)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2224
        _db_stack_frame_ = {
          func = 0xc75fd1 "mysql_create_or_drop_trigger", 
          file = 0xc75f98 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0f3ff90
        }
#7  0x00000000007796f4 in mysql_create_or_drop_trigger (thd=0x97b1100, tables=0x7f29bc0830f0, create=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_trigger.cc:489
        lock_upgrade_done = false
        mdl_ticket = 0x7f29bc334db0
        backup = {
          sql_command = 13123577, 
          query_tables = 0x10000bc03e7f0, 
          query_tables_last = 0x7f2ab0f3ff10, 
          query_tables_own_last = 0xbaaf56, 
          sroutines = {
            key_offset = 139817224759536, 
            key_length = 139817224787968, 
            blength = 139821334134624, 
            records = 12230971, 
            flags = 2968780688, 
            array = {
              buffer = 0x91e00baa13b <Address 0x91e00baa13b out of bounds>, 
              elements = 12890392, 
              max_element = 0, 
              alloc_increment = 12891576, 
              size_of_element = 0
            }, 
            get_key = 0xc4b658, 
            free = 0x7f29bc045800, 
            charset = 0x7f29bc045800
          }, 
          sroutines_list = {
            <Sql_alloc> = {<No data fields>}, 
            members of SQL_I_List<Sroutine_hash_entry>: 
            elements = 0, 
            first = 0x0, 
            next = 0x7f2ab0f3ff60
          }, 
          sroutines_list_own_last = 0x7f29bc03e8f0, 
          sroutines_list_own_elements = 0, 
          static BINLOG_STMT_UNSAFE_ALL_FLAGS = 1023, 
          static binlog_stmt_unsafe_errcode =             {[0] = 1668,
            [1] = 1669,
            [2] = 1670,
            [3] = 1671,
            [4] = 1672,
            [5] = 1673,
            [6] = 1674,
            [7] = 1675,
            [8] = 1692,
            [9] = 1693}, 
          binlog_stmt_flags = 0, 
          stmt_accessed_table_flag = 2968780752
        }
        __PRETTY_FUNCTION__ =           "bool mysql_create_or_drop_trigger(THD*, TABLE_LIST*, bool)"
        table = 0x98d88f0
        result = true
        stmt_query = {
          Ptr = 0x0, 
          str_length = 0, 
          Alloced_length = 0, 
          alloced = false, 
          str_charset = 0x1406d00
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0f40c00
        }
#8  0x00000000006e56a9 in mysql_execute_command (thd=0x97b1100)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4198
        res = 0
        lex = 0x97b2d68
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0f40ee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97b3450
        first_table = 0x7f29bc0830f0
        all_tables = 0x7f29bc0830f0
        unit = 0x97b2e18
        have_table_map_for_update = false
#9  0x00000000006e8823 in mysql_parse (thd=0x97b1100, 
    rawbuf=0x7f29bc082170 "create trigger `trg_t26_before_insert` before insert on `t26` for each row\nbegin\ndelete t14 from  (\nselect  \t\n`t5`.`col37` as col37 \nfrom\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 = @var6 )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non (  updatexml((t3.col21),(t3.col23),(t3.col20)) and t3.col21 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (t3.col23 * t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\nt14 as t14 \nwhere t14.col152>x.col37\n;\n\nupdate (\nselect  \t col37 from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var8 is not null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( '1'  )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non ( substring((t3.col19) from (t3.col23) for (t3.col22)) ^  interval((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258),(t27.col258)) )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col266`=`x`.`col37`\n;\n\n\nselect   count(*) from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (t3.col22 is null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( concat_ws((t3.col19),(t3.col22),(t3.col21)) <= @var4 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (@var7 << t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", length=1836, parser_state=0x7f2ab0f41610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97b2d68
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0f41b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#10 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97b1100, 
    packet=0x97b4401 "create trigger `trg_t26_before_insert` before insert on `t26` for each row\nbegin\ndelete t14 from  (\nselect  \t\n`t5`.`col37` as col37 \nfrom\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 = @var6 )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non (  updatexml((t3.col21),(t3.col23),(t3.col20)) and t3.col21 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (t3.col23 * t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\nt14 as t14 \nwhere t14.col152>x.col37\n;\n\nupdate (\nselect  \t col37 from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var8 is not null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( '1'  )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non ( substring((t3.col19) from (t3.col23) for (t3.col22)) ^  interval((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258),(t27.col258)) )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col266`=`x`.`col37`\n;\n\n\nselect   count(*) from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (t3.col22 is null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( concat_ws((t3.col19),(t3.col22),(t3.col21)) <= @var4 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (@var7 << t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n", packet_length=1838)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29bc08289c ""
        parser_state = {
          m_lip = {
            m_thd = 0x97b1100, 
            yylineno = 88, 
            yytoklen = 4, 
            yylval = 0x7f2ab0f3f680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29bc08289d "", 
            m_tok_start = 0x7f29bc08289d "", 
            m_tok_end = 0x7f29bc08289d "", 
            m_end_of_query = 0x7f29bc08289c "", 
            m_tok_start_prev = 0x7f29bc08289c "", 
            m_buf = 0x7f29bc082170 "create trigger `trg_t26_before_insert` before insert on `t26` for each row\nbegin\ndelete t14 from  (\nselect  \t\n`t5`.`col37` as col37 \nfrom\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 = @var6 )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non (  updatexml((t3.col21),(t3.col23),(t3.col20)) and t3.col21 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (t3.col23 * t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\nt14 as t14 \nwhere t14.col152>x.col37\n;\n\nupdate (\nselect  \t col37 from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var8 is not null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( '1'  )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non ( substring((t3.col19) from (t3.col23) for (t3.col22)) ^  interval((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258),(t27.col258)) )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col266`=`x`.`col37`\n;\n\n\nselect   count(*) from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (t3.col22 is null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( concat_ws((t3.col19),(t3.col22),(t3.col21)) <= @var4 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (@var7 << t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_buf_length = 1836, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29bc082900 "create trigger `trg_t26_before_insert` before insert on `t26` for each row\nbegin\ndelete t14 from  (\nselect  \t\n`t5`.`col37` as col37 \nfrom\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 = @var6 )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non (  updatexml((t3.col21),(t3.col23),(t3.col20)) and t3.col21 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (t3.col23 * t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\nt14 as t14 \nwhere t14.col152>x.col37\n;\n\nupdate (\nselect  \t col37 from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var8 is not null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( '1'  )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non ( substring((t3.col19) from (t3.col23) for (t3.col22)) ^  interval((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258),(t27.col258)) )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col266`=`x`.`col37`\n;\n\n\nselect   count(*) from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (t3.col22 is null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( concat_ws((t3.col19),(t3.col22),(t3.col21)) <= @var4 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (@var7 << t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_cpp_ptr = 0x7f29bc08302c "", 
            m_cpp_tok_start = 0x7f29bc08302c "", 
            m_cpp_tok_start_prev = 0x7f29bc08302c "", 
            m_cpp_tok_end = 0x7f29bc08302c "", 
            m_body_utf8 = 0x7f29bc24e8b0 "\nbegin\ndelete t14 from  (\nselect  \t\n`t5`.`col37` as col37 \nfrom\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 = @var6 )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non (  updatexml((t3.col21),(t3.col23),(t3.col20)) and t3.col21 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (t3.col23 * t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\nt14 as t14 \nwhere t14.col152>x.col37\n;\n\nupdate (\nselect  \t col37 from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var8 is not null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( '1'  )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non ( substring((t3.col19) from (t3.col23) for (t3.col22)) ^  interval((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258),(t27.col258)) )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col266`=`x`.`col37`\n;\n\n\nselect   count(*) from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (t3.col22 is null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( concat_ws((t3.col19),(t3.col22),(t3.col21)) <= @var4 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (@var7 << t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n  into @`var0` ;\n\nend", 
            m_body_utf8_ptr = 0x7f29bc24ef92 "", 
            m_cpp_utf8_processed_ptr = 0x7f29bc08302c "", 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29bc083020 "var0` ;\n\nend", 
            m_cpp_text_end = 0x7f29bc083024 "` ;\n\nend", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97b1378
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0f41d00
        }
#11 0x00000000006dc1ad in do_command (thd=0x97b1100) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97b4400 "\003create trigger `trg_t26_before_insert` before insert on `t26` for each row\nbegin\ndelete t14 from  (\nselect  \t\n`t5`.`col37` as col37 \nfrom\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var4 = @var6 )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non (  updatexml((t3.col21),(t3.col23),(t3.col20)) and t3.col21 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (t3.col23 * t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\nt14 as t14 \nwhere t14.col152>x.col37\n;\n\nupdate (\nselect  \t col37 from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (@var8 is not null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( '1'  )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non ( substring((t3.col19) from (t3.col23) for (t3.col22)) ^  interval((t27.a27),(t27.a27),(t27.a27),(t27.a27),(t27.col258),(t27.col258)) )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n   ) `x`,\n`test`.`t28` as `t28` set `t28`.`col266`=`x`.`col37`\n;\n\n\nselect   count(*) from\n\t`test`.`t3` as `t3` \n\t natural left outer join `test`.`t2` as `t2` \n \t\n\t right join `test`.`t5` as `t5`  \non (t3.col22 is null )\n \t\n\t inner join `test`.`t7` as `t7` force index (PRIMARY,PRIMARY) \non ( concat_ws((t3.col19),(t3.col22),(t3.col21)) <= @var4 )\n \t\n\t left outer join `test`.`t27` as `t27` force index (PRIMARY) \non (@var7 << t27.a27 )\n  where\nt3.col21 <> t2.col9 xor not \n row(t5.col50 ,t3.a3 )!= row( t3.col23 , t3.col23 )\n \ngroup by \n\tt5.a5,\n\tt2.col7\n \n \n \nlimit 1\n  into @`var0` ;\n\nend;\n"
        packet_length = 1839
        net = 0x97b1378
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#12 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97b1100)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97b1378
        rc = false
        thd = 0x97b1100
#13 0x00000000006b6753 in handle_one_connection (arg=0x97b1100)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97b1100
#14 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#15 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 9 (Thread 0x7f2ab0f01700 (LWP 2396)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97b8670, mp=0x97b8600, abstime=0x7f2ab0efe340, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97b8670, mutex=0x97b8600, abstime=0x7f2ab0efe340, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2968511024, 
          m_cond = 0x91e646, 
          m_mutex = 0x97b8600, 
          m_thread = 0x97b86d8, 
          m_timer_start = 139821333865056, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97b8600 "", 
          m_src_line = 159090288, 
          m_wait = 0x97b8530
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97b8600, owner=0x97b85f8, abs_timeout=0x7f2ab0efe340, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x97b8600, mdl_request=0x7f29b007f100, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29b00fe6e0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc065510
        abs_timeout = {
          tv_sec = 1331673615, 
          tv_nsec = 757440300
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x97b8530, ot_ctx=0x7f2ab0efebf0, mdl_request=0x7f29b007f100, 
    flags=0, mdl_ticket=0x7f2ab0efea20) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab0efebf0, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 13625758, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x258b0000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000P\344\357\260*\177\000\000V\257\272\000\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000\030\223\037\260)\177\000\000\030\001.\003\000\000\000\000\220\344\357\260*\177\000\000\244\213%-\000\000\000\000\220\344\357\260*\177\000\000\314\345\221\000\000\000\000\000\b\223\037\260)\177\000\000\260\206{\t\000\000\000\000\300\344\357\260*\177\000\000\332\354c\000\000\000\000\000\000\223\037\260)\177\000\000\260\206{\t\000\000\000\000\244\213%-\000\000\000\000\244\213%-\000\000\000\000 \345\357\260*\177\000\000\336\300c\000\000\000\000\000\020\345\357\260*\177\000\000\210\345\357\260*\177\000\000\060\346\357\260*\177\000\000\000\206{\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\000\223\037\260)\177\000\000P\346\357\260*\177\000\000\217\206~M\000\000\000\000\244\213%-\000\000\000\000\340\345\357\260*\177\000\000\204\305c\000\000\000\000\000P\345\357\260*\177\000\000\000\300h\313t\002\034\000Љ\005\260)\177\000\000\200\063\341\001\000\000\000\000\060\346\357\260*\177\000\000\000\206{\t\000\000\000\000P\352\317\000\000\000\000\000%\340c\000\000\000\000\000\017\272_O\000\000\000\000\244\213%-\000\000\000\000p\355\a\260\000\000\000\000P\346\357\260*\177\000\000\340\345\357\260*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x97b8530, table_list=0x7f29b007ed70, mem_root=0x7f2ab0efebb0, 
    ot_ctx=0x7f2ab0efebf0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab0efebf0
        key =           "test\000t27\000\000\000\000\000%\000\000\000\037\001\260)\177\000\000\b\000\000\000\000\000\000\000\240\350\357\260*\177\000\000R>\217", '\000' <repeats 13 times>"\260, \352\357\260*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\b\000\000\200*\177\000\000 \354\357\260*\177\000\000\300\350\357\260*\177\000\000̪i\000\000\000\000\000\340\352\357\260*\177\000\000\260\352\357\260*\177\000\000P\353\357\260*\177\000\000\030\005i\000\000\000\000\000Љ\005\260)\177\000\000p\037\001\260\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "p\355\a\260)\177\000\000\060\205{\t\000\000\000\000 \000\000\260)\177\000\000O", '\000' <repeats 15 times>, "\t\000\000\000\000\000\000\000h\037\000\000\000\000\000\000ؘ\307\301\062\000\000\000\020\066\320\000\000\000\000\000\200\065\320\000\000\000\000\000\230\241{\t\000\000\000\000\000J\221\000\000\000\000\000ZZZZ\026\000\000\000Ј\005\260)\177\000\000\200\351\357\260*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000p\037\001\260)\177\000\000\200\352\357\260*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\220\352\357\260*\177\000\000\320\351\357\260*\177\000\000Ј\005\260)\177\000\000\340\351\357\260*\177\000\000p\037"
        alias = 0x7f29b007ed68 "t27"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483657, 
          prev = 0x7f2ab0efead0
        }
        mdl_ticket = 0x7f29b00589d0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 2953152976
#7  0x000000000068fbe0 in open_and_process_table (thd=0x97b8530, lex=0x97ba198, tables=0x7f29b007ed70, 
    counter=0x7f2ab0efed14, flags=0, prelocking_strategy=0x7f2ab0efed60, has_prelocking_list=false, 
    ot_ctx=0x7f2ab0efebf0, new_frm_mem=0x7f2ab0efebb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0efec20
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x97b8530, start=0x7f2ab0efecd0, counter=0x7f2ab0efed14, flags=0, 
    prelocking_strategy=0x7f2ab0efed60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0efece0
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab0efecd0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97ba220
        tables = 0x7f29b007ed70
        error = false
        new_frm_mem = {
          free = 0x7f29b027ca30, 
          used = 0x0, 
          pre_alloc = 0x7f29b027ca30, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x97b8530, tables=0x7f29b007ed70, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab0efed60) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc5d6fa "mysql_insert", 
          file = 0xc5d6a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_insert.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0efef30
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x97b8530, tables=0x7f29b007ed70, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006c391d in mysql_insert (thd=0x97b8530, table_list=0x7f29b007ed70, fields=..., values_list=..., 
    update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_insert.cc:714
        was_insert_delayed = false
        counter = 1
        lock_type = 32554
        value_count = 32553
        info = {
          records = 2147483654, 
          deleted = 139821333868512, 
          updated = 13002256, 
          copied = 12997536, 
          error_count = 0, 
          touched = 2, 
          handle_duplicates = 159094024, 
          escape_char = 0, 
          last_errno = 0, 
          ignore = false, 
          update_fields = 0x100000000, 
          update_values = 0x0, 
          view = 0x97b9508
        }
        context = 0x0
        log_on = true
        res = 0
        joins_freed = false
        changed = 123
        id = 2
        its = {
          <base_list_iterator> = {
            list = 0x97bada8, 
            el = 0x97bada8, 
            prev = 0x0, 
            current = 0x0
          }, <No data fields>}
        values = 0x5
        unused_conds = 0x0
        __FUNCTION__ =           "mysql_insert"
        error = 0
        table = 0x0
        ctx_state = {
          save_table_list = 0x4f, 
          save_first_name_resolution_table = 0x0, 
          save_next_name_resolution_table = 0x7f2ab0efef70, 
          save_resolve_in_select_list = 47, 
          save_next_local = 0x7f2a00000000
        }
        transactional_table = 9
        query = 0x7f29b007ec20 "insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721"
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0effc00
        }
        __PRETTY_FUNCTION__ =           "bool mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool)"
#12 0x00000000006e126a in mysql_execute_command (thd=0x97b8530)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2835
        res = 0
        lex = 0x97ba198
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0effee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97ba880
        first_table = 0x7f29b007ed70
        all_tables = 0x7f29b007ed70
        unit = 0x97ba248
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x97b8530, 
    rawbuf=0x7f29b007ec20 "insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721", 
    length=79, parser_state=0x7f2ab0f00610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97ba198
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0f00b60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97b8530, 
    packet=0x97bbf81 "insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721", 
    packet_length=79) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b007ec6f ""
        parser_state = {
          m_lip = {
            m_thd = 0x97b8530, 
            yylineno = 3, 
            yytoklen = 4, 
            yylval = 0x7f2ab0efe680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b007ec70 "est`.`t17` as `t17`  \non ( power(( concat((t13.col147),(t13.col143))),( export_set((t13.col144),insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721", 
            m_tok_start = 0x7f29b007ec70 "est`.`t17` as `t17`  \non ( power(( concat((t13.col147),(t13.col143))),( export_set((t13.col144),insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721", 
            m_tok_end = 0x7f29b007ec70 "est`.`t17` as `t17`  \non ( power(( concat((t13.col147),(t13.col143))),( export_set((t13.col144),insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721", 
            m_end_of_query = 0x7f29b007ec6f "", 
            m_tok_start_prev = 0x7f29b007ec6f "", 
            m_buf = 0x7f29b007ec20 "insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721", 
            m_buf_length = 79, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b007ecd0 "insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721", 
            m_cpp_ptr = 0x7f29b007ed1f "", 
            m_cpp_tok_start = 0x7f29b007ed1f "", 
            m_cpp_tok_start_prev = 0x7f29b007ed1f "", 
            m_cpp_tok_end = 0x7f29b007ed1f "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0x7f29b00da7d8 "", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 127 '\177', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b007ed1b "3721", 
            m_cpp_text_end = 0x7f29b007ed1f "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97b87a8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0f00d00
        }
#15 0x00000000006dc1ad in do_command (thd=0x97b8530) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97bbf80 "\003insert ignore into `test`.`t27` set\n`a27` = 'nalyiwqifiitsccp',\n`col258` = 3721"
        packet_length = 80
        net = 0x97b87a8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97b8530)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97b87a8
        rc = false
        thd = 0x97b8530
#17 0x00000000006b6753 in handle_one_connection (arg=0x97b8530)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97b8530
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 8 (Thread 0x7f2ab0ec0700 (LWP 2397)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97c01f0, mp=0x97c0180, abstime=0x7f2ab0ebce60, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97c01f0, mutex=0x97c0180, abstime=0x7f2ab0ebce60, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2968243536, 
          m_cond = 0x91e646, 
          m_mutex = 0x97c0180, 
          m_thread = 0x97c0258, 
          m_timer_start = 139821333597568, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97c0180 "", 
          m_src_line = 159121904, 
          m_wait = 0x97c00b0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97c0180, owner=0x97c0178, abs_timeout=0x7f2ab0ebce60, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x97c0180, mdl_request=0x7f29b807c920, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29b80af7b0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331672633, 
          tv_nsec = 8222000
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x97c00b0, ot_ctx=0x7f2ab0ebd710, mdl_request=0x7f29b807c920, 
    flags=0, mdl_ticket=0x7f2ab0ebd540) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab0ebd710, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 2968244984, 
          duration = 32554, 
          next_in_list = 0x258b8000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000P\235\006\270)\177\000\000\364\000\000\000\303\001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000\030\226\033\270)\177\000\000\030\001.\003\000\000\000\000\260\317\353\260*\177\000\000\324b}\000\000\000\000\000\260\317\353\260*\177\000\000\314\345\221\000\000\000\000\000\b\226\033\270)\177\000\000\060\002|\t\000\000\000\000\340\317\353\260*\177\000\000\332\354c\000\000\000\000\000\000\226\033\270)\177\000\000\060\002|\t\000\000\000\000\324b}\000\000\000\000\000\324b}\000\000\000\000\000@\320\353\260*\177\000\000\336\300c\000\000\000\000\000\060\320\353\260*\177\000\000\250\320\353\260*\177\000\000P\321\353\260*\177\000\000\200\001|\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\000\226\033\270)\177\000\000p\321\353\260*\177\000\000\271\202~M\000\000\000\000\324b}\000\000\000\000\000\000\321\353\260*\177\000\000\204\305c\000\000\000\000\000.\001\000\000\000\000\000\000\000\300h\313t\002\034\000\063\001\000\000\000\000\000\000\200\063\341\001\000\000\000\000P\321\353\260*\177\000\000\200\001|\t\000\000\000\000а\306\000\000\000\000\000%\340c\000\000\000\000\000\071\266_O\000\000\000\000\324b}\000\000\000\000\000\220\305\a\270\000\000\000\000p\321\353\260*\177\000\000\000\321\353\260*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x97c00b0, table_list=0x7f29b807c590, mem_root=0x7f2ab0ebd6d0, 
    ot_ctx=0x7f2ab0ebd710) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab0ebd710
        key =           "test\000t6\000\000\000\000\000&\000\000\000\300\277\000\270)\177\000\000\b\000\000\000\000\000\000\000\300\323\353\260*\177\000\000R>\217", '\000' <repeats 13 times>"\320, \325\353\260*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\b\000\000\200*\177\000\000@\327\353\260*\177\000\000\340\323\353\260*\177\000\000̪i\000\000\000\000\000\000\326\353\260*\177\000\000\320\325\353\260*\177\000\000p\326\353\260*\177\000\000\030\005i\000\000\000\000\000 \326\353\260*\177\000\000\000\000\000\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\220, \305\a\270)\177\000\000\260\000|\t", '\000' <repeats 12 times>, "٢\272\000\000\000\000\000@\327\353\260*\177\000\000\270\271\006\270N\037\000\000p\246\306", '\000' <repeats 29 times>, "\030\035|\t\000\000\000\000\000J\221\000\000\000\000\000\000;\005\270)\177\000\000\000:\005\270)\177\000\000\240\324\353\260*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300\277\000\270)\177\000\000\240\325\353\260*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\325\353\260*\177\000\000\360\324\353\260*\177\000\000\000:\005\270)\177\000\000\000\325\353\260*\177\000\000\300\277"
        alias = 0x7f29b807c588 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483657, 
          prev = 0x7f2ab0ebd5f0
        }
        mdl_ticket = 0x7f29b8053b00
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 3087350528
#7  0x000000000068fbe0 in open_and_process_table (thd=0x97c00b0, lex=0x97c1d18, tables=0x7f29b807c590, 
    counter=0x7f2ab0ebd834, flags=0, prelocking_strategy=0x7f2ab0ebd880, has_prelocking_list=false, 
    ot_ctx=0x7f2ab0ebd710, new_frm_mem=0x7f2ab0ebd6d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0ebd740
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x97c00b0, start=0x7f2ab0ebd7f0, counter=0x7f2ab0ebd834, flags=0, 
    prelocking_strategy=0x7f2ab0ebd880) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0ebd800
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab0ebd7f0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97c1da0
        tables = 0x7f29b807c590
        error = false
        new_frm_mem = {
          free = 0x7f29b8054fb0, 
          used = 0x0, 
          pre_alloc = 0x7f29b8054fb0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x97c00b0, tables=0x7f29b807c590, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab0ebd880) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xce0fa0 "mysql_delete", 
          file = 0xce0f68 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_delete.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0ebdf00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x97c00b0, tables=0x7f29b807c590, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x000000000086940f in mysql_delete (thd=0x97c00b0, table_list=0x7f29b807c590, conds=0x7f29b807cc40, 
    order_list=0x97c25b8, limit=1, options=0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_delete.cc:71
        info = {
          table = 0x7f2ab0ebde80, 
          file = 0x8, 
          forms = 0x7f2ab0ebde80, 
          unlock_row = 0x6800fe <get_cached_schema_access(GRANT_INTERNAL_INFO*, char const*)+49>, 
          read_record = 0x7f29b800bfc0, 
          thd = 0x6, 
          select = 0x7f2ab0ebdf20, 
          cache_records = 7236957, 
          ref_length = 0, 
          struct_length = 0, 
          reclength = 0, 
          rec_cache_size = 3087517704, 
          error_offset = 32553, 
          index = 13002240, 
          ref_pos = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          record = 0x80000006 <Address 0x80000006 out of bounds>, 
          rec_buf = 0x7f2ab0ebdff0 "", 
          cache = 0xc66600 "delete_precheck", 
          cache_pos = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          cache_end = 0x0, 
          read_positions = 0x8 <Address 0x8 out of bounds>, 
          io_cache = 0x97c1088, 
          print_error = false, 
          ignore_not_found_rows = false, 
          copy_field = 0x100000000, 
          copy_field_end = 0x0
        }
        deleted = 0
        select_lex = 0x97c2400
        loc_error = 7157794
        using_limit = true
        safe_update = false
        order = 0x0
        usable_index = 64
        query_type = THD::ROW_QUERY_TYPE
        __FUNCTION__ =           "mysql_delete"
        will_batch = false
        error = 32554
        table = 0x97c00b0
        const_cond = false
        reverse = false
        skip_record = 235
        select = 0x0
        transactional_table = false
        const_cond_result = false
        killed_status = THD::NOT_KILLED
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0ebec00
        }
        __PRETTY_FUNCTION__ =           "bool mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List<st_order>*, ha_rows, ulonglong)"
#12 0x00000000006e17db in mysql_execute_command (thd=0x97c00b0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2937
        res = 0
        lex = 0x97c1d18
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0ebeee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97c2400
        first_table = 0x7f29b807c590
        all_tables = 0x7f29b807c590
        unit = 0x97c1dc8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x97c00b0, 
    rawbuf=0x7f29b807c470 "delete from `test`.`t6` where `col54` >= null limit 1", length=53, 
    parser_state=0x7f2ab0ebf610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97c1d18
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0ebfb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97c00b0, 
    packet=0x97c37d1 "delete from `test`.`t6` where `col54` >= null limit 1", packet_length=53)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29b807c4a5 ""
        parser_state = {
          m_lip = {
            m_thd = 0x97c00b0, 
            yylineno = 1, 
            yytoklen = 1, 
            yylval = 0x7f2ab0ebd680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29b807c4a6 "\t right outer join `test`.`t23` as `t23`  \non ( '1'  )\n \t\n\t left outer join `test`.`t15` as `t15` delete from `test`.`t6` where `col54` >= null limit 1", 
            m_tok_start = 0x7f29b807c4a6 "\t right outer join `test`.`t23` as `t23`  \non ( '1'  )\n \t\n\t left outer join `test`.`t15` as `t15` delete from `test`.`t6` where `col54` >= null limit 1", 
            m_tok_end = 0x7f29b807c4a6 "\t right outer join `test`.`t23` as `t23`  \non ( '1'  )\n \t\n\t left outer join `test`.`t15` as `t15` delete from `test`.`t6` where `col54` >= null limit 1", 
            m_end_of_query = 0x7f29b807c4a5 "", 
            m_tok_start_prev = 0x7f29b807c4a5 "", 
            m_buf = 0x7f29b807c470 "delete from `test`.`t6` where `col54` >= null limit 1", 
            m_buf_length = 53, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29b807c508 "delete from `test`.`t6` where `col54` >= null limit 1", 
            m_cpp_ptr = 0x7f29b807c53d "", 
            m_cpp_tok_start = 0x7f29b807c53d "", 
            m_cpp_tok_start_prev = 0x7f29b807c53d "", 
            m_cpp_tok_end = 0x7f29b807c53d "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29b807c53c "1", 
            m_cpp_text_end = 0x7f29b807c53d "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97c0328
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0ebfd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x97c00b0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97c37d0 "\003delete from `test`.`t6` where `col54` >= null limit 1"
        packet_length = 54
        net = 0x97c0328
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97c00b0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97c0328
        rc = false
        thd = 0x97c00b0
#17 0x00000000006b6753 in handle_one_connection (arg=0x97c00b0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97c00b0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 7 (Thread 0x7f2ab0e7f700 (LWP 2398)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97c7a40, mp=0x97c79d0, abstime=0x7f2ab0e7c250, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97c7a40, mutex=0x97c79d0, abstime=0x7f2ab0e7c250, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2967978304, 
          m_cond = 0x91e646, 
          m_mutex = 0x97c79d0, 
          m_thread = 0x97c7aa8, 
          m_timer_start = 139821333332336, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97c79d0 "", 
          m_src_line = 159152704, 
          m_wait = 0x97c7900
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97c79d0, owner=0x97c79c8, abs_timeout=0x7f2ab0e7c250, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x97c79d0, mdl_request=0x7f29c407a6c0, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29c4045a20
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331672731, 
          tv_nsec = 298169900
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x97c7900, ot_ctx=0x7f2ab0e7cb00, mdl_request=0x7f29c407a6c0, 
    flags=0, mdl_ticket=0x7f2ab0e7c930) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab0e7cb00, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 2967978784, 
          duration = 32554, 
          next_in_list = 0x258c4000020, 
          prev_in_list = 0xc4b118, 
          ticket = 0x32e0060, 
          key = {
            m_length = 0, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000\t\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000\337ݑ\000\000\000\000\000\067", '\000' <repeats 11 times>"\303, \001\000\000\300u\320\000\000\000\000\000`\000.\003\000\000\000\000\230\374\003\304)\177\000\000\030\001.\003\000\000\000\000\240\303\347\260*\177\000\000\064\244\305\021\000\000\000\000\240\303\347\260*\177\000\000\314\345\221\000\000\000\000\000\210\374\003\304)\177\000\000\200z|\t\000\000\000\000\320\303\347\260*\177\000\000\332\354c\000\000\000\000\000\200\374\003\304)\177\000\000\200z|\t\000\000\000\000\064\244\305\021\000\000\000\000\064\244\305\021\000\000\000\000\060\304\347\260*\177\000\000\336\300c\000\000\000\000\000 \304\347\260*\177\000\000\230\304\347\260*\177\000\000@\305\347\260*\177\000\000\320y|\t\000\000\000\000\200\063\341\001\000\000\000\000\320\376-\003\000\000\000\000\200\374\003\304)\177\000\000`\305\347\260*\177\000\000\033\203~M\000\000\000\000\064\244\305\021\000\000\000\000\360\304\347\260*\177\000\000\204\305c", '\000' <repeats 14 times>"\300, h\313t\002\034\000\000\000\000\000\000\000\000\000\200\063\341\001\000\000\000\000@\305\347\260*\177\000\000\320y|\t", '\000' <repeats 12 times>, "%\340c\000\000\000\000\000\233\266_O\000\000\000\000\064\244\305\021\000\000\000\000\060\243\a\304\000\000\000\000`\305\347\260*\177\000\000\360\304\347\260*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x97c7900, table_list=0x7f29c407a330, mem_root=0x7f2ab0e7cac0, 
    ot_ctx=0x7f2ab0e7cb00) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab0e7cb00
        key =           "test\000t6\000\000\000\000\000'\000\000\000\300\277\000\304)\177\000\000\a\000\000\000\000\000\000\000\260\307\347\260*\177\000\000R>\217", '\000' <repeats 13 times>"\300, \311\347\260*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000\060\313\347\260*\177\000\000\320\307\347\260*\177\000\000̪i\000\000\000\000\000\360\311\347\260*\177\000\000\300\311\347\260*\177\000\000`\312\347\260*\177\000\000\030\005i\000\000\000\000\000h\002\000\000\000\000\000\000\270\001\000\000\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, "0\243\a\304)\177\000\000\000y|\t\000\000\000\000 \000\000\304)\177\000\000Ȳ\a\304)\177\000\000\000\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000h\037\000\000\000\000\000\000ؘ\307\301\062\000\000\000`\310\347\260*\177\000\000V\257\272\000\000\000\000\000h\225|\t\000\000\000\000\000J\221\000\000\000\000\000\220\312\347\260*\177\000\000\260X\004\304)\177\000\000\220\310\347\260*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300\277\000\304)\177\000\000\220\311\347\260*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\240\311\347\260*\177\000\000\340\310\347\260*\177\000\000\260X\004\304)\177\000\000\360\310\347\260*\177\000\000\300\277"
        alias = 0x7f29c407a328 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0e7c9e0
        }
        mdl_ticket = 0x7f29c40459b0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 3288619440
#7  0x000000000068fbe0 in open_and_process_table (thd=0x97c7900, lex=0x97c9568, tables=0x7f29c407a330, 
    counter=0x7f2ab0e7cf78, flags=0, prelocking_strategy=0x7f2ab0e7cbe0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab0e7cb00, new_frm_mem=0x7f2ab0e7cac0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0e7cb30
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x97c7900, start=0x7f2ab0e7cc50, counter=0x7f2ab0e7cf78, flags=0, 
    prelocking_strategy=0x7f2ab0e7cbe0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc77529 "mysql_update", 
          file = 0xc774b0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0e7cf10
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f2ab0e7cc50
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = true
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97c95f0
        tables = 0x7f29c407a330
        error = false
        new_frm_mem = {
          free = 0x7f29c41200c0, 
          used = 0x0, 
          pre_alloc = 0x7f29c41200c0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006c155d in open_tables (thd=0x97c7900, tables=0x7f2ab0e7cc50, counter=0x7f2ab0e7cf78, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:461
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#10 0x0000000000783324 in mysql_update (thd=0x97c7900, table_list=0x7f29c407a330, fields=..., values=..., 
    conds=0x7f29c407b2c8, order_num=0, order=0x0, limit=1, handle_duplicates=DUP_ERROR, ignore=true, 
    found_return=0x7f2ab0e7dca8, updated_return=0x7f2ab0e7dca0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_update.cc:284
        safe_update = false
        used_index = 0
        want_privilege = 0
        __FUNCTION__ =           "mysql_update"
        transactional_table = false
        will_batch = false
        reverse = false
        table_count = 1
        id = 7235753
        used_key_is_modified = false
        select_lex = 0x97c9c50
        res = -1326985232
        dup_key_found = 2967982032
        found = 139821333336080
        old_covering_keys = {
          map = 0
        }
        table = 0x0
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0e7dc00
        }
        loc_error = 159159832
        need_sort = true
        updated = 7157794
        select = 0x7f29c407b448
        info = {
          table = 0x7f2ab0e7ce80, 
          file = 0x6800fe, 
          forms = 0x7f29c400bfc0, 
          unlock_row = 0x5, 
          read_record = 0x7f2ab0e7cf20, 
          thd = 0x6e6d5d, 
          select = 0x0, 
          cache_records = 3288835496, 
          ref_length = 32553, 
          struct_length = 12998845, 
          reclength = 0, 
          rec_cache_size = 12997536, 
          error_offset = 0, 
          index = 2147483653, 
          ref_pos = 0x7f2ab0e7dc00 "gc", <incomplete sequence \306>, 
          record = 0xc658bd "mysql_execute_command", 
          rec_buf = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          cache = 0x0, 
          cache_pos = 0x4 <Address 0x4 out of bounds>, 
          cache_end = 0x97c88d8 ".\362", <incomplete sequence \302>, 
          read_positions = 0x0, 
          io_cache = 0x100000000, 
          print_error = false, 
          ignore_not_found_rows = false, 
          copy_field = 0x97c88d8, 
          copy_field_end = 0x4
        }
        __PRETTY_FUNCTION__ =           "int mysql_update(THD*, TABLE_LIST*, List<Item>&, List<Item>&, Item*, uint, ORDER*, ha_rows, enum_duplicates, bool, ha_rows*, ha_rows*)"
        using_limit = true
        error = 32554
        all_fields = {
          <base_list> = {
            <Sql_alloc> = {<No data fields>}, 
            members of base_list: 
            first = 0x140fcc0, 
            last = 0x7f2ab0e7cf50, 
            elements = 0
          }, <No data fields>}
        killed_status = THD::NOT_KILLED
#11 0x00000000006e0ddf in mysql_execute_command (thd=0x97c7900)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2710
        found = 0
        updated = 0
        res = 0
        lex = 0x97c9568
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0e7dee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97c9c50
        first_table = 0x7f29c407a330
        all_tables = 0x7f29c407a330
        unit = 0x97c9618
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x97c7900, 
    rawbuf=0x7f29c407a140 "update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1", length=157, parser_state=0x7f2ab0e7e610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97c9568
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0e7eb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97c7900, 
    packet=0x97cb351 "update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1", packet_length=157)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c407a1dd ""
        parser_state = {
          m_lip = {
            m_thd = 0x97c7900, 
            yylineno = 7, 
            yytoklen = 1, 
            yylval = 0x7f2ab0e7c680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c407a1de ">\",\n`col4` = '2010-09-19',\n`col5` = '2011-05-19 15:59:57',\n`col0` = 0 on duplicate key update \n`a1update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1", 
            m_tok_start = 0x7f29c407a1de ">\",\n`col4` = '2010-09-19',\n`col5` = '2011-05-19 15:59:57',\n`col0` = 0 on duplicate key update \n`a1update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1", 
            m_tok_end = 0x7f29c407a1de ">\",\n`col4` = '2010-09-19',\n`col5` = '2011-05-19 15:59:57',\n`col0` = 0 on duplicate key update \n`a1update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1", 
            m_end_of_query = 0x7f29c407a1dd "", 
            m_tok_start_prev = 0x7f29c407a1dd "", 
            m_buf = 0x7f29c407a140 "update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1", 
            m_buf_length = 157, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c407a240 "update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1", 
            m_cpp_ptr = 0x7f29c407a2dd "", 
            m_cpp_tok_start = 0x7f29c407a2dd "", 
            m_cpp_tok_start_prev = 0x7f29c407a2dd "", 
            m_cpp_tok_end = 0x7f29c407a2dd "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c407a2dc "1", 
            m_cpp_text_end = 0x7f29c407a2dd "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97c7b78
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0e7ed00
        }
#14 0x00000000006dc1ad in do_command (thd=0x97c7900) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97cb350 "\003update ignore `test`.`t6` set\n`col52` = 8634042,\n`col53` = '2010-10-22',\n`a6` = -8.3404022104877E+18,\n`col55` = 255,\n`col54` = 74\nwhere `col54`< null limit 1"
        packet_length = 158
        net = 0x97c7b78
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97c7900)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97c7b78
        rc = false
        thd = 0x97c7900
#16 0x00000000006b6753 in handle_one_connection (arg=0x97c7900)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97c7900
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 6 (Thread 0x7f2ab0e3e700 (LWP 2399)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97cf5c0, mp=0x97cf550, abstime=0x7f2ab0e3b5d0, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97cf5c0, mutex=0x97cf550, abstime=0x7f2ab0e3b5d0, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2967712960, 
          m_cond = 0x91e646, 
          m_mutex = 0x97cf550, 
          m_thread = 0x97cf628, 
          m_timer_start = 139821333066992, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97cf550 "", 
          m_src_line = 159184320, 
          m_wait = 0x97cf480
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97cf550, owner=0x97cf548, abs_timeout=0x7f2ab0e3b5d0, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x97cf550, mdl_request=0x7f29c0195550, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29c0054590
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc009810
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 954678900
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x97cf480, ot_ctx=0x7f2ab0e3be80, mdl_request=0x7f29c0195550, 
    flags=0, mdl_ticket=0x7f2ab0e3bcb0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab0e3be80, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29c000bfc0, 
          prev_in_list = 0x7f2ab0e3b790, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 40656, 
            m_db_name_length = 49176, 
            m_ptr =               ")\177\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\240\267\343\260*\177\000\000\340\266\343\260*\177\000\000(~\034\300)\177\000\000\000\000\000\000\000\000\000\000\300\277\000\300)\177\000\000\240\236\030\300)\177\000\000@\b\004\300)\177\000\000`\b\004\300)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001\t\000\000\200*\177\000\000\220M\005\300\000\000\001\000P\a\004\300)\177\000\000\000J\221\000\000\000\000\000\220N\005\300)\177\000\000\220M\005\300)\177\000\000`\267\343\260*\177\000\000i|\272\000\000\000\000\000\220N\005\300)\177\000\000\300\277\000\300)\177\000\000\220\267\343\260*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\300\277\000\300\257\n\000\000\300\277\000\300)\177\000\000\t\000\000\000\000\000\000\000з\343\260*\177\000\000\342QX\000\000\000\000\000 \322\002\300\000\177\000\000`\360\n\300)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\200\274\343\260*\177\000\000\000\270\343\260*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, "@\b\004\300)\177\000\000\220M\005\300\000\000\001\000 \270\343\260*\177\000\000V\257\272\000\000\000\000\000\300Q\031\300)\177\000\000Z\237W\000\000\000\000\000p\270\343\260*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x97cf480, table_list=0x7f29c01951c0, mem_root=0x7f2ab0e3be40, 
    ot_ctx=0x7f2ab0e3be80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab0e3be80
        key =           "test\000t26\000\000\000\000\000(\000\000\000\275\343\260*\177\000\000٢\272\000\000\000\000\000`\275\343\260*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000@\275\343\260*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000\260\276\343\260*\177\000\000P\273\343\260*\177\000\000̪i\000\000\000\000\000\030\261\304\000\000\000\000\000@\275\343\260*\177\000\000\340\275\343\260*\177\000\000\030\005i\000\000\000\000\000^\265\304\000\000\000\000\000\020\230\000\314\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>, " \254\002\300)\177\000\000\200\364|\t\000\000\000\000X\232\000\314)\177\000\000p\232\000\314)\177\000\000\360\273\343\260*\177\000\000\337ݑ\000\000\000\000\000\000\274\343\260\000\000\000\000\360\224j\t\303\001\000\000\300u\320\000\000\000\000\000\240\231\000\314)\177\000\000\350\020}\t\000\000\000\000\000J\221\000\000\000\000\000`a*\310)\177\000\000\220M\005\300)\177\000\000\020\274\343\260*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300\277\000\300)\177\000\000\020\275\343\260*\177\000\000\377\243\272\000\000\000\000\000\b\366|\t\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000 \275\343\260*\177\000\000`\274\343\260*\177\000\000\220M\005\300)\177\000\000p\274\343\260*\177\000\000\300\277"
        alias = 0x7f29c005e0e8 "t26"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0e3bd60
        }
        mdl_ticket = 0x7f29c0054e90
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3221573264
#7  0x000000000068fbe0 in open_and_process_table (thd=0x97cf480, lex=0x97d10e8, tables=0x7f29c01951c0, 
    counter=0x7f2ab0e3bfa4, flags=0, prelocking_strategy=0x7f2ab0e3bff0, has_prelocking_list=false, 
    ot_ctx=0x7f2ab0e3be80, new_frm_mem=0x7f2ab0e3be40) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0e3beb0
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x97cf480, start=0x7f2ab0e3bf60, counter=0x7f2ab0e3bfa4, flags=0, 
    prelocking_strategy=0x7f2ab0e3bff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0e3bf70
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29c002ac28
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97d1170
        tables = 0x7f29c01951c0
        error = false
        new_frm_mem = {
          free = 0x7f29c01e85b0, 
          used = 0x0, 
          pre_alloc = 0x7f29c01e85b0, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x97cf480, tables=0x7f29c002ac20, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab0e3bff0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 1
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0e3cc00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x97cf480, tables=0x7f29c002ac20, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e1923 in mysql_execute_command (thd=0x97cf480)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2957
        aux_tables = 0x7f29c005c9f8
        del_result = 0x7f2ab0e3b400
        res = 0
        lex = 0x97d10e8
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0e3cee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97d17d0
        first_table = 0x7f29c002ac20
        all_tables = 0x7f29c002ac20
        unit = 0x97d1198
        have_table_map_for_update = false
#12 0x00000000006e8823 in mysql_parse (thd=0x97cf480, 
    rawbuf=0x7f29c005c2b0 "delete t28 from  (\nselect  \t col264,a12 from\n\t`test`.`t26` as `t26` \n\t right outer join `test`.`t4` as `t4`  \non ( '1'  )\n \t\n\t natural join `test`.`t11` as `t11` ignore index (idx80,idx75)\n \t\n\t natural left join `test`.`t21` as `t21` use index (idx173,idx173,PRIMARY)\n \t\n\t natural left join `test`.`t27` as `t27` \n \t\n\t natural left outer join `test`.`t12` as `t12` force index (idx97,idx97)\n \t\n\t natural left outer join `test`.`t28` as `t28` \n \t\n\t right outer join `test`.`t15` as `t15`  \non (@var3 << t15.col168 )\n \t\n\t cross join `test`.`t29` as `t29` force index (idx262,idx272,idx265) \non (@var6 is not false )\n  where\n row(t26.col255 ,t4.col28  collate latin1_danish_ci ,t12.col116 )!= row( t11.col106  collate latin1_german1_ci , t26.col254 , t11.col91 )or not \nt26.col254 <> -2522 \n\n \n \n \nlimit 1\n   ) `x`,\nt28 as t28 \nwhere t28.col270>x.a12", length=847, 
    parser_state=0x7f2ab0e3d610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97d10e8
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0e3db60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#13 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97cf480, 
    packet=0x97d2ba1 "delete t28 from  (\nselect  \t col264,a12 from\n\t`test`.`t26` as `t26` \n\t right outer join `test`.`t4` as `t4`  \non ( '1'  )\n \t\n\t natural join `test`.`t11` as `t11` ignore index (idx80,idx75)\n \t\n\t natural left join `test`.`t21` as `t21` use index (idx173,idx173,PRIMARY)\n \t\n\t natural left join `test`.`t27` as `t27` \n \t\n\t natural left outer join `test`.`t12` as `t12` force index (idx97,idx97)\n \t\n\t natural left outer join `test`.`t28` as `t28` \n \t\n\t right outer join `test`.`t15` as `t15`  \non (@var3 << t15.col168 )\n \t\n\t cross join `test`.`t29` as `t29` force index (idx262,idx272,idx265) \non (@var6 is not false )\n  where\n row(t26.col255 ,t4.col28  collate latin1_danish_ci ,t12.col116 )!= row( t11.col106  collate latin1_german1_ci , t26.col254 , t11.col91 )or not \nt26.col254 <> -2522 \n\n \n \n \nlimit 1\n   ) `x`,\nt28 as t28 \nwhere t28.col270>x.a12\n", packet_length=848)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29c005c5ff ""
        parser_state = {
          m_lip = {
            m_thd = 0x97cf480, 
            yylineno = 32, 
            yytoklen = 3, 
            yylval = 0x7f2ab0e3b680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29c005c600 "", 
            m_tok_start = 0x7f29c005c600 "", 
            m_tok_end = 0x7f29c005c600 "", 
            m_end_of_query = 0x7f29c005c5ff "", 
            m_tok_start_prev = 0x7f29c005c5ff "", 
            m_buf = 0x7f29c005c2b0 "delete t28 from  (\nselect  \t col264,a12 from\n\t`test`.`t26` as `t26` \n\t right outer join `test`.`t4` as `t4`  \non ( '1'  )\n \t\n\t natural join `test`.`t11` as `t11` ignore index (idx80,idx75)\n \t\n\t natural left join `test`.`t21` as `t21` use index (idx173,idx173,PRIMARY)\n \t\n\t natural left join `test`.`t27` as `t27` \n \t\n\t natural left outer join `test`.`t12` as `t12` force index (idx97,idx97)\n \t\n\t natural left outer join `test`.`t28` as `t28` \n \t\n\t right outer join `test`.`t15` as `t15`  \non (@var3 << t15.col168 )\n \t\n\t cross join `test`.`t29` as `t29` force index (idx262,idx272,idx265) \non (@var6 is not false )\n  where\n row(t26.col255 ,t4.col28  collate latin1_danish_ci ,t12.col116 )!= row( t11.col106  collate latin1_german1_ci , t26.col254 , t11.col91 )or not \nt26.col254 <> -2522 \n\n \n \n \nlimit 1\n   ) `x`,\nt28 as t28 \nwhere t28.col270>x.a12", 
            m_buf_length = 847, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29c005c660 "delete t28 from  (\nselect  \t col264,a12 from\n\t`test`.`t26` as `t26` \n\t right outer join `test`.`t4` as `t4`  \non ( '1'  )\n \t\n\t natural join `test`.`t11` as `t11` ignore index (idx80,idx75)\n \t\n\t natural left join `test`.`t21` as `t21` use index (idx173,idx173,PRIMARY)\n \t\n\t natural left join `test`.`t27` as `t27` \n \t\n\t natural left outer join `test`.`t12` as `t12` force index (idx97,idx97)\n \t\n\t natural left outer join `test`.`t28` as `t28` \n \t\n\t right outer join `test`.`t15` as `t15`  \non (@var3 << t15.col168 )\n \t\n\t cross join `test`.`t29` as `t29` force index (idx262,idx272,idx265) \non (@var6 is not false )\n  where\n row(t26.col255 ,t4.col28  collate latin1_danish_ci ,t12.col116 )!= row( t11.col106  collate latin1_german1_ci , t26.col254 , t11.col91 )or not \nt26.col254 <> -2522 \n\n \n \n \nlimit 1\n   ) `x`,\nt28 as t28 \nwhere t28.col270>x.a12", 
            m_cpp_ptr = 0x7f29c005c9af "", 
            m_cpp_tok_start = 0x7f29c005c9af "", 
            m_cpp_tok_start_prev = 0x7f29c005c9af "", 
            m_cpp_tok_end = 0x7f29c005c9af "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29c005c9ac "a12", 
            m_cpp_text_end = 0x7f29c005c9af "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97cf6f8
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0e3dd00
        }
#14 0x00000000006dc1ad in do_command (thd=0x97cf480) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97d2ba0 "\003delete t28 from  (\nselect  \t col264,a12 from\n\t`test`.`t26` as `t26` \n\t right outer join `test`.`t4` as `t4`  \non ( '1'  )\n \t\n\t natural join `test`.`t11` as `t11` ignore index (idx80,idx75)\n \t\n\t natural left join `test`.`t21` as `t21` use index (idx173,idx173,PRIMARY)\n \t\n\t natural left join `test`.`t27` as `t27` \n \t\n\t natural left outer join `test`.`t12` as `t12` force index (idx97,idx97)\n \t\n\t natural left outer join `test`.`t28` as `t28` \n \t\n\t right outer join `test`.`t15` as `t15`  \non (@var3 << t15.col168 )\n \t\n\t cross join `test`.`t29` as `t29` force index (idx262,idx272,idx265) \non (@var6 is not false )\n  where\n row(t26.col255 ,t4.col28  collate latin1_danish_ci ,t12.col116 )!= row( t11.col106  collate latin1_german1_ci , t26.col254 , t11.col91 )or not \nt26.col254 <> -2522 \n\n \n \n \nlimit 1\n   ) `x`,\nt28 as t28 \nwhere t28.col270>x.a12\n"
        packet_length = 849
        net = 0x97cf6f8
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#15 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97cf480)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97cf6f8
        rc = false
        thd = 0x97cf480
#16 0x00000000006b6753 in handle_one_connection (arg=0x97cf480)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97cf480
#17 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#18 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 5 (Thread 0x7f2ab0dfd700 (LWP 2400)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97d6e10, mp=0x97d6da0, abstime=0x7f2ab0dfa160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97d6e10, mutex=0x97d6da0, abstime=0x7f2ab0dfa160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2967445584, 
          m_cond = 0x91e646, 
          m_mutex = 0x97d6da0, 
          m_thread = 0x97d6e78, 
          m_timer_start = 139821332799616, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97d6da0 "", 
          m_src_line = 159215120, 
          m_wait = 0x97d6cd0
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97d6da0, owner=0x97d6d98, abs_timeout=0x7f2ab0dfa160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x97d6da0, mdl_request=0x7f29cc067768, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29cc2aa7a0
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29cc009810
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 993982300
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x97d6cd0, ot_ctx=0x7f2ab0dfaa10, mdl_request=0x7f29cc067768, 
    flags=0, mdl_ticket=0x7f2ab0dfa840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab0dfaa10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29cc0604c0, 
          prev_in_list = 0x7f2ab0dfa320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 8, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\243߰*\177\000\000p\242߰*\177\000\000\000J\221\000\000\000\000\000\000J\a\314)\177\000\000\300\004\006\314)\177\000\000\026\000\000\000\000\000\000\000p84\254)\177\000\000\220\070\064\254)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\000I\a\314\000\000\001\000\200\067\064\254)\177\000\000\000J\221\000\000\000\000\000\000J\a\314)\177\000\000\000I\a\314)\177\000\000\360\242߰*\177\000\000i|\272\000\000\000\000\000\000J\a\314)\177\000\000\300\004\006\314)\177\000\000 \243߰*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\300\004\006̯\n\000\000\300\004\006\314)\177\000\000\t\000\000\000\000\000\000\000`\243߰*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000P\246/\254)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\250߰*\177\000\000\220\243߰*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>, "p84\254)\177\000\000\000I\a\314\000\000\001\000\260\243߰*\177\000\000V\257\272\000\000\000\000\000\330s\006\314)\177\000\000Z\237W\000\000\000\000\000\000\244߰*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x97d6cd0, table_list=0x7f29cc0673d8, mem_root=0x7f2ab0dfa9d0, 
    ot_ctx=0x7f2ab0dfaa10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab0dfaa10
        key =           "test\000t26\000\000\000\000\000)\000\000\000\250߰*\177\000\000٢\272\000\000\000\000\000\360\250߰*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000Ш߰*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\252߰*\177\000\000\340\246߰*\177\000\000̪i\000\000\000\000\000\000\251߰*\177\000\000Ш߰*\177\000\000p\251߰*\177\000\000\030\005i\000\000\000\000\000\000\000\000\000)\177\000\000P\247߰\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\220, n\006\314)\177\000\000\000J\221\000\000\000\000\000Ч߰*\177\000\000\000I\a\314)\177\000\000P\247߰*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\300\004\006\314)\177\000\000P\250߰*\177\000\000\377\243\272\000\000\000\000\000\070\211}\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\000I\a\314)\177\000\000\240\247߰*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\300\004\006\314)\177\000\000\240\250߰*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\250߰*\177\000\000\360\247߰*\177\000\000\000I\a\314\000\000\001\000\220n\006\314)\177\000\000\300\004"
        alias = 0x7f29cc0a2a10 "t26"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0dfa8f0
        }
        mdl_ticket = 0x7f29cc074a00
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 9
        error = 0
        share = 0xba7c69
        hash_value = 3423029760
#7  0x000000000068fbe0 in open_and_process_table (thd=0x97d6cd0, lex=0x97d8938, tables=0x7f29cc0673d8, 
    counter=0x7f2ab0dfab34, flags=0, prelocking_strategy=0x7f2ab0dfab80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab0dfaa10, new_frm_mem=0x7f2ab0dfa9d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0dfaa40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x97d6cd0, start=0x7f2ab0dfaaf0, counter=0x7f2ab0dfab34, flags=0, 
    prelocking_strategy=0x7f2ab0dfab80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0dfab00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29cc066e98
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97d89c0
        tables = 0x7f29cc0673d8
        error = false
        new_frm_mem = {
          free = 0x7f29cc152f20, 
          used = 0x0, 
          pre_alloc = 0x7f29cc152f20, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x97d6cd0, tables=0x7f29cc0fcfd8, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab0dfab80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 3
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0dfbc00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x97d6cd0, tables=0x7f29cc0fcfd8, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x97d6cd0, all_tables=0x7f29cc0fcfd8)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x97d8938
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x97d6cd0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x97d8938
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0dfbee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97d9020
        first_table = 0x7f29cc0fcfd8
        all_tables = 0x7f29cc0fcfd8
        unit = 0x97d89e8
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x97d6cd0, 
    rawbuf=0x7f29cc0a0d40 "explain extended \nselect  \t\n`t19`.`col202` as col202 ,\n (( count(distinct (`t19`.`col201`))) in (( greatest(((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (t9.col80 & @var7 )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var4 is not false )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`),(`t19`.`col202`))),( count((`t19`.`col201`))),( (case ((`t19`.`col202`)) when ((`t19`.`col201`)) then ((`t19`.`col201`))when ((`t19`.`col202`)) then ((`t19`.`col201`)) else ((`t19`.`col202`)) end)),( count(distinct (`t19`.`col202`))),( ((`t19`.`col202`) in ((`t19`.`col201`),(`t19`.`col202`),((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (@var0 is not null )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var5 % @var6 )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`)))))) as col201 \nfrom\n\t`test`.`t19` as `t19` use index (idx143,idx143)\n\t straight_join `test`.`t17` as `t17` ignore index (idx120) \non (t19.col203 xor t17.col186 )\n  where\nt17.a17 >= t19.col203 or not \nt19.col204  collate latin1_bin < '2011-08-24 09:07:58' and not \n row(t17.col185 ,t19.col201  collate latin1_spanish_ci ,t19.col202  collate utf8_turkish_ci )= row( t19.col204  collate latin1_german2_ci , t17.col186 , t17.col186 )\n\n \n \n  \norder by \n\t insert((`t19`.`col204`),(`t19`.`col204`),(`t19`.`col200`),(`t19`.`col200`))  desc,\n\t elt((`t19`.`col202`),(`t19`.`col204`),(`t19`.`col203`),(`t17`.`col186`),(`t17`.`col185`),(`t19`.`a19`))", length=1681, 
    parser_state=0x7f2ab0dfc610) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97d8938
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0dfcb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97d6cd0, 
    packet=0x97d9fd1 "explain extended \nselect  \t\n`t19`.`col202` as col202 ,\n (( count(distinct (`t19`.`col201`))) in (( greatest(((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (t9.col80 & @var7 )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var4 is not false )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`),(`t19`.`col202`))),( count((`t19`.`col201`))),( (case ((`t19`.`col202`)) when ((`t19`.`col201`)) then ((`t19`.`col201`))when ((`t19`.`col202`)) then ((`t19`.`col201`)) else ((`t19`.`col202`)) end)),( count(distinct (`t19`.`col202`))),( ((`t19`.`col202`) in ((`t19`.`col201`),(`t19`.`col202`),((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (@var0 is not null )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var5 % @var6 )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`)))))) as col201 \nfrom\n\t`test`.`t19` as `t19` use index (idx143,idx143)\n\t straight_join `test`.`t17` as `t17` ignore index (idx120) \non (t19.col203 xor t17.col186 )\n  where\nt17.a17 >= t19.col203 or not \nt19.col204  collate latin1_bin < '2011-08-24 09:07:58' and not \n row(t17.col185 ,t19.col201  collate latin1_spanish_ci ,t19.col202  collate utf8_turkish_ci )= row( t19.col204  collate latin1_german2_ci , t17.col186 , t17.col186 )\n\n \n \n  \norder by \n\t insert((`t19`.`col204`),(`t19`.`col204`),(`t19`.`col200`),(`t19`.`col200`))  desc,\n\t elt((`t19`.`col202`),(`t19`.`col204`),(`t19`.`col203`),(`t17`.`col186`),(`t17`.`col185`),(`t19`.`a19`)) \n\n   ", packet_length=1687)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29cc0a13d1 ""
        parser_state = {
          m_lip = {
            m_thd = 0x97d6cd0, 
            yylineno = 51, 
            yytoklen = 3, 
            yylval = 0x7f2ab0dfa680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29cc0a13d2 "", 
            m_tok_start = 0x7f29cc0a13d2 "", 
            m_tok_end = 0x7f29cc0a13d2 "", 
            m_end_of_query = 0x7f29cc0a13d1 "", 
            m_tok_start_prev = 0x7f29cc0a13d1 "", 
            m_buf = 0x7f29cc0a0d40 "explain extended \nselect  \t\n`t19`.`col202` as col202 ,\n (( count(distinct (`t19`.`col201`))) in (( greatest(((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (t9.col80 & @var7 )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var4 is not false )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`),(`t19`.`col202`))),( count((`t19`.`col201`))),( (case ((`t19`.`col202`)) when ((`t19`.`col201`)) then ((`t19`.`col201`))when ((`t19`.`col202`)) then ((`t19`.`col201`)) else ((`t19`.`col202`)) end)),( count(distinct (`t19`.`col202`))),( ((`t19`.`col202`) in ((`t19`.`col201`),(`t19`.`col202`),((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (@var0 is not null )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var5 % @var6 )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`)))))) as col201 \nfrom\n\t`test`.`t19` as `t19` use index (idx143,idx143)\n\t straight_join `test`.`t17` as `t17` ignore index (idx120) \non (t19.col203 xor t17.col186 )\n  where\nt17.a17 >= t19.col203 or not \nt19.col204  collate latin1_bin < '2011-08-24 09:07:58' and not \n row(t17.col185 ,t19.col201  collate latin1_spanish_ci ,t19.col202  collate utf8_turkish_ci )= row( t19.col204  collate latin1_german2_ci , t17.col186 , t17.col186 )\n\n \n \n  \norder by \n\t insert((`t19`.`col204`),(`t19`.`col204`),(`t19`.`col200`),(`t19`.`col200`))  desc,\n\t elt((`t19`.`col202`),(`t19`.`col204`),(`t19`.`col203`),(`t17`.`col186`),(`t17`.`col185`),(`t19`.`a19`))", 
            m_buf_length = 1681, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29cc0a1430 "explain extended \nselect  \t\n`t19`.`col202` as col202 ,\n (( count(distinct (`t19`.`col201`))) in (( greatest(((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (t9.col80 & @var7 )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var4 is not false )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`),(`t19`.`col202`))),( count((`t19`.`col201`))),( (case ((`t19`.`col202`)) when ((`t19`.`col201`)) then ((`t19`.`col201`))when ((`t19`.`col202`)) then ((`t19`.`col201`)) else ((`t19`.`col202`)) end)),( count(distinct (`t19`.`col202`))),( ((`t19`.`col202`) in ((`t19`.`col201`),(`t19`.`col202`),((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (@var0 is not null )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var5 % @var6 )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`)))))) as col201 \nfrom\n\t`test`.`t19` as `t19` use index (idx143,idx143)\n\t straight_join `test`.`t17` as `t17` ignore index (idx120) \non (t19.col203 xor t17.col186 )\n  where\nt17.a17 >= t19.col203 or not \nt19.col204  collate latin1_bin < '2011-08-24 09:07:58' and not \n row(t17.col185 ,t19.col201  collate latin1_spanish_ci ,t19.col202  collate utf8_turkish_ci )= row( t19.col204  collate latin1_german2_ci , t17.col186 , t17.col186 )\n\n \n \n  \norder by \n\t insert((`t19`.`col204`),(`t19`.`col204`),(`t19`.`col200`),(`t19`.`col200`))  desc,\n\t elt((`t19`.`col202`),(`t19`.`col204`),(`t19`.`col203`),(`t17`.`col186`),(`t17`.`col185`),(`t19`.`a19`))", 
            m_cpp_ptr = 0x7f29cc0a1ac1 "", 
            m_cpp_tok_start = 0x7f29cc0a1ac1 "", 
            m_cpp_tok_start_prev = 0x7f29cc0a1ac1 "", 
            m_cpp_tok_end = 0x7f29cc0a1ac1 "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0x7f29cc2a716d "", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 63 '?', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29cc0a1abb "a19`))", 
            m_cpp_text_end = 0x7f29cc0a1abe "`))", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97d6f48
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0dfcd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x97d6cd0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97d9fd0 "\003explain extended \nselect  \t\n`t19`.`col202` as col202 ,\n (( count(distinct (`t19`.`col201`))) in (( greatest(((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (t9.col80 & @var7 )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var4 is not false )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`),(`t19`.`col202`))),( count((`t19`.`col201`))),( (case ((`t19`.`col202`)) when ((`t19`.`col201`)) then ((`t19`.`col201`))when ((`t19`.`col202`)) then ((`t19`.`col201`)) else ((`t19`.`col202`)) end)),( count(distinct (`t19`.`col202`))),( ((`t19`.`col202`) in ((`t19`.`col201`),(`t19`.`col202`),((\nselect   count(*) from\n\t`test`.`t9` as `t9` ignore index (idx55,idx48)\n\t left outer join `test`.`t26` as `t26`  \non (@var0 is not null )\n \t\n\t left outer join `test`.`t10` as `t10` force index (PRIMARY,PRIMARY,idx64) \non (@var5 % @var6 )\n  \n \ngroup by \n\tt9.col66\n \n \n \nlimit 1\n   )),(`t19`.`col201`),(`t19`.`col201`)))))) as col201 \nfrom\n\t`test`.`t19` as `t19` use index (idx143,idx143)\n\t straight_join `test`.`t17` as `t17` ignore index (idx120) \non (t19.col203 xor t17.col186 )\n  where\nt17.a17 >= t19.col203 or not \nt19.col204  collate latin1_bin < '2011-08-24 09:07:58' and not \n row(t17.col185 ,t19.col201  collate latin1_spanish_ci ,t19.col202  collate utf8_turkish_ci )= row( t19.col204  collate latin1_german2_ci , t17.col186 , t17.col186 )\n\n \n \n  \norder by \n\t insert((`t19`.`col204`),(`t19`.`col204`),(`t19`.`col200`),(`t19`.`col200`))  desc,\n\t elt((`t19`.`col202`),(`t19`.`col204`),(`t19`.`col203`),(`t17`.`col186`),(`t17`.`col185`),(`t19`.`a19`)) \n\n   "
        packet_length = 1688
        net = 0x97d6f48
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97d6cd0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97d6f48
        rc = false
        thd = 0x97d6cd0
#17 0x00000000006b6753 in handle_one_connection (arg=0x97d6cd0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97d6cd0
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 4 (Thread 0x7f2ab0dbc700 (LWP 2401)):
+backtrace full
#0  0x00000032c240bc2e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091e11f in safe_cond_timedwait (cond=0x97de240, mp=0x97de1d0, abstime=0x7f2ab0db9160, 
    file=0xc4af00 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=1009)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:278
        error = 0
#2  0x000000000063a691 in inline_mysql_cond_timedwait (that=0x97de240, mutex=0x97de1d0, abstime=0x7f2ab0db9160, 
    src_file=0xc4b118 "/mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc", src_line=980)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:1009
        result = 0
        locker = 0x0
        state = {
          m_flags = 2967179344, 
          m_cond = 0x91e646, 
          m_mutex = 0x97de1d0, 
          m_thread = 0x97de2a8, 
          m_timer_start = 139821332533376, 
          m_timer = 0x6b35ad <THD::enter_cond(mysql_cond_t*, mysql_mutex_t*, char const*)+75>, 
          m_operation = 12890168, 
          m_src_file = 0x97de1d0 "", 
          m_src_line = 159244864, 
          m_wait = 0x97de100
        }
#3  0x000000000063b4ea in MDL_wait::timed_wait (this=0x97de1d0, owner=0x97de1c8, abs_timeout=0x7f2ab0db9160, 
    set_status_on_timeout=true, wait_state_name=0xc4b038 "Waiting for table metadata lock")
    at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:980
        old_msg = 0xc55520 "Opening tables"
        result = 32553
        wait_result = 0
#4  0x000000000063c9f4 in MDL_context::acquire_lock (this=0x97de1d0, mdl_request=0x7f29d4477220, 
    lock_wait_timeout=31536000) at /mysql2/mysql-next-mr-opt-backporting/sql/mdl.cc:1831
        ticket = 0x7f29d4031c10
        __PRETTY_FUNCTION__ =           "bool MDL_context::acquire_lock(MDL_request*, ulong)"
        lock = 0x7f29d4174680
        abs_timeout = {
          tv_sec = 1331673563, 
          tv_nsec = 969115700
        }
        wait_status = MDL_wait::EMPTY
#5  0x000000000068c7a8 in open_table_get_mdl_lock (thd=0x97de100, ot_ctx=0x7f2ab0db9a10, mdl_request=0x7f29d4477220, 
    flags=0, mdl_ticket=0x7f2ab0db9840) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2515
        mdl_deadlock_handler = {
          <Internal_error_handler> = {
            _vptr.Internal_error_handler = 0x1113ff0, 
            m_prev_internal_handler = 0x0
          }, 
          members of MDL_deadlock_handler: 
          m_ot_ctx = 0x7f2ab0db9a10, 
          m_is_active = false
        }
        result = false
        mdl_request_shared = {
          type = 12810936, 
          duration = MDL_STATEMENT, 
          next_in_list = 0x7f29d406da00, 
          prev_in_list = 0x7f2ab0db9320, 
          ticket = 0xbaa3ff, 
          key = {
            m_length = 9, 
            m_db_name_length = 0, 
            m_ptr =               "\000\000\000\000P\212\303\000\000\000\000\000\b\000\000\000\060\000\000\000\060\223۰*\177\000\000p\222۰*\177\000\000\000J\221\000\000\000\000\000\300\200\v\324)\177\000\000\000\332\006\324)\177\000\000\027\000\000\000\000\000\000\000\300\245\n\304)\177\000\000\340\245\n\304)\177\000\000\300\202a\302\062\000\000\000\b\000\000\000\000\000\000\000\001\001\001\001\001\001\001\001aH\305\000\000\000\000\000\300\177\v\324\000\000\001\000Ф\n\304)\177\000\000\000J\221\000\000\000\000\000\300\200\v\324)\177\000\000\300\177\v\324)\177\000\000\360\222۰*\177\000\000i|\272\000\000\000\000\000\300\200\v\324)\177\000\000\000\332\006\324)\177\000\000 \223۰*\177\000\000\364\242\272\000\000\000\000\000\270z\303\000\000\000\000\000\000\332\006\324\257\n\000\000\000\332\006\324)\177\000\000\t\000\000\000\000\000\000\000`\223۰*\177\000\000\342QX\000\000\000\000\000\n\000\000\200\000\000\000\000\260\255\n\304)\177\000\000\017P\305\000\000\000\000\000\060E\305\000\000\000\000\000\t\000\000\200)\177\000\000\020\230۰*\177\000\000\220\223۰*\177\000\000\350\325X\000\000\000\000\000\017P\305", '\000' <repeats 13 times>"\300, \245\n\304)\177\000\000\300\177\v\324\000\000\001\000\260\223۰*\177\000\000V\257\272\000\000\000\000\000\220nG\324)\177\000\000Z\237W\000\000\000\000\000\000\224۰*\177", 
            static m_namespace_to_wait_state_name =               {[0] = 0xc4aff3 "Waiting for global read lock",
              [1] = 0xc4b010 "Waiting for schema metadata lock",
              [2] = 0xc4b038 "Waiting for table metadata lock",
              [3] = 0xc4b058 "Waiting for stored function metadata lock",
              [4] = 0xc4b088 "Waiting for stored procedure metadata lock",
              [5] = 0xc4b0b8 "Waiting for trigger metadata lock",
              [6] = 0xc4b0e0 "Waiting for event metadata lock",
              [7] = 0xc4b100 "Waiting for commit lock"}
          }
        }
        __PRETTY_FUNCTION__ =           "bool open_table_get_mdl_lock(THD*, Open_table_context*, MDL_request*, uint, MDL_ticket**)"
#6  0x000000000068d20d in open_table (thd=0x97de100, table_list=0x7f29d4476e90, mem_root=0x7f2ab0db99d0, 
    ot_ctx=0x7f2ab0db9a10) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:2849
        table = 0x7f2ab0db9a10
        key =           "test\000t6\000\000\000\000\000*\000\000\000\240\230۰*\177\000\000٢\272\000\000\000\000\000\360\230۰*\177\000\000R>\217\000\244\021\000\000\000\000\000\000\000\000\000\000И۰*\177\000\000\024U\305\000\000\000\000\000\060E\305\000\000\000\000\000\a\000\000\200*\177\000\000@\232۰*\177\000\000\340\226۰*\177\000\000̪i\000\000\000\000\000\000\227۰\000\177\000\000И۰*\177\000\000p\231۰*\177\000\000\030\005i\000\000\000\000\000^\265\304\000\000\000\000\000\222\005\005\260\000\000\000\000\200\063\341\001", '\000' <repeats 12 times>"\310, *\026\324)\177\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\300\177\v\324)\177\000\000P\227۰*\177\000\000i|\272\000\002\000\001\000G\023\320\000\000\000\000\000\000\332\006\324)\177\000\000P\230۰*\177\000\000\377\243\272\000\000\000\000\000h\375}\t\000\000\000\000\000J\221\000\000\000\000\000\b\000\000\000\060\000\000\000\300\177\v\324)\177\000\000\240\227۰*\177\000\000i|\272\000\002\000\001\000\002I\305\000\000\000\000\000\000\332\006\324)\177\000\000\240\230۰*\177\000\000\377\243\272\000\000\000\000\000\001\000\000\000\000\000\000\000XT\305\000\000\000\000\000\b\000\000\000\060\000\000\000\260\230۰*\177\000\000\360\227۰*\177\000\000\300\177\v\324\000\000\001\000\310*\026\324)\177\000\000\000", <incomplete sequence \332>
        alias = 0x7f29d41636e0 "t6"
        flags = 0
        _db_stack_frame_ = {
          func = 0xc5543b "open_and_process_table", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483656, 
          prev = 0x7f2ab0db98f0
        }
        mdl_ticket = 0x7f29d40b80c0
        __PRETTY_FUNCTION__ =           "bool open_table(THD*, TABLE_LIST*, MEM_ROOT*, Open_table_context*)"
        key_length = 8
        error = 0
        share = 0xba7c69
        hash_value = 3557523648
#7  0x000000000068fbe0 in open_and_process_table (thd=0x97de100, lex=0x97dfd68, tables=0x7f29d4476e90, 
    counter=0x7f2ab0db9b34, flags=0, prelocking_strategy=0x7f2ab0db9b80, has_prelocking_list=false, 
    ot_ctx=0x7f2ab0db9a10, new_frm_mem=0x7f2ab0db99d0) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4374
        error = false
        safe_to_ignore_table = false
        _db_stack_frame_ = {
          func = 0xc55514 "open_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483655, 
          prev = 0x7f2ab0db9a40
        }
        __PRETTY_FUNCTION__ =           "bool open_and_process_table(THD*, LEX*, TABLE_LIST*, uint*, uint, Prelocking_strategy*, bool, Open_table_context*, MEM_ROOT*)"
#8  0x0000000000690933 in open_tables (thd=0x97de100, start=0x7f2ab0db9af0, counter=0x7f2ab0db9b34, flags=0, 
    prelocking_strategy=0x7f2ab0db9b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:4814
        _db_stack_frame_ = {
          func = 0xc55697 "open_and_lock_tables", 
          file = 0xc54530 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc", 
          level = 2147483654, 
          prev = 0x7f2ab0db9b00
        }
        __FUNCTION__ =           "open_tables"
        table_to_open = 0x7f29d4162ad0
        ot_ctx = {
          m_failed_table = 0x0, 
          m_start_of_statement_svp = {
            m_stmt_ticket = 0x0, 
            m_trans_ticket = 0x0
          }, 
          m_timeout = 31536000, 
          m_flags = 0, 
          m_action = Open_table_context::OT_NO_ACTION, 
          m_has_locks = false, 
          m_has_protection_against_grl = false
        }
        has_prelocking_list = false
        __PRETTY_FUNCTION__ =           "bool open_tables(THD*, TABLE_LIST**, uint*, uint, Prelocking_strategy*)"
        sroutine_to_open = 0x97dfdf0
        tables = 0x7f29d4476e90
        error = false
        new_frm_mem = {
          free = 0x7f29d41ebf00, 
          used = 0x0, 
          pre_alloc = 0x7f29d41ebf00, 
          min_malloc = 32, 
          block_size = 7992, 
          block_num = 4, 
          first_block_usage = 0, 
          error_handler = 0x86202c <sql_alloc_error_handler()>
        }
#9  0x00000000006917c8 in open_and_lock_tables (thd=0x97de100, tables=0x7f29d4162480, derived=true, flags=0, 
    prelocking_strategy=0x7f2ab0db9b80) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.cc:5411
        counter = 3
        mdl_savepoint = {
          m_stmt_ticket = 0x0, 
          m_trans_ticket = 0x0
        }
        _db_stack_frame_ = {
          func = 0xc658bd "mysql_execute_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483653, 
          prev = 0x7f2ab0dbac00
        }
#10 0x000000000065f29c in open_and_lock_tables (thd=0x97de100, tables=0x7f29d4162480, derived=true, flags=0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_base.h:482
        prelocking_strategy = {
          <Prelocking_strategy> = {
            _vptr.Prelocking_strategy = 0x1113fb0
          }, <No data fields>}
#11 0x00000000006e6462 in execute_sqlcom_select (thd=0x97de100, all_tables=0x7f29d4162480)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:4464
        lex = 0x97dfd68
        result = 0x0
        res = false
#12 0x00000000006df545 in mysql_execute_command (thd=0x97de100)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:2094
        privileges_requested = 1
        res = 0
        lex = 0x97dfd68
        _db_stack_frame_ = {
          func = 0xc66367 "mysql_parse", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483652, 
          prev = 0x7f2ab0dbaee0
        }
        __FUNCTION__ =           "mysql_execute_command"
        up_result = 0
        __PRETTY_FUNCTION__ =           "int mysql_execute_command(THD*)"
        select_lex = 0x97e0450
        first_table = 0x7f29d4162480
        all_tables = 0x7f29d4162480
        unit = 0x97dfe18
        have_table_map_for_update = false
#13 0x00000000006e8823 in mysql_parse (thd=0x97de100, 
    rawbuf=0x7f29d41618c0 "select sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1", length=1151, parser_state=0x7f2ab0dbb610)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:5540
        found_semicolon = 0x0
        lex = 0x97dfd68
        err = false
        error = 32554
        _db_stack_frame_ = {
          func = 0xc65571 "dispatch_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483651, 
          prev = 0x7f2ab0dbbb60
        }
        __PRETTY_FUNCTION__ =           "void mysql_parse(THD*, char*, uint, Parser_state*)"
        __FUNCTION__ =           "mysql_parse"
#14 0x00000000006dce7b in dispatch_command (command=COM_QUERY, thd=0x97de100, 
    packet=0x97e1b51 "\nselect sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1\n   ", packet_length=1156)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:1077
        packet_end = 0x7f29d4161d3f ""
        parser_state = {
          m_lip = {
            m_thd = 0x97de100, 
            yylineno = 37, 
            yytoklen = 1, 
            yylval = 0x7f2ab0db9680, 
            lookahead_token = -1, 
            lookahead_yylval = 0x0, 
            m_ptr = 0x7f29d4161d40 "24 )\n \t\n\t straight_join `test`.`explain partitions \nselect sql_cache  \t col263 from\n\t`test`.`t4`select sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1", 
            m_tok_start = 0x7f29d4161d40 "24 )\n \t\n\t straight_join `test`.`explain partitions \nselect sql_cache  \t col263 from\n\t`test`.`t4`select sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1", 
            m_tok_end = 0x7f29d4161d40 "24 )\n \t\n\t straight_join `test`.`explain partitions \nselect sql_cache  \t col263 from\n\t`test`.`t4`select sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1", 
            m_end_of_query = 0x7f29d4161d3f "", 
            m_tok_start_prev = 0x7f29d4161d3f "", 
            m_buf = 0x7f29d41618c0 "select sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1", 
            m_buf_length = 1151, 
            m_echo = true, 
            m_echo_saved = true, 
            m_cpp_buf = 0x7f29d4161da0 "select sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1", 
            m_cpp_ptr = 0x7f29d416221f "", 
            m_cpp_tok_start = 0x7f29d416221f "", 
            m_cpp_tok_start_prev = 0x7f29d416221f "", 
            m_cpp_tok_end = 0x7f29d416221f "", 
            m_body_utf8 = 0x0, 
            m_body_utf8_ptr = 0xc4bf89 "net_flush", 
            m_cpp_utf8_processed_ptr = 0x0, 
            next_state = MY_LEX_END, 
            found_semicolon = 0x0, 
            tok_bitmap = 55 '7', 
            ignore_space = false, 
            stmt_prepare_mode = false, 
            multi_statements = true, 
            in_comment = NO_COMMENT, 
            in_comment_saved = NO_COMMENT, 
            m_cpp_text_start = 0x7f29d416221e "1", 
            m_cpp_text_end = 0x7f29d416221f "", 
            m_underscore_cs = 0x0
          }, 
          m_yacc = {
            yacc_yyss = 0x0, 
            yacc_yyvs = 0x0, 
            m_set_signal_info = {
              m_item =                 {[0] = 0x0 <repeats 12 times>}
            }, 
            m_lock_type = TL_READ_DEFAULT, 
            m_mdl_type = MDL_SHARED_READ
          }
        }
        net = 0x97de378
        __PRETTY_FUNCTION__ =           "bool dispatch_command(enum_server_command, THD*, char*, uint)"
        __FUNCTION__ =           "dispatch_command"
        error = false
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0dbbd00
        }
#15 0x00000000006dc1ad in do_command (thd=0x97de100) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:814
        return_value = false
        packet = 0x97e1b50 "\003\nselect sql_cache   count(*) from\n\t`test`.`t4` as `t4` ignore index (idx19)\n\t natural left join `test`.`t12` as `t12` ignore index (idx97,PRIMARY,idx90)\n \t\n\t right join `test`.`t6` as `t6`  \non (t4.col25 && t6.col52 )\n \t\n\t natural left join `test`.`t23` as `t23` ignore index (PRIMARY)\n \t\n\t left join `test`.`t20` as `t20`  \non (t4.col26 || t20.col214 )\n \t\n\t left join `test`.`t11` as `t11` ignore index (idx80,idx72) \non ( insert(( ((t4.col28) not in ((t4.col29),(t4.col33),(t4.col27),(t4.col27),(t4.col29)))),( least((t4.col33),(t4.col30),(t4.col26))),( encode((t4.col26),(t4.col28))),( @@global.log_bin_trust_function_creators)) regexp @var7 )\n \t\n\t natural right join `test`.`t9` as `t9` \n \t\n\t inner join `test`.`t5` as `t5`  \non ( '1'  )\n \t\n\t right join `test`.`t21` as `t21` force index (idx173,idx173,idx174) \non ( coalesce((t4.col26),(t4.col24),(t4.col27),(t4.col25),(t4.col24)) sounds like  @@global.hostname )\n \t\n\t cross join `test`.`t18` as `t18` use index (idx126,idx128,idx128,idx125) \non (@var4 is not true )\n \t\n\t straight_join `test`.`t28` as `t28`  \non (t4.col27 like t28.col259 )\n  \n\n \n \n  \norder by \n\tt9.col64,\n\tt28.col271 desc\nlimit 1\n   "
        packet_length = 1157
        net = 0x97de378
        command = COM_QUERY
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#16 0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x97de100)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x97de378
        rc = false
        thd = 0x97de100
#17 0x00000000006b6753 in handle_one_connection (arg=0x97de100)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x97de100
#18 0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#19 0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x7f2ab0d7b700 (LWP 2407)):
+backtrace full
#0  0x00000032c240b8c4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000091df4d in safe_cond_wait (cond=0x140c8a0, mp=0x140b8e0, 
    file=0xc2f080 "/mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h", line=980)
    at /mysql2/mysql-next-mr-opt-backporting/mysys/thr_mutex.c:240
        error = 32553
#2  0x000000000056cdea in inline_mysql_cond_wait (that=0x140c8a0, mutex=0x140b8e0, 
    src_file=0xc2fc58 "/mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc", src_line=2077)
    at /mysql2/mysql-next-mr-opt-backporting/include/mysql/psi/mysql_thread.h:980
        result = 0
        locker = 0x0
        state = {
          m_flags = 2966927104, 
          m_cond = 0x914a00, 
          m_mutex = 0x7f2980000003, 
          m_thread = 0x7f29d0008140, 
          m_timer_start = 139821332278464, 
          m_timer = 0xba7c69 <code_state+121>, 
          m_operation = 3489694272, 
          m_src_file = 0x7f29d0008260 "3g\373p\377\177", 
          m_src_line = -1328042768, 
          m_wait = 0xbaa2f4
        }
#3  0x00000000005700af in cache_thread () at /mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc:2077
        __PRETTY_FUNCTION__ =           "bool cache_thread()"
#4  0x0000000000570260 in one_thread_per_connection_end (thd=0x9625800, put_in_cache=true)
    at /mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc:2142
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#5  0x00000000006b6c63 in do_handle_one_connection (thd_arg=0x9625800)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:755
        net = 0x9625a78
        rc = false
        thd = 0x9625800
#6  0x00000000006b6753 in handle_one_connection (arg=0x9625800)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x9625800
#7  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#8  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7f2ab0d3a700 (LWP 2415)):
+backtrace full
#0  0x00000032c240e48d in read () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000bd73f1 in vio_read (vio=0x9616a90, buf=0x98bff00 "\001", size=4)
    at /mysql2/mysql-next-mr-opt-backporting/vio/viosocket.c:44
        r = 2050
        _db_stack_frame_ = {
          func = 0xc654b7 "do_command", 
          file = 0xc653a0 "/mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc", 
          level = 2147483650, 
          prev = 0x7f2ab0d39d00
        }
        __PRETTY_FUNCTION__ =           "vio_read"
#2  0x0000000000640dae in my_real_read (net=0x9625a78, complen=0x7f2ab0d39c80)
    at /mysql2/mysql-next-mr-opt-backporting/sql/net_serv.cc:831
        length = 18446744073709551615
        i = 0
        len = 18446744073709551615
        remain = 4
        __PRETTY_FUNCTION__ =           "ulong my_real_read(NET*, size_t*)"
        pos = 0x98bff00 "\001"
        retry_count = 0
        alarmed = 1 '\001'
        net_blocking = 0 '\000'
#3  0x0000000000641419 in my_net_read (net=0x9625a78) at /mysql2/mysql-next-mr-opt-backporting/sql/net_serv.cc:1028
        len = 12997536
        complen = 0
#4  0x00000000006dbfe6 in do_command (thd=0x9625800) at /mysql2/mysql-next-mr-opt-backporting/sql/sql_parse.cc:760
        return_value = false
        packet = 0x0
        packet_length = 9
        net = 0x9625a78
        command = COM_SLEEP
        __PRETTY_FUNCTION__ =           "bool do_command(THD*)"
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
#5  0x00000000006b6bc2 in do_handle_one_connection (thd_arg=0x99465c0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:748
        net = 0x9625a78
        rc = false
        thd = 0x9625800
#6  0x00000000006b6753 in handle_one_connection (arg=0x99465c0)
    at /mysql2/mysql-next-mr-opt-backporting/sql/sql_connect.cc:684
        thd = 0x99465c0
#7  0x00000032c2406d5b in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#8  0x00000032c1ce4a7d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7f2ab1fa5720 (LWP 2062)):
+backtrace full
#0  0x00000032c1cdb083 in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x000000000057551c in handle_connections_sockets () at /mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc:5365
        flags = 2
        retval = 1
        fds =           {[0] = {
            fd = 10, 
            events = 1, 
            revents = 0
          },
          [1] = {
            fd = 12, 
            events = 1, 
            revents = 0
          }}
        _db_stack_frame_ = {
          func = 0xd82f0d "?func", 
          file = 0xd82f13 "?file", 
          level = 2147483649, 
          prev = 0x0
        }
        sock = 10
        new_sock = 13
        error_count = 0
        cAddr = {
          ss_family = 2, 
          __ss_align = 0, 
          __ss_padding =             "\360Z\373p\377\177\000\000Eܑ\000\000\000\000\000\r/\330\000\000\000\000\000\023/\330\000\000\000\000\000\001\000\000\200\333\022\000\000X\374\302\000\000\000\000\000\060\000\000\000\000\000\000\000`\302@\001\000\000\000\000\340Z\373p\377\177\000\000V\257\272\000\000\000\000\000\360\316+\003\000\000\000\000\372\300,\003\000\000\000\000\220[\373p\377\177\000\000\243\312V\000\000\000\000"
        }
        socket_flags = 2
        thd = 0x9625800
        ip_flags = 2
        vio_tmp = 0x9616a90
        socket_count = 2
#2  0x00000000005749aa in mysqld_main (argc=14, argv=0x32bd738)
    at /mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc:4835
        ho_error = 0
        all_early_options = {
          buffer = 0x0, 
          elements = 0, 
          max_element = 0, 
          alloc_increment = 25, 
          size_of_element = 112
        }
#3  0x000000000056c8d4 in main (argc=2, argv=0x7fff70fb5d08) at /mysql2/mysql-next-mr-opt-backporting/sql/main.cc:24
No locals.
+bt
#0  0x00000032c1cdb083 in poll () from /lib64/libc.so.6
#1  0x000000000057551c in handle_connections_sockets () at /mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc:5365
#2  0x00000000005749aa in mysqld_main (argc=14, argv=0x32bd738)
    at /mysql2/mysql-next-mr-opt-backporting/sql/mysqld.cc:4835
#3  0x000000000056c8d4 in main (argc=2, argv=0x7fff70fb5d08) at /mysql2/mysql-next-mr-opt-backporting/sql/main.cc:24
+quit
A debugging session is active.

	Inferior 1 [process 2062] will be detached.

Quit anyway? (y or n) Detaching from program: /mysql2/mysql-5.6.2-m5-linux-x86_64-debug-max/bin/mysqld, process 2062
