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

mysql-test-run --valgrind main.ps_2myisam gives warning about not initialized memory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.27, 5.3.7
    • Fix Version/s: 5.5.27, 5.3.8
    • Component/s: None
    • Labels:
    • Environment:
      OpenSuse, valgrind

      Description

      mysql-test-run --valgrind main.ps_2myisam
      

      returns in 5.5 (5.3 has an identical stack trace):

      ==21170== Thread 4:
      ==21170== Conditional jump or move depends on uninitialised value(s)
      ==21170==    at 0x8CBB12: pack_time (my_time.c:1456)
      ==21170==    by 0x802EED: get_datetime_value(THD*, Item***, Item**, Item*, bool*) (item_cmpfunc.cc:905)
      ==21170==    by 0x8030D5: Arg_comparator::compare_datetime() (item_cmpfunc.cc:956)
      ==21170==    by 0x8135B6: Arg_comparator::compare() (in /my/maria-5.5/sql/mysqld)
      ==21170==    by 0x805C87: Item_func_eq::val_int() (item_cmpfunc.cc:1858)
      ==21170==    by 0x7E0858: Item::val_bool() (item.cc:215)
      ==21170==    by 0x80F1BC: Item_cond_and::val_int() (item_cmpfunc.cc:4608)
      ==21170==    by 0x67EB74: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:16200)
      ==21170==    by 0x67E7BC: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:16105)
      ==21170==    by 0x67E073: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:15775)
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            monty Michael Widenius added a comment -

            mysql-test-run --valgrind main.in_datetime_241

            Gives a similar warning in latest 5.5 (but not in 5.3)

            Show
            monty Michael Widenius added a comment - mysql-test-run --valgrind main.in_datetime_241 Gives a similar warning in latest 5.5 (but not in 5.3)
            Hide
            serg Sergei Golubchik added a comment -

            fixed, pushed in 5.3-serg

            Show
            serg Sergei Golubchik added a comment - fixed, pushed in 5.3-serg

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                monty Michael Widenius
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h