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

5.5 valgrind failure: invalid read in Item_direct_view_ref::send

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.27
    • 5.5.28
    • None
    • None

    Description

      The failure looks like

      main.ps_ddl                              w6 [ fail ]  Found warnings/errors in server log file!
              Test ended at 2012-09-06 18:35:32
      line
      ==32286== Thread 4:
      ==32286== Invalid read of size 1
      ==32286==    at 0x7557E9: Item_direct_view_ref::send(Protocol*, String*) (item.h:3172)
      ==32286==    by 0x52DA98: Protocol::send_result_set_row(List<Item>*) (protocol.cc:900)
      ==32286==    by 0x588F18: select_send::send_data(List<Item>&) (sql_class.cc:2275)
      ==32286==    by 0x5F8DD5: end_send(JOIN*, st_join_table*, bool) (sql_select.cc:17155)
      ==32286==    by 0x5F0ADC: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:16309)
      ==32286==    by 0x5F3349: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:16090)
      ==32286==    by 0x619704: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:15760)
      ==32286==    by 0x61DD98: JOIN::exec() (sql_select.cc:2833)
      ==32286==    by 0x61FA14: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3053)
      ==32286==    by 0x620558: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:316)
      ==32286==    by 0x5BFDDD: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4621)
      ==32286==    by 0x5C8587: mysql_execute_command(THD*) (sql_parse.cc:2189)
      ==32286==    by 0x5DBD4B: Prepared_statement::execute(String*, bool) (sql_prepare.cc:3886)
      ==32286==    by 0x5DEEDA: Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) (sql_prepare.cc:3545)
      ==32286==    by 0x5DF664: mysql_sql_stmt_execute(THD*) (sql_prepare.cc:2711)
      ==32286==    by 0x5C6EEF: mysql_execute_command(THD*) (sql_parse.cc:2199)
      ==32286==  Address 0x11d23000 is 2,096 bytes inside a block of size 5,312 free'd
      ==32286==    at 0x4C24200: free (vg_replace_malloc.c:366)
      ==32286==    by 0xB66F0B: my_free (my_malloc.c:115)
      ==32286==    by 0xB5CFE9: free_root (my_alloc.c:366)
      ==32286==    by 0x5FBD2E: free_tmp_table(THD*, TABLE*) (sql_select.cc:15580)
      ==32286==    by 0x572D7B: close_thread_tables(THD*) (sql_base.cc:1525)
      ==32286==    by 0x5C5822: mysql_execute_command(THD*) (sql_parse.cc:4525)
      ==32286==    by 0x5DBD4B: Prepared_statement::execute(String*, bool) (sql_prepare.cc:3886)
      ==32286==    by 0x5DEEDA: Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) (sql_prepare.cc:3545)
      ==32286==    by 0x5DF664: mysql_sql_stmt_execute(THD*) (sql_prepare.cc:2711)
      ==32286==    by 0x5C6EEF: mysql_execute_command(THD*) (sql_parse.cc:2199)
      ==32286==    by 0x5CB1A4: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5736)
      ==32286==    by 0x5CC6A1: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1055)
      ==32286==    by 0x5CCD6D: do_command(THD*) (sql_parse.cc:794)
      ==32286==    by 0x6A0763: do_handle_one_connection(THD*) (sql_connect.cc:1253)
      ==32286==    by 0x6A0863: handle_one_connection (sql_connect.cc:1168)
      ==32286==    by 0x8E8267: pfs_spawn_thread (pfs.cc:1015)
      ^ Found warnings in /dev/shm/var_auto_LeIb/6/log/mysqld.1.err

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.