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

LP #890168: valgrind error in MYSQL_QUERY_LOG::write

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by sbester last update 11-09-2012 06:32:47

      After issuing a mysqladmin shutdown, valgrind errors are found:

      ==21425== 6 errors in context 7 of 7:
      ==21425== Conditional jump or move depends on uninitialised value(s)
      ==21425== at 0x9AABBF: int10_to_str (int2str.c:162)
      ==21425== by 0x7BD52D: my_b_vprintf (mf_iocache2.c:455)
      ==21425== by 0x7BD72A: my_b_printf (mf_iocache2.c:301)
      ==21425== by 0x7395AE: MYSQL_QUERY_LOG::write(THD*, unsigned long long, long, char const*, unsigned int, unsigned long long, unsigned long long, bool, char const*, unsigned int) (log.cc:2760)
      ==21425== by 0x73A0AD: Log_to_file_event_handler::log_slow(THD*, unsigned long long, long, char const*, unsigned int, unsigned long long, unsigned long long, bool, char const*, unsigned int) (log.cc:950)
      ==21425== by 0x72E047: LOGGER::slow_log_print(THD*, char const*, unsigned int, unsigned long long) (log.cc:1281)
      ==21425== by 0x72E1BA: slow_log_print(THD*, char const*, unsigned int, unsigned long long) (log.cc:5157)
      ==21425== by 0x57DD43: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1426)
      ==21425== by 0x57F325: do_command(THD*) (sql_parse.cc:786)
      ==21425== by 0x61A0A0: do_handle_one_connection(THD*) (sql_connect.cc:1409)
      ==21425== by 0x61A193: handle_one_connection (sql_connect.cc:1315)
      ==21425== by 0x30E1807760: start_thread (pthread_create.c:301)
      ==21425== by 0x1BC0770F: ???
      ==21425== Uninitialised value was created by a heap allocation
      ==21425== at 0x4A054B2: malloc (vg_replace_malloc.c:236)
      ==21425== by 0x7CB021: my_malloc (my_malloc.c:38)
      ==21425== by 0x502F60: handle_connections_sockets() (sql_list.h:533)
      ==21425== by 0x5089DB: mysqld_main(int, char**) (mysqld.cc:4808)
      ==21425== by 0x30E141EC5C: (below main) (libc-start.c:226)

      I ran the server like this:
      valgrind -v --leak-check=full --show-reachable=yes --db-attach=yes --track-origins=yes --tool=memcheck --num-callers=50 --db-command="gdb -nw %f %p" ./bin/mysqld --no-defaults --basedir=. --datadir=./data --skip-gr --skip-na --query-cache-type=0 --query-cache-size=0 --myisam-use-mmap=10 --table-open-cache=10 --log-output=TABLE --log-slow-queries --long-query-time=0 --innodb-log-file-size=512M

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: