Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-5934

Assertion "mysql_key_part.field->field_index <= std..numeric_limits<decltype.m_mysql_field_index"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 8.0.x
    • Fix Version/s: None
    • Component/s: TokuDB
    • Labels:
      None

      Description

      sql:

      # mysqld options required for replay: --plugin-load=TokuDB=ha_tokudb.so
      CREATE DATABASE test;
      USE test;
      SET optimizer_switch='derived_merge=off';
      create table t2(c2 double)ENGINE=InnoDB;
      CREATE TABLE t1(c_0 INT,c_1 INT,c_2 INT,c_3 INT,c_4 INT,c_5 INT,c_6 INT,c_7 INT,c_8 INT,c_9 INT,c_10 INT,c_11 INT,c_12 INT,c_13 INT,c_14 INT,c_15 INT,c_16 INT,c_17 INT,c_18 INT,c_19 INT,c_20 INT,c_21 INT,c_22 INT,c_23 INT,c_24 INT,c_25 INT,c_26 INT,c_27 INT,c_28 INT,c_29 INT,c_30 INT,c_31 INT,c_32 INT,c_33 INT,c_34 INT,c_35 INT,c_36 INT,c_37 INT,c_38 INT,c_39 INT,c_40 INT,c_41 INT,c_42 INT,c_43 INT,c_44 INT,c_45 INT,c_46 INT,c_47 INT,c_48 INT,c_49 INT,c_50 INT,c_51 INT,c_52 INT,c_53 INT,c_54 INT,c_55 INT,c_56 INT,c_57 INT,c_58 INT,c_59 INT,c_60 INT,c_61 INT,c_62 INT,c_63 INT,c_64 INT,c_65 INT,c_66 INT,c_67 INT,c_68 INT,c_69 INT,c_70 INT,c_71 INT,c_72 INT,c_73 INT,c_74 INT,c_75 INT,c_76 INT,c_77 INT,c_78 INT,c_79 INT,c_80 INT,c_81 INT,c_82 INT,c_83 INT,c_84 INT,c_85 INT,c_86 INT,c_87 INT,c_88 INT,c_89 INT,c_90 INT,c_91 INT,c_92 INT,c_93 INT,c_94 INT,c_95 INT,c_96 INT,c_97 INT,c_98 INT,c_99 INT,c_100 INT,c_101 INT,c_102 INT,c_103 INT,c_104 INT,c_105 INT,c_106 INT,c_107 INT,c_108 INT,c_109 INT,c_110 INT,c_111 INT,c_112 INT,c_113 INT,c_114 INT,c_115 INT,c_116 INT,c_117 INT,c_118 INT,c_119 INT,c_120 INT,c_121 INT,c_122 INT,c_123 INT,c_124 INT,c_125 INT,c_126 INT,c_127 INT,c_128 INT,c_129 INT,c_130 INT,c_131 INT,c_132 INT,c_133 INT,c_134 INT,c_135 INT,c_136 INT,c_137 INT,c_138 INT,c_139 INT,c_140 INT,c_141 INT,c_142 INT,c_143 INT,c_144 INT,c_145 INT,c_146 INT,c_147 INT,c_148 INT,c_149 INT,c_150 INT,c_151 INT,c_152 INT,c_153 INT,c_154 INT,c_155 INT,c_156 INT,c_157 INT,c_158 INT,c_159 INT,c_160 INT,c_161 INT,c_162 INT,c_163 INT,c_164 INT,c_165 INT,c_166 INT,c_167 INT,c_168 INT,c_169 INT,c_170 INT,c_171 INT,c_172 INT,c_173 INT,c_174 INT,c_175 INT,c_176 INT,c_177 INT,c_178 INT,c_179 INT,c_180 INT,c_181 INT,c_182 INT,c_183 INT,c_184 INT,c_185 INT,c_186 INT,c_187 INT,c_188 INT,c_189 INT,c_190 INT,c_191 INT,c_192 INT,c_193 INT,c_194 INT,c_195 INT,c_196 INT,c_197 INT,c_198 INT,c_199 INT,c_200 INT,c_201 INT,c_202 INT,c_203 INT,c_204 INT,c_205 INT,c_206 INT,c_207 INT,c_208 INT,c_209 INT,c_210 INT,c_211 INT,c_212 INT,c_213 INT,c_214 INT,c_215 INT,c_216 INT,c_217 INT,c_218 INT,c_219 INT,c_220 INT,c_221 INT,c_222 INT,c_223 INT,c_224 INT,c_225 INT,c_226 INT,c_227 INT,c_228 INT,c_229 INT,c_230 INT,c_231 INT,c_232 INT,c_233 INT,c_234 INT,c_235 INT,c_236 INT,c_237 INT,c_238 INT,c_239 INT,c_240 INT,c_241 INT,c_242 INT,c_243 INT,c_244 INT,c_245 INT,c_246 INT,c_247 INT,c_248 INT,c_249 INT,c_250 INT,c_251 INT,c_252 INT,c_253 INT,c_254 INT,c_255 INT,c_256 INT,c_257 INT,c_258 INT,c_259 INT,c_260 INT,c_261 INT,c_262 INT,c_263 INT,c_264 INT,c_265 INT,c_266 INT,c_267 INT,c_268 INT,c_269 INT,c_270 INT,c_271 INT,c_272 INT,c_273 INT,c_274 INT,c_275 INT,c_276 INT,c_277 INT,c_278 INT,c_279 INT,c_280 INT,c_281 INT,c_282 INT,c_283 INT,c_284 INT,c_285 INT,c_286 INT,c_287 INT,c_288 INT,c_289 INT,c_290 INT,c_291 INT,c_292 INT,c_293 INT,c_294 INT,c_295 INT,c_296 INT,c_297 INT,c_298 INT,c_299 INT,c_300 INT,c_301 INT,c_302 INT,c_303 INT,c_304 INT,c_305 INT,c_306 INT,c_307 INT,c_308 INT,c_309 INT,c_310 INT,c_311 INT,c_312 INT,c_313 INT,c_314 INT,c_315 INT,c_316 INT,c_317 INT,c_318 INT,c_319 INT,c_320 INT,c_321 INT,c_322 INT,c_323 INT,c_324 INT,c_325 INT,c_326 INT,c_327 INT,c_328 INT,c_329 INT,c_330 INT,c_331 INT,c_332 INT,c_333 INT,c_334 INT,c_335 INT,c_336 INT,c_337 INT,c_338 INT,c_339 INT,c_340 INT,c_341 INT,c_342 INT,c_343 INT,c_344 INT,c_345 INT,c_346 INT,c_347 INT,c_348 INT,c_349 INT,c_350 INT,c_351 INT,c_352 INT,c_353 INT,c_354 INT,c_355 INT,c_356 INT,c_357 INT,c_358 INT,c_359 INT,c_360 INT,c_361 INT,c_362 INT,c_363 INT,c_364 INT,c_365 INT,c_366 INT,c_367 INT,c_368 INT,c_369 INT,c_370 INT,c_371 INT,c_372 INT,c_373 INT,c_374 INT,c_375 INT,c_376 INT,c_377 INT,c_378 INT,c_379 INT,c_380 INT,c_381 INT,c_382 INT,c_383 INT,c_384 INT,c_385 INT,c_386 INT,c_387 INT,c_388 INT,c_389 INT,c_390 INT,c_391 INT,c_392 INT,c_393 INT,c_394 INT,c_395 INT,c_396 INT,c_397 INT,c_398 INT,c_399 INT,c_400 INT,c_401 INT,c_402 INT,c_403 INT,c_404 INT,c_405 INT,c_406 INT,c_407 INT,c_408 INT,c_409 INT,c_410 INT,c_411 INT,c_412 INT,c_413 INT,c_414 INT,c_415 INT,c_416 INT,c_417 INT,c_418 INT,c_419 INT,c_420 INT,c_421 INT,c_422 INT,c_423 INT,c_424 INT,c_425 INT,c_426 INT,c_427 INT,c_428 INT,c_429 INT,c_430 INT,c_431 INT,c_432 INT,c_433 INT,c_434 INT,c_435 INT,c_436 INT,c_437 INT,c_438 INT,c_439 INT,c_440 INT,c_441 INT,c_442 INT,c_443 INT,c_444 INT,c_445 INT,c_446 INT,c_447 INT,c_448 INT,c_449 INT,c_450 INT,c_451 INT,c_452 INT,c_453 INT,c_454 INT,c_455 INT,c_456 INT,c_457 INT,c_458 INT,c_459 INT,c_460 INT,c_461 INT,c_462 INT,c_463 INT,c_464 INT,c_465 INT,c_466 INT,c_467 INT,c_468 INT,c_469 INT,c_470 INT,c_471 INT,c_472 INT,c_473 INT,c_474 INT,c_475 INT,c_476 INT,c_477 INT,c_478 INT,c_479 INT,c_480 INT,c_481 INT,c_482 INT,c_483 INT,c_484 INT,c_485 INT,c_486 INT,c_487 INT,c_488 INT,c_489 INT,c_490 INT,c_491 INT,c_492 INT,c_493 INT,c_494 INT,c_495 INT,c_496 INT,c_497 INT,c_498 INT,c_499 INT,c_500 INT,c_501 INT,c_502 INT,c_503 INT,c_504 INT,c_505 INT,c_506 INT,c_507 INT,c_508 INT,c_509 INT,c_510 INT,c_511 INT,c_512 INT,c_513 INT,c_514 INT,c_515 INT,c_516 INT,c_517 INT,c_518 INT,c_519 INT,c_520 INT,c_521 INT,c_522 INT,c_523 INT,c_524 INT,c_525 INT,c_526 INT,c_527 INT,c_528 INT,c_529 INT,c_530 INT,c_531 INT,c_532 INT,c_533 INT,c_534 INT,c_535 INT,c_536 INT,c_537 INT,c_538 INT,c_539 INT,c_540 INT,c_541 INT,c_542 INT,c_543 INT,c_544 INT,c_545 INT,c_546 INT,c_547 INT,c_548 INT,c_549 INT,c_550 INT,c_551 INT,c_552 INT,c_553 INT,c_554 INT,c_555 INT,c_556 INT,c_557 INT,c_558 INT,c_559 INT,c_560 INT,c_561 INT,c_562 INT,c_563 INT,c_564 INT,c_565 INT,c_566 INT,c_567 INT,c_568 INT,c_569 INT,c_570 INT,c_571 INT,c_572 INT,c_573 INT,c_574 INT,c_575 INT,c_576 INT,c_577 INT,c_578 INT,c_579 INT,c_580 INT,c_581 INT,c_582 INT,c_583 INT,c_584 INT,c_585 INT,c_586 INT,c_587 INT,c_588 INT,c_589 INT,c_590 INT,c_591 INT,c_592 INT,c_593 INT,c_594 INT,c_595 INT,c_596 INT,c_597 INT,c_598 INT,c_599 INT,c_600 INT,c_601 INT,c_602 INT,c_603 INT,c_604 INT,c_605 INT,c_606 INT,c_607 INT,c_608 INT,c_609 INT,c_610 INT,c_611 INT,c_612 INT,c_613 INT,c_614 INT,c_615 INT,c_616 INT,c_617 INT,c_618 INT,c_619 INT,c_620 INT,c_621 INT,c_622 INT,c_623 INT,c_624 INT,c_625 INT,c_626 INT,c_627 INT,c_628 INT,c_629 INT,c_630 INT,c_631 INT,c_632 INT,c_633 INT,c_634 INT,c_635 INT,c_636 INT,c_637 INT,c_638 INT,c_639 INT,c_640 INT,c_641 INT,c_642 INT,c_643 INT,c_644 INT,c_645 INT,c_646 INT,c_647 INT,c_648 INT,c_649 INT,c_650 INT,c_651 INT,c_652 INT,c_653 INT,c_654 INT,c_655 INT,c_656 INT,c_657 INT,c_658 INT,c_659 INT,c_660 INT,c_661 INT,c_662 INT,c_663 INT,c_664 INT,c_665 INT,c_666 INT,c_667 INT,c_668 INT,c_669 INT,c_670 INT,c_671 INT,c_672 INT,c_673 INT,c_674 INT,c_675 INT,c_676 INT,c_677 INT,c_678 INT,c_679 INT,c_680 INT,c_681 INT,c_682 INT,c_683 INT,c_684 INT,c_685 INT,c_686 INT,c_687 INT,c_688 INT,c_689 INT,c_690 INT,c_691 INT,c_692 INT,c_693 INT,c_694 INT,c_695 INT,c_696 INT,c_697 INT,c_698 INT,c_699 INT,c_700 INT,c_701 INT,c_702 INT,c_703 INT,c_704 INT,c_705 INT,c_706 INT,c_707 INT,c_708 INT,c_709 INT,c_710 INT,c_711 INT,c_712 INT,c_713 INT,c_714 INT,c_715 INT,c_716 INT,c_717 INT,c_718 INT,c_719 INT,c_720 INT,c_721 INT,c_722 INT,c_723 INT,c_724 INT,c_725 INT,c_726 INT,c_727 INT,c_728 INT,c_729 INT,c_730 INT,c_731 INT,c_732 INT,c_733 INT,c_734 INT,c_735 INT,c_736 INT,c_737 INT,c_738 INT,c_739 INT,c_740 INT,c_741 INT,c_742 INT,c_743 INT,c_744 INT,c_745 INT,c_746 INT,c_747 INT,c_748 INT,c_749 INT,c_750 INT,c_751 INT,c_752 INT,c_753 INT,c_754 INT,c_755 INT,c_756 INT,c_757 INT,c_758 INT,c_759 INT,c_760 INT,c_761 INT,c_762 INT,c_763 INT,c_764 INT,c_765 INT,c_766 INT,c_767 INT,c_768 INT,c_769 INT,c_770 INT,c_771 INT,c_772 INT,c_773 INT,c_774 INT,c_775 INT,c_776 INT,c_777 INT,c_778 INT,c_779 INT,c_780 INT,c_781 INT,c_782 INT,c_783 INT,c_784 INT,c_785 INT,c_786 INT,c_787 INT,c_788 INT,c_789 INT,c_790 INT,c_791 INT,c_792 INT,c_793 INT,c_794 INT,c_795 INT,c_796 INT,c_797 INT,c_798 INT,c_799 INT,c_800 INT,c_801 INT,c_802 INT,c_803 INT,c_804 INT,c_805 INT,c_806 INT,c_807 INT,c_808 INT,c_809 INT,c_810 INT,c_811 INT,c_812 INT,c_813 INT,c_814 INT,c_815 INT,c_816 INT,c_817 INT,c_818 INT,c_819 INT,c_820 INT,c_821 INT,c_822 INT,c_823 INT,c_824 INT,c_825 INT,c_826 INT,c_827 INT,c_828 INT,c_829 INT,c_830 INT,c_831 INT,c_832 INT,c_833 INT,c_834 INT,c_835 INT,c_836 INT,c_837 INT,c_838 INT,c_839 INT,c_840 INT,c_841 INT,c_842 INT,c_843 INT,c_844 INT,c_845 INT,c_846 INT,c_847 INT,c_848 INT,c_849 INT,c_850 INT,c_851 INT,c_852 INT,c_853 INT,c_854 INT,c_855 INT,c_856 INT,c_857 INT,c_858 INT,c_859 INT,c_860 INT,c_861 INT,c_862 INT,c_863 INT,c_864 INT,c_865 INT,c_866 INT,c_867 INT,c_868 INT,c_869 INT,c_870 INT,c_871 INT,c_872 INT,c_873 INT,c_874 INT,c_875 INT,c_876 INT,c_877 INT,c_878 INT,c_879 INT,c_880 INT,c_881 INT,c_882 INT,c_883 INT,c_884 INT,c_885 INT,c_886 INT,c_887 INT,c_888 INT,c_889 INT,c_890 INT,c_891 INT,c_892 INT,c_893 INT,c_894 INT,c_895 INT,c_896 INT,c_897 INT,c_898 INT,c_899 INT,c_900 INT,c_901 INT,c_902 INT,c_903 INT,c_904 INT,c_905 INT,c_906 INT,c_907 INT,c_908 INT,c_909 INT,c_910 INT,c_911 INT,c_912 INT,c_913 INT,c_914 INT,c_915 INT,c_916 INT,c_917 INT,c_918 INT,c_919 INT,c_920 INT,c_921 INT,c_922 INT,c_923 INT,c_924 INT,c_925 INT,c_926 INT,c_927 INT,c_928 INT,c_929 INT,c_930 INT,c_931 INT,c_932 INT,c_933 INT,c_934 INT,c_935 INT,c_936 INT,c_937 INT,c_938 INT,c_939 INT,c_940 INT,c_941 INT,c_942 INT,c_943 INT,c_944 INT,c_945 INT,c_946 INT,c_947 INT,c_948 INT,c_949 INT,c_950 INT,c_951 INT,c_952 INT,c_953 INT,c_954 INT,c_955 INT,c_956 INT,c_957 INT,c_958 INT,c_959 INT,c_960 INT,c_961 INT,c_962 INT,c_963 INT,c_964 INT,c_965 INT,c_966 INT,c_967 INT,c_968 INT,c_969 INT,c_970 INT,c_971 INT,c_972 INT,c_973 INT,c_974 INT,c_975 INT,c_976 INT,c_977 INT,c_978 INT,c_979 INT,c_980 INT,c_981 INT,c_982 INT,c_983 INT,c_984 INT,c_985 INT,c_986 INT,c_987 INT,c_988 INT,c_989 INT,c_990 INT,c_991 INT,c_992 INT,c_993 INT,c_994 INT,c_995 INT,c_996 INT,c_997 INT,c_998 INT,c_999 INT,c_1000 INT,c_1001 INT,c_1002 INT,c_1003 INT,c_1004 INT,c_1005 INT,c_1006 INT,c_1007 INT,c_1008 INT,c_1009 INT,c_1010 INT,c_1011 INT,c_1012 INT,c_1013 INT,c_1014 INT,c_1015 INT,c_1016 INT,c_1017 INT,c_1018 INT,c_1019 INT,c_1020 INT,c_1021 INT,c_1022 INT,c_1023 INT,c_1024 INT,c_1025 INT)ENGINE=TokuDB DEFAULT CHARSET=utf8;
      ALTER TABLE t1 ADD COLUMN b INT;
      EXPLAIN SELECT * FROM(SELECT * FROM t1,t2)t WHERE b IS NULL;
      

      gdb:

      Core was generated by `/sdc/PS300819-percona-server-8.0.16-7-linux-x86_64-debug/bin/mysqld --no-defaul'.
      Program terminated with signal 6, Aborted.
      #0  0x00007f282af759d1 in __pthread_kill (threadid=<optimized out>, signo=6) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:59
      59        val = INTERNAL_SYSCALL (tgkill, err, 3, THREAD_GETMEM (THREAD_SELF, pid),
      (gdb) bt
      +bt
      #0  0x00007f282af759d1 in __pthread_kill (threadid=<optimized out>, signo=6) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:59
      #1  0x000000000458b977 in my_write_core (sig=6) at /sdc/ps-8.0-0830_dbg/mysys/stacktrace.cc:284
      #2  0x00000000034ee891 in handle_fatal_signal (sig=6) at /sdc/ps-8.0-0830_dbg/sql/signal_handler.cc:171
      #3  <signal handler called>
      #4  0x00007f28290782c7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
      #5  0x00007f28290799b8 in __GI_abort () at abort.c:90
      #6  0x00007f28290710e6 in __assert_fail_base (fmt=0x7f28291cc020 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x64e9fb0 "mysql_key_part.field->field_index <= std::numeric_limits<decltype(m_mysql_field_index)>::max()", file=file@entry=0x64e9f60 "/sdc/ps-8.0-0830_dbg/storage/temptable/include/temptable/indexed_column.h", line=line@entry=65, function=function@entry=0x64ea580 <_ZZN9temptable14Indexed_columnC4ERK13KEY_PART_INFOE19__PRETTY_FUNCTION__> "temptable::Indexed_column::Indexed_column(const KEY_PART_INFO&)") at assert.c:92
      #7  0x00007f2829071192 in __GI___assert_fail (assertion=0x64e9fb0 "mysql_key_part.field->field_index <= std::numeric_limits<decltype(m_mysql_field_index)>::max()", file=0x64e9f60 "/sdc/ps-8.0-0830_dbg/storage/temptable/include/temptable/indexed_column.h", line=65, function=0x64ea580 <_ZZN9temptable14Indexed_columnC4ERK13KEY_PART_INFOE19__PRETTY_FUNCTION__> "temptable::Indexed_column::Indexed_column(const KEY_PART_INFO&)") at assert.c:101
      #8  0x0000000004db02b4 in temptable::Indexed_column::Indexed_column (this=0x7f28278d80a0, mysql_key_part=...) at /sdc/ps-8.0-0830_dbg/storage/temptable/include/temptable/indexed_column.h:64
      #9  0x0000000004daf1eb in temptable::Index::Index (this=0x7f28278d8088, table=..., mysql_index=...) at /sdc/ps-8.0-0830_dbg/storage/temptable/src/index.cc:51
      #10 0x0000000004daf2f0 in temptable::Tree::Tree (this=0x7f28278d8088, table=..., mysql_index=..., allocator=...) at /sdc/ps-8.0-0830_dbg/storage/temptable/src/index.cc:66
      #11 0x0000000004da6b82 in temptable::Table::append_new_index<temptable::Tree> (this=0x7f2785dcd510, mysql_index=...) at /sdc/ps-8.0-0830_dbg/storage/temptable/include/temptable/table.h:260
      #12 0x0000000004da5324 in temptable::Table::indexes_create (this=0x7f2785dcd510) at /sdc/ps-8.0-0830_dbg/storage/temptable/src/table.cc:257
      #13 0x0000000004da4adb in temptable::Table::Table (this=0x7f2785dcd510, mysql_table=0x7f27866bb028, all_columns_are_fixed_size=true) at /sdc/ps-8.0-0830_dbg/storage/temptable/src/table.cc:93
      #14 0x0000000004da1553 in std::pair<std::string const, temptable::Table>::pair<char const*, 0ul, TABLE*&, bool&, 0ul, 1ul> (this=0x7f2785dcd508, __tuple1=Python Exception <type 'exceptions.ValueError'> Cannot parse more than 2 nodes in a tuple tree.:
      std::tuple containing, __tuple2=std::tuple containing = {...}) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/tuple:1172
      #15 0x0000000004da13c7 in std::pair<std::string const, temptable::Table>::pair<char const*, TABLE*&, bool&> (this=0x7f2785dcd508, __first=Python Exception <type 'exceptions.ValueError'> Cannot parse more than 2 nodes in a tuple tree.:
      std::tuple containing, __second=std::tuple containing = {...}) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/tuple:1161
      #16 0x0000000004da113a in __gnu_cxx::new_allocator<std::pair<std::string const, temptable::Table> >::construct<std::pair<std::string const, temptable::Table>, std::piecewise_construct_t const&, std::tuple<char const*>, std::tuple<TABLE*&, bool&> >(std::pair<std::string const, temptable::Table>*, std::piecewise_construct_t const&, std::tuple<char const*>&&, std::tuple<TABLE*&, bool&>&&) (this=0x7f2827a1763f, __p=0x7f2785dcd508) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/ext/new_allocator.h:120
      #17 0x0000000004da0ca9 in std::allocator_traits<std::allocator<std::pair<std::string const, temptable::Table> > >::construct<std::pair<std::string const, temptable::Table>, std::piecewise_construct_t const&, std::tuple<char const*>, std::tuple<TABLE*&, bool&> >(std::allocator<std::pair<std::string const, temptable::Table> >&, std::pair<std::string const, temptable::Table>*, std::piecewise_construct_t const&, std::tuple<char const*>&&, std::tuple<TABLE*&, bool&>&&) (__a=..., __p=0x7f2785dcd508) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/bits/alloc_traits.h:530
      #18 0x0000000004da05c7 in std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<std::string const, temptable::Table>, true> > >::_M_allocate_node<std::piecewise_construct_t const&, std::tuple<char const*>, std::tuple<TABLE*&, bool&> >(std::piecewise_construct_t const&, std::tuple<char const*>&&, std::tuple<TABLE*&, bool&>&&) (this=0x7f2827a1b6b0) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/bits/hashtable_policy.h:1955
      #19 0x0000000004da0042 in std::_Hashtable<std::string, std::pair<std::string const, temptable::Table>, std::allocator<std::pair<std::string const, temptable::Table> >, std::__detail::_Select1st, std::equal_to<std::string>, std::hash<std::string>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_emplace<std::piecewise_construct_t const&, std::tuple<char const*>, std::tuple<TABLE*&, bool&> >(std::integral_constant<bool, true>, std::piecewise_construct_t const&, std::tuple<char const*>&&, std::tuple<TABLE*&, bool&>&&) (this=0x7f2827a1b6b0) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/bits/hashtable.h:1526
      #20 0x0000000004d9fcf8 in std::_Hashtable<std::string, std::pair<std::string const, temptable::Table>, std::allocator<std::pair<std::string const, temptable::Table> >, std::__detail::_Select1st, std::equal_to<std::string>, std::hash<std::string>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::emplace<std::piecewise_construct_t const&, std::tuple<char const*>, std::tuple<TABLE*&, bool&> >(std::piecewise_construct_t const&, std::tuple<char const*>&&, std::tuple<TABLE*&, bool&>&&) (this=0x7f2827a1b6b0) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/bits/hashtable.h:726
      #21 0x0000000004d9f70a in std::unordered_map<std::string, temptable::Table, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string const, temptable::Table> > >::emplace<std::piecewise_construct_t const&, std::tuple<char const*>, std::tuple<TABLE*&, bool&> >(std::piecewise_construct_t const&, std::tuple<char const*>&&, std::tuple<TABLE*&, bool&>&&) (this=0x7f2827a1b6b0) at /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/bits/unordered_map.h:380
      #22 0x0000000004d99bc3 in temptable::Handler::create (this=0x7f2785f82fb0, table_name=0x7f2785c54748 "/dev/shm/1567226202/tmp/#sql8a0_8_0", mysql_table=0x7f27866bb028) at /sdc/ps-8.0-0830_dbg/storage/temptable/src/handler.cc:135
      #23 0x000000000340ca45 in create_tmp_table_with_fallback (table=0x7f27866bb028) at /sdc/ps-8.0-0830_dbg/sql/sql_tmp_table.cc:2159
      #24 0x000000000340cfee in instantiate_tmp_table (thd=0x7f2785c21000, table=0x7f27866bb028) at /sdc/ps-8.0-0830_dbg/sql/sql_tmp_table.cc:2237
      #25 0x000000000329134f in TABLE_LIST::create_materialized_table (this=0x7f2785da3bd0, thd=0x7f2785c21000) at /sdc/ps-8.0-0830_dbg/sql/sql_derived.cc:769
      #26 0x000000000337f909 in JOIN::prepare_result (this=0x7f27861c1750) at /sdc/ps-8.0-0830_dbg/sql/sql_select.cc:1629
      #27 0x00000000036bba19 in explain_query_specification (explain_thd=0x7f2785c21000, query_thd=0x7f2785c21000, select_lex=0x7f2785c720a8, ctx=CTX_JOIN) at /sdc/ps-8.0-0830_dbg/sql/opt_explain.cc:1974
      #28 0x00000000036bd097 in mysql_explain_unit (explain_thd=0x7f2785c21000, query_thd=0x7f2785c21000, unit=0x7f2785c72388) at /sdc/ps-8.0-0830_dbg/sql/opt_explain.cc:2259
      #29 0x00000000036bcdd3 in explain_query (explain_thd=0x7f2785c21000, query_thd=0x7f2785c21000, unit=0x7f2785c72388) at /sdc/ps-8.0-0830_dbg/sql/opt_explain.cc:2190
      #30 0x000000000337e310 in Sql_cmd_dml::execute_inner (this=0x7f2785da42a0, thd=0x7f2785c21000) at /sdc/ps-8.0-0830_dbg/sql/sql_select.cc:901
      #31 0x000000000337d9cf in Sql_cmd_dml::execute (this=0x7f2785da42a0, thd=0x7f2785c21000) at /sdc/ps-8.0-0830_dbg/sql/sql_select.cc:700
      #32 0x0000000003319ee7 in mysql_execute_command (thd=0x7f2785c21000, first_level=true) at /sdc/ps-8.0-0830_dbg/sql/sql_parse.cc:4626
      #33 0x000000000331c7d2 in mysql_parse (thd=0x7f2785c21000, parser_state=0x7f2827a19a10, update_userstat=false) at /sdc/ps-8.0-0830_dbg/sql/sql_parse.cc:5427
      #34 0x0000000003311398 in dispatch_command (thd=0x7f2785c21000, com_data=0x7f2827a1ab80, command=COM_QUERY) at /sdc/ps-8.0-0830_dbg/sql/sql_parse.cc:1796
      #35 0x000000000330f839 in do_command (thd=0x7f2785c21000) at /sdc/ps-8.0-0830_dbg/sql/sql_parse.cc:1293
      #36 0x00000000034d911d in handle_connection (arg=0x7f2812b851a0) at /sdc/ps-8.0-0830_dbg/sql/conn_handler/connection_handler_per_thread.cc:308
      #37 0x0000000004677884 in pfs_spawn_thread (arg=0x7f2812b2aa20) at /sdc/ps-8.0-0830_dbg/storage/perfschema/pfs.cc:2836
      #38 0x00007f282af70dd5 in start_thread (arg=0x7f2827a1b700) at pthread_create.c:307
      #39 0x00007f282914002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
      

      This seems debug-only. Wasn't able to reproduce it on the release builds.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hrvoje.matijakovic Hrvoje Matijakovic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour
                  1h