select format(year(str_to_date('',get_format(time,''))),1); [sbester@levovo mysql-5.6.1-m5-linux-x86_64]$ valgrind -v --show-reachable=no --db-attach=yes --track-origins=yes --leak-check=full --tool=memcheck --num-callers=50 ./bin/mysqld --no-defaults --basedir=. --datadir=./data --skip-gr --myisam-recover=force --open-files-limit=2000 --port=3306 --socket=/tmp/mysql.sock --tmpdir=. --gdb --skip-na ==1520== Memcheck, a memory error detector ==1520== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==1520== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==1520== Command: ./bin/mysqld --no-defaults --basedir=. --datadir=./data --skip-gr --myisam-recover=force --open-files-limit=2000 --port=3306 --socket=/tmp/mysql.sock --tmpdir=. --gdb --skip-na ==1520== --1520-- Valgrind options: --1520-- -v --1520-- --show-reachable=no --1520-- --db-attach=yes --1520-- --track-origins=yes --1520-- --leak-check=full --1520-- --tool=memcheck --1520-- --num-callers=50 --1520-- Contents of /proc/version: --1520-- Linux version 2.6.33.3-85.fc13.x86_64 (mockbuild@x86-02.phx2.fedoraproject.org) (gcc version 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC) ) #1 SMP Thu May 6 18:09:49 UTC 2010 --1520-- Arch and hwcaps: AMD64, amd64-sse3-cx16 --1520-- Page sizes: currently 4096, max supported 4096 --1520-- Valgrind library directory: /usr/lib64/valgrind --1520-- Reading syms from /home/sbester/mysql/5.6/mysql-5.6.1-m5-linux-x86_64/bin/mysqld (0x400000) --1520-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux (0x38000000) --1520-- object doesn't have a dynamic symbol table --1520-- Reading syms from /lib64/ld-2.12.so (0x30e1000000) --1520-- Reading debug info from /usr/lib/debug/lib64/ld-2.12.so.debug .. --1520-- Reading suppressions file: /usr/lib64/valgrind/default.supp --1520-- REDIR: 0x30e1017590 (strlen) redirected to 0x3803f6f7 (vgPlain_amd64_linux_REDIR_FOR_strlen) --1520-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so (0x4801000) --1520-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so (0x4a02000) ==1520== WARNING: new redirection conflicts with existing -- ignoring it --1520-- new: 0x30e1017590 (strlen ) R-> 0x04a06340 strlen --1520-- REDIR: 0x30e1017400 (index) redirected to 0x4a05f80 (index) --1520-- REDIR: 0x30e1017480 (strcmp) redirected to 0x4a06900 (strcmp) --1520-- Reading syms from /lib64/libpthread-2.12.so (0x30e1800000) --1520-- Reading debug info from /usr/lib/debug/lib64/libpthread-2.12.so.debug .. --1520-- Reading syms from /lib64/libz.so.1.2.3 (0x30e2400000) --1520-- Reading debug info from /usr/lib/debug/lib64/libz.so.1.2.3.debug .. --1520-- Reading syms from /lib64/libm-2.12.so (0x30e1c00000) --1520-- Reading debug info from /usr/lib/debug/lib64/libm-2.12.so.debug .. --1520-- Reading syms from /lib64/librt-2.12.so (0x30e2800000) --1520-- Reading debug info from /usr/lib/debug/lib64/librt-2.12.so.debug .. --1520-- Reading syms from /lib64/libcrypt-2.12.so (0x33b8200000) --1520-- Reading debug info from /usr/lib/debug/lib64/libcrypt-2.12.so.debug .. --1520-- Reading syms from /lib64/libdl-2.12.so (0x30e2000000) --1520-- Reading debug info from /usr/lib/debug/lib64/libdl-2.12.so.debug .. --1520-- Reading syms from /lib64/libc-2.12.so (0x30e1400000) --1520-- Reading debug info from /usr/lib/debug/lib64/libc-2.12.so.debug .. --1520-- Reading syms from /lib64/libfreebl3.so (0x33b8600000) --1520-- Reading debug info from /usr/lib/debug/lib64/libfreebl3.so.debug .. --1520-- REDIR: 0x30e1481ad0 (__GI_strrchr) redirected to 0x4a05e00 (__GI_strrchr) --1520-- REDIR: 0x30e1482850 (memset) redirected to 0x4a07540 (memset) --1520-- REDIR: 0x30e147ffe0 (strlen) redirected to 0x480155c (_vgnU_ifunc_wrapper) ==1520== WARNING: new redirection conflicts with existing -- ignoring it --1520-- new: 0x30e1480010 (__GI_strlen ) R-> 0x04a062e0 strlen --1520-- REDIR: 0x30e1480010 (__GI_strlen) redirected to 0x4a06300 (__GI_strlen) --1520-- REDIR: 0x30e1479610 (calloc) redirected to 0x4a043d3 (calloc) --1520-- REDIR: 0x30e147e5a0 (strcmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --1520-- REDIR: 0x30e1527820 (__strcmp_ssse3) redirected to 0x4a06860 (strcmp) --1520-- REDIR: 0x30e1480060 (strnlen) redirected to 0x4a06280 (strnlen) --1520-- REDIR: 0x30e1482690 (memmove) redirected to 0x4a075b0 (memmove) --1520-- REDIR: 0x30e1485260 (strchrnul) redirected to 0x4a07620 (strchrnul) --1520-- REDIR: 0x30e1483c60 (memcpy) redirected to 0x4a069d0 (memcpy) --1520-- REDIR: 0x30e14799d0 (malloc) redirected to 0x4a050db (malloc) --1520-- Reading syms from /lib64/libgcc_s-4.4.4-20100630.so.1 (0x30ec000000) --1520-- Reading debug info from /usr/lib/debug/lib64/libgcc_s-4.4.4-20100630.so.1.debug .. ==1520== WARNING: new redirection conflicts with existing -- ignoring it --1520-- new: 0x30e1480010 (__GI_strlen ) R-> 0x04a062e0 strlen --1520-- REDIR: 0x30e147a750 (free) redirected to 0x4a04ceb (free) --1520-- REDIR: 0x30e1480220 (__GI_strncmp) redirected to 0x4a06800 (__GI_strncmp) --1520-- REDIR: 0x30e147fa30 (strcpy) redirected to 0x480155c (_vgnU_ifunc_wrapper) --1520-- REDIR: 0x30e1524280 (???) redirected to 0x4a06360 (strcpy) --1520-- REDIR: 0x30e1482260 (bcmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --1520-- REDIR: 0x30e1482290 (__GI_memcmp) redirected to 0x4a07160 (bcmp) --1520-- REDIR: 0x30e147abd0 (realloc) redirected to 0x4a0518c (realloc) --1520-- REDIR: 0x30e147fa60 (__GI_strcpy) redirected to 0x4a06430 (__GI_strcpy) --1520-- REDIR: 0x30e147e5e0 (__GI_strcmp) redirected to 0x4a068b0 (__GI_strcmp) --1520-- REDIR: 0xffffffffff600400 (???) redirected to 0x3803f6ed (vgPlain_amd64_linux_REDIR_FOR_vtime) --1520-- REDIR: 0x30e1485210 (__GI___rawmemchr) redirected to 0x4a07670 (__GI___rawmemchr) --1520-- REDIR: 0x30e1481aa0 (rindex) redirected to 0x480155c (_vgnU_ifunc_wrapper) ==1520== WARNING: new redirection conflicts with existing -- ignoring it --1520-- new: 0x30e1481ad0 (__GI_strrchr ) R-> 0x04a05dd0 rindex --1520-- REDIR: 0x30e147e4f0 (index) redirected to 0x480155c (_vgnU_ifunc_wrapper) ==1520== WARNING: new redirection conflicts with existing -- ignoring it --1520-- new: 0x30e147e520 (__GI_strchr ) R-> 0x04a05e90 index --1520-- REDIR: 0x30e147e520 (__GI_strchr) redirected to 0x4a05ec0 (__GI_strchr) --1520-- REDIR: 0x30e1480140 (strncat) redirected to 0x4a06170 (strncat) --1520-- REDIR: 0x30e1483380 (mempcpy) redirected to 0x4a07690 (mempcpy) --1520-- REDIR: 0x30e14821e0 (memchr) redirected to 0x4a069a0 (memchr) --1520-- REDIR: 0x30e1483990 (stpcpy) redirected to 0x480155c (_vgnU_ifunc_wrapper) --1520-- REDIR: 0x30e1525c20 (???) redirected to 0x4a07200 (stpcpy) --1520-- REDIR: 0x30e14801e0 (strncmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --1520-- REDIR: 0x30e1528a80 (__strncmp_ssse3) redirected to 0x4a067a0 (strncmp) 101223 13:11:42 [Note] Plugin 'FEDERATED' is disabled. 101223 13:11:42 InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! 101223 13:11:42 InnoDB: The InnoDB memory heap is disabled 101223 13:11:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins 101223 13:11:42 InnoDB: Compressed tables use zlib 1.2.3 --1520-- REDIR: 0xffffffffff600000 (???) redirected to 0x3803f6e3 (vgPlain_amd64_linux_REDIR_FOR_vgettimeofday) 101223 13:11:43 InnoDB: Initializing buffer pool, size = 128.0M 101223 13:11:48 InnoDB: Completed initialization of buffer pool 101223 13:11:50 InnoDB: highest supported file format is Barracuda. 101223 13:12:01 InnoDB: 1.2.1 started; log sequence number 1601584 101223 13:12:03 [Note] ./bin/mysqld: ready for connections. Version: '5.6.1-m5-valgrind-max-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution ==1520== Thread 18: ==1520== Conditional jump or move depends on uninitialised value(s) ==1520== at 0xB2F655: ull2dec (decimal.c:998) ==1520== by 0xB2F79C: longlong2decimal (decimal.c:1026) ==1520== by 0x74C952: int2my_decimal(unsigned int, long long, char, my_decimal*) (my_decimal.h:374) ==1520== by 0x7AEEC7: Item_func::val_decimal(my_decimal*) (item_func.cc:528) ==1520== by 0x7D874B: Item_func_format::val_str_ascii(String*) (item_strfunc.cc:2397) ==1520== by 0x7D083F: Item_str_ascii_func::val_str(String*) (item_strfunc.cc:77) ==1520== by 0x77722F: Item::send(Protocol*, String*) (item.cc:5931) ==1520== by 0x57D37A: Protocol::send_result_set_row(List*) (protocol.cc:848) ==1520== by 0x5C75AD: select_send::send_data(List&) (sql_class.cc:1866) ==1520== by 0x6203C2: JOIN::exec() (sql_select.cc:2794) ==1520== by 0x622F0F: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List&, 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:3554) ==1520== by 0x619558: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:323) ==1520== by 0x5FBC9A: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4513) ==1520== by 0x5F48FD: mysql_execute_command(THD*) (sql_parse.cc:2096) ==1520== by 0x5FDDF6: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5550) ==1520== by 0x5F21BD: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1078) ==1520== by 0x5F14C5: do_command(THD*) (sql_parse.cc:815) ==1520== by 0x6D131C: do_handle_one_connection(THD*) (sql_connect.cc:748) ==1520== by 0x6D0EAD: handle_one_connection (sql_connect.cc:684) ==1520== by 0x30E1807760: start_thread (pthread_create.c:301) ==1520== by 0x1B07070F: ??? ==1520== Uninitialised value was created by a stack allocation ==1520== at 0x7FAA66: Item_func_year::val_int() (item_timefunc.cc:1303) ==1520== ==1520== ==1520== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y ==1520== starting debugger with cmd: /usr/bin/gdb -nw /proc/1917/fd/10000 1917 GNU gdb (GDB) Fedora (7.1-18.fc13) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /proc/1917/fd/10000...done. Attaching to program: /proc/1917/fd/10000, process 1917 Reading symbols from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so...done. Loaded symbols for /usr/lib64/valgrind/vgpreload_core-amd64-linux.so Reading symbols from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so...done. Loaded symbols for /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so Reading symbols from /lib64/libpthread.so.0...Reading symbols from /usr/lib/debug/lib64/libpthread-2.12.so.debug...done. [Thread debugging using libthread_db enabled] done. Loaded symbols for /lib64/libpthread.so.0 Reading symbols from /lib64/libz.so.1...Reading symbols from /usr/lib/debug/lib64/libz.so.1.2.3.debug...done. done. Loaded symbols for /lib64/libz.so.1 Reading symbols from /lib64/libm.so.6...Reading symbols from /usr/lib/debug/lib64/libm-2.12.so.debug...done. done. Loaded symbols for /lib64/libm.so.6 Reading symbols from /lib64/librt.so.1...Reading symbols from /usr/lib/debug/lib64/librt-2.12.so.debug...done. done. Loaded symbols for /lib64/librt.so.1 Reading symbols from /lib64/libcrypt.so.1...Reading symbols from /usr/lib/debug/lib64/libcrypt-2.12.so.debug...done. done. Loaded symbols for /lib64/libcrypt.so.1 Reading symbols from /lib64/libdl.so.2...Reading symbols from /usr/lib/debug/lib64/libdl-2.12.so.debug...done. done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/lib64/libc-2.12.so.debug...done. done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib64/ld-2.12.so.debug...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib64/libfreebl3.so...Reading symbols from /usr/lib/debug/lib64/libfreebl3.so.debug...done. done. Loaded symbols for /lib64/libfreebl3.so Reading symbols from /lib64/libgcc_s.so.1...Reading symbols from /usr/lib/debug/lib64/libgcc_s-4.4.4-20100630.so.1.debug...done. done. Loaded symbols for /lib64/libgcc_s.so.1 0x0000000000b2f655 in ull2dec (from=3, to=0x1b06d350) at decimal.c:998 998 if (unlikely(intg1 > to->len)) (gdb) bt #0 0x0000000000b2f655 in ull2dec (from=3, to=0x1b06d350) at decimal.c:998 #1 0x0000000000b2f79d in longlong2decimal (from=3, to=0x1b06d350) at decimal.c:1026 #2 0x000000000074c953 in int2my_decimal (mask=30, i=3, unsigned_flag=0 '\000', d=0x1b06d350) at /home/sbester/build/bzr/mysql-trunk/sql/my_decimal.h:374 #3 0x00000000007aeec8 in Item_func::val_decimal (this=0xf4c7830, decimal_value=0x1b06d350) at /home/sbester/build/bzr/mysql-trunk/sql/item_func.cc:528 #4 0x00000000007d874c in Item_func_format::val_str_ascii (this=0xf4c7c90, str=0x1b06d880) at /home/sbester/build/bzr/mysql-trunk/sql/item_strfunc.cc:2397 #5 0x00000000007d0840 in Item_str_ascii_func::val_str (this=0xf4c7c90, str=0x1b06d880) at /home/sbester/build/bzr/mysql-trunk/sql/item_strfunc.cc:77 #6 0x0000000000777230 in Item::send (this=0xf4c7c90, protocol=0xf4b08e8, buffer=0x1b06d880) at /home/sbester/build/bzr/mysql-trunk/sql/item.cc:5931 #7 0x000000000057d37b in Protocol::send_result_set_row (this=0xf4b08e8, row_items=0xf4b2828) at /home/sbester/build/bzr/mysql-trunk/sql/protocol.cc:848 #8 0x00000000005c75ae in select_send::send_data (this=0xf4c7fb0, items=...) at /home/sbester/build/bzr/mysql-trunk/sql/sql_class.cc:1866 #9 0x00000000006203c3 in JOIN::exec (this=0xf4c8030) at /home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc:2794 #10 0x0000000000622f10 in mysql_select (thd=0xf4b03c0, rref_pointer_array=0xf4b2930, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0xf4c7fb0, unit=0xf4b20d0, select_lex=0xf4b2718) at /home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc:3554 #11 0x0000000000619559 in handle_select (thd=0xf4b03c0, lex=0xf4b2020, result=0xf4c7fb0, setup_tables_done_option=0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc:323 #12 0x00000000005fbc9b in execute_sqlcom_select (thd=0xf4b03c0, all_tables=0x0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:4513 #13 0x00000000005f48fe in mysql_execute_command (thd=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:2096 #14 0x00000000005fddf7 in mysql_parse (thd=0xf4b03c0, rawbuf=0xf4c6eb0 "select format(year(str_to_date('',get_format(time,''))),1)", length=58, parser_state=0x1b06f610) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:5550 #15 0x00000000005f21be in dispatch_command (command=COM_QUERY, thd=0xf4b03c0, packet=0xf4b3881 "", packet_length=58) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:1078 #16 0x00000000005f14c6 in do_command (thd=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:815 #17 0x00000000006d131d in do_handle_one_connection (thd_arg=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_connect.cc:748 #18 0x00000000006d0eae in handle_one_connection (arg=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_connect.cc:684 #19 0x00000030e1807761 in start_thread (arg=0x1b070710) at pthread_create.c:301 #20 0x00000030e14e14ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 (gdb) p intg1 $1 = 1 (gdb) p to->len $2 = 9 (gdb) bt full #0 0x0000000000b2f655 in ull2dec (from=3, to=0x1b06d350) at decimal.c:998 intg1 = 1 error = 0 x = 3 buf = 0xb9df36 __PRETTY_FUNCTION__ = "ull2dec" #1 0x0000000000b2f79d in longlong2decimal (from=3, to=0x1b06d350) at decimal.c:1026 No locals. #2 0x000000000074c953 in int2my_decimal (mask=30, i=3, unsigned_flag=0 '\000', d=0x1b06d350) at /home/sbester/build/bzr/mysql-trunk/sql/my_decimal.h:374 No locals. #3 0x00000000007aeec8 in Item_func::val_decimal (this=0xf4c7830, decimal_value=0x1b06d350) at /home/sbester/build/bzr/mysql-trunk/sql/item_func.cc:528 __PRETTY_FUNCTION__ = "virtual my_decimal* Item_func::val_decimal(my_decimal*)" #4 0x00000000007d874c in Item_func_format::val_str_ascii (this=0xf4c7c90, str=0x1b06d880) at /home/sbester/build/bzr/mysql-trunk/sql/item_strfunc.cc:2397 dec_val = { = { intg = 4, frac = 0, len = 9, sign = 0 '\000', buf = 0x1b06d368 }, members of my_decimal: buffer = {[0] = 5725016, [1] = 0, [2] = 453432208, [3] = 0, [4] = 5, [5] = 0, [6] = 453432336, [7] = 0, [8] = 256575024} } rnd_dec = { = { intg = 256574400, frac = 0, len = 9, sign = 0 '\000', buf = 0x1b06d0b8 }, members of my_decimal: buffer = {[0] = 256667217, [1] = 0, [2] = 453431872, [3] = 0, [4] = 256668720, [5] = 0, [6] = 453431584, [7] = 0, [8] = 7765039} } res = 0xb9dd38 str_length = 0 __PRETTY_FUNCTION__ = "virtual String* Item_func_format::val_str_ascii(String*)" dec = 1 dec_length = 2 lc = 0x1324060 #5 0x00000000007d0840 in Item_str_ascii_func::val_str (this=0xf4c7c90, str=0x1b06d880) at /home/sbester/build/bzr/mysql-trunk/sql/item_strfunc.cc:77 res = 0xfd0f4c7c90 __PRETTY_FUNCTION__ = "virtual String* Item_str_ascii_func::val_str(String*)" errors = 0 res = 0x1b06d8c0 #6 0x0000000000777230 in Item::send (this=0xf4c7c90, protocol=0xf4b08e8, buffer=0x1b06d880) at /home/sbester/build/bzr/mysql-trunk/sql/item.cc:5931 res = 0x15701f50 result = false f_type = MYSQL_TYPE_VAR_STRING __PRETTY_FUNCTION__ = "virtual bool Item::send(Protocol*, String*)" #7 0x000000000057d37b in Protocol::send_result_set_row (this=0xf4b08e8, row_items=0xf4b2828) at /home/sbester/build/bzr/mysql-trunk/sql/protocol.cc:848 item = 0xf4c7c90 buffer = "\000\000\000\000\000\000\000\000A\350\220\000\000\000\000\000(O\273", '\000' "\200, \325\006\033\000\000\000\000\320xK\017\000\000\001\000\220\325\006\033\000\000\000\000\337\023\261\000\000\000\000\000P\037p\025\000\000\000\000P\037p\025\000\000\000\000\300\327\006\033\000\000\000\000_\a\261\000\000\000\000\000\020\330\006\033\000\000\000\000P\037p\025\204\064\000\000\340\327\006\033\000\000\000\000_\a\261\000\000\000\000\000\000\330\006\033\000\000\000\000_\a\261\000\301\017\000\000\264\267\274", '\000' , "EF\306\000\000\000\000\000\320xK\017\000\000\001\000\020\326\006\033\000\000\000\000\337\023\261\000\000\000\000\000P\037p\025\000\000\000\000P\037p\025\000\000\000\000@\330\006\033\000\000\000\000_\a\261\000\000\000\000\000\200\330\006\033\000\000\000\000_\a\261\000V\001\000\000p\330\006\033\000\000\000\000\000\000\000\000\261\000\000\000P\037p\025\000\000\000\000\320xK\017\000\000\001\000tA\273", '\000' , "xY\273\000\000\000\000\000\320xK\017\000\000\001\000\220\326\006\033\000\000\000\000\337\023\261\000\000\000\000\000P\037p\025\000\000\000\000P\037p\025\000\000\000\000\300\330\006\033\000\000\000\000_\a\261\000\000\000\000\000 \331\006\033\000\000\000\000_\a\261\000\231\a\000\000\202>\273", '\000' "\340, \326\006\033\000\000\000\000\320xK\017\000\000\001\000\360\326\006\033\000\000\000\000\337\023\261\000\000\000\000\000P\037p\025\000\000\000\000P\037p\025\000\000\000\000 \331\006\033\000\000\000\000_\a\261\000\000\000\000\000\200\331\006\033\000\000\000\000\031a\306\000\376\002\000\000P\207L\017\000\000\000\000A\350\220\000\000\000\000\000\020>\273\000\000\000\000\000A\350\220\000\000\000\000\000(O\273", '\000' , "`\327\006\033\000\000\000\000\320xK\017\000\000\001\000p\327\006\033\000\000\000\000\337\023\261\000\000\000\000\000P\037p\025\000\000\000\000P\037p\025\000\000\000\000\000>\273\000\000\000\000\000c\263\302\000\000\000\000\000c\263\302\000\000\000\000\000c\263\302\000\000\000\000\000P~L\017\000\000\000\000c\263\302\000\000\000\000\000r\000\000\000\000\000\000\000!\000\000\000\000\000\000\000\037\000\000\000\375", '\000' , "0\326\374\000\000\000\000\000\300\003K\017\000\000\000\000\260\tK\017\000\000\000\000\320\tK\017\000\000\000\000\006", '\000' , "@\330\006\033\000\000\000\000\301\005\261\000\000\000\000\000\001D\273\000\000\000\000\000\020>\273\000\000\000\000\000\b\000\000\200\000\000\000\000P\331\006\033\000\000\000\000p\324\006\033\000\000\000\000\376\002\000\000\376\002\000\000\212\211\272\000\000\000\000\000\000\000\000\000\000" str_buffer = { Ptr = 0x1b06d540 "", str_length = 766, Alloced_length = 766, alloced = false, str_charset = 0x1084880 } it = { = { list = 0xf4b2828, el = 0xf4c7de8, prev = 0x0, current = 0x0 }, } _db_stack_frame_ = { func = 0xba898a "select_send::send_data", file = 0xba8560 "/home/sbester/build/bzr/mysql-trunk/sql/sql_class.cc", level = 2147483657, prev = 0x1b06d8e0 } #8 0x00000000005c75ae in select_send::send_data (this=0xf4c7fb0, items=...) at /home/sbester/build/bzr/mysql-trunk/sql/sql_class.cc:1866 protocol = 0xf4b08e8 _db_stack_frame_ = { func = 0xbb4401 "JOIN::exec", file = 0xbb3e10 "/home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc", level = 2147483656, prev = 0x1b06d950 } #9 0x00000000006203c3 in JOIN::exec (this=0xf4c8030) at /home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc:2794 _db_stack_frame_ = { func = 0xbb45ee "mysql_select", file = 0xbb3e10 "/home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc", level = 2147483655, prev = 0x1b06da80 } __FUNCTION__ = "exec" tmp_error = 12273134 curr_join = 0xbb3e10 curr_fields_list = 0x1b06da80 __PRETTY_FUNCTION__ = "void JOIN::exec()" columns_list = 0xf4b2828 has_group_by = false curr_all_fields = 0x80000007 curr_tmp_table = 0x80040b00 #10 0x0000000000622f10 in mysql_select (thd=0xf4b03c0, rref_pointer_array=0xf4b2930, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0xf4c7fb0, unit=0xf4b20d0, select_lex=0xf4b2718) at /home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc:3554 err = false free_join = true join = 0xf4c8030 __FUNCTION__ = "mysql_select" _db_stack_frame_ = { func = 0xbb3e46 "handle_select", file = 0xbb3e10 "/home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc", level = 2147483654, prev = 0x1b06db50 } #11 0x0000000000619559 in handle_select (thd=0xf4b03c0, lex=0xf4b2020, result=0xf4c7fb0, setup_tables_done_option=0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_select.cc:323 unit = 0xf4b20d0 res = false select_lex = 0xf4c7fb0 _db_stack_frame_ = { func = 0xbaf105 "mysql_execute_command", file = 0xbaebe8 "/home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc", level = 2147483653, prev = 0x1b06ec00 } #12 0x00000000005fbc9b in execute_sqlcom_select (thd=0xf4b03c0, all_tables=0x0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:4513 lex = 0xf4b2020 result = 0xf4c7fb0 res = false #13 0x00000000005f48fe in mysql_execute_command (thd=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:2096 privileges_requested = 1 res = 0 lex = 0xf4b2020 _db_stack_frame_ = { func = 0xbafbbf "mysql_parse", file = 0xbaebe8 "/home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc", level = 2147483652, prev = 0x1b06eee0 } __FUNCTION__ = "mysql_execute_command" up_result = 0 __PRETTY_FUNCTION__ = "int mysql_execute_command(THD*)" select_lex = 0xf4b2718 first_table = 0x0 all_tables = 0x0 unit = 0xf4b20d0 have_table_map_for_update = false #14 0x00000000005fddf7 in mysql_parse (thd=0xf4b03c0, rawbuf=0xf4c6eb0 "select format(year(str_to_date('',get_format(time,''))),1)", length=58, parser_state=0x1b06f610) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:5550 found_semicolon = 0x0 lex = 0xf4b2020 err = false error = 0 _db_stack_frame_ = { func = 0xbaedb9 "dispatch_command", file = 0xbaebe8 "/home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc", level = 2147483651, prev = 0x1b06fb60 } __PRETTY_FUNCTION__ = "void mysql_parse(THD*, char*, uint, Parser_state*)" __FUNCTION__ = "mysql_parse" #15 0x00000000005f21be in dispatch_command (command=COM_QUERY, thd=0xf4b03c0, packet=0xf4b3881 "", packet_length=58) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:1078 packet_end = 0xf4c6eea "" parser_state = { m_lip = { m_thd = 0xf4b03c0, yylineno = 1, yytoklen = 1, yylval = 0x1b06d680, lookahead_token = -1, lookahead_yylval = 0x0, m_ptr = 0xf4c6eeb "", m_tok_start = 0xf4c6eeb "", m_tok_end = 0xf4c6eeb "", m_end_of_query = 0xf4c6eea "", m_tok_start_prev = 0xf4c6eea "", m_buf = 0xf4c6eb0 "select format(year(str_to_date('',get_format(time,''))),1)", m_buf_length = 58, m_echo = true, m_echo_saved = false, m_cpp_buf = 0xf4c6fa0 "select format(year(str_to_date('',get_format(time,''))),1)", m_cpp_ptr = 0xf4c6fda "", m_cpp_tok_start = 0xf4c6fda "", m_cpp_tok_start_prev = 0xf4c6fda "", m_cpp_tok_end = 0xf4c6fda "", m_body_utf8 = 0x0, m_body_utf8_ptr = 0xb9d409 "net_flush", m_cpp_utf8_processed_ptr = 0x0, next_state = MY_LEX_END, found_semicolon = 0x0, tok_bitmap = 39 '\'', ignore_space = false, stmt_prepare_mode = false, multi_statements = true, in_comment = NO_COMMENT, in_comment_saved = 11604959, m_cpp_text_start = 0xf4c6fd8 "1)", m_cpp_text_end = 0xf4c6fd9 ")", m_underscore_cs = 0x0 }, m_yacc = { yacc_yyss = 0x0, yacc_yyvs = 0x0, m_set_signal_info = { m_item = {[0] = 0x0 } }, m_lock_type = TL_READ_DEFAULT, m_mdl_type = MDL_SHARED_READ } } net = 0xf4b0630 __PRETTY_FUNCTION__ = "bool dispatch_command(enum_server_command, THD*, char*, uint)" __FUNCTION__ = "dispatch_command" error = false _db_stack_frame_ = { func = 0xbaecff "do_command", file = 0xbaebe8 "/home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc", level = 2147483650, prev = 0x1b06fcf0 } #16 0x00000000005f14c6 in do_command (thd=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_parse.cc:815 return_value = false packet = 0xf4b3880 "\001" packet_length = 59 net = 0xf4b0630 command = COM_QUERY __PRETTY_FUNCTION__ = "bool do_command(THD*)" _db_stack_frame_ = warning: can't find linker symbol for virtual table for `_db_stack_frame_' value { func = 0xcc2a0d "?func", file = 0xcc2a13 "?file", level = 2147483649, prev = 0x0 } #17 0x00000000006d131d in do_handle_one_connection (thd_arg=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_connect.cc:748 net = 0xf4b0630 rc = false thd = 0xf4b03c0 #18 0x00000000006d0eae in handle_one_connection (arg=0xf4b03c0) at /home/sbester/build/bzr/mysql-trunk/sql/sql_connect.cc:684 thd = 0xf4b03c0 #19 0x00000030e1807761 in start_thread (arg=0x1b070710) at pthread_create.c:301 __res = pd = 0x1b070710 now = unwind_buf = { cancel_jmp_buf = {[0] = { jmp_buf = {[0] = 453445392, [1] = 9060375312482899756, [2] = 20039712, [3] = 453446096, [4] = 0, [5] = 3, [6] = 9060359930015586092, [7] = 9069449579494315820}, mask_was_saved = 0 }}, priv = { pad = {[0] = 0x0, [1] = 0x0, [2] = 0x0, [3] = 0x0}, data = { prev = 0x0, cleanup = 0x0, canceltype = 0 } } } not_first_call = sp = freesize = #20 0x00000030e14e14ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 No locals. (gdb) [sbester@levovo mysql-5.6.1-m5-linux-x86_64]$ valgrind --version valgrind-3.5.0 [sbester@levovo mysql-5.6.1-m5-linux-x86_64]$ gcc --version gcc (GCC) 4.4.4 20100630 (Red Hat 4.4.4-10) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [sbester@levovo mysql-5.6.1-m5-linux-x86_64]$ uname -a Linux levovo 2.6.33.3-85.fc13.x86_64 #1 SMP Thu May 6 18:09:49 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux [sbester@levovo mysql-5.6.1-m5-linux-x86_64]$ rpm -qa|grep glibc glibc-debuginfo-2.12-3.x86_64 glibc-common-2.12-3.x86_64 glibc-2.12-3.x86_64 glibc-devel-2.12-3.x86_64 glibc-headers-2.12-3.x86_64 glibc-2.12-3.i686 [sbester@levovo mysql-5.6.1-m5-linux-x86_64]$ [sbester@levovo mysql-trunk]$ bzr log |head -n 10 ------------------------------------------------------------ revno: 3445 [merge] committer: Alexander Nozdrin branch nick: mysql-trunk timestamp: Thu 2010-12-23 00:28:42 +0300 message: Auto-merge from mysql-trunk-stage (mysql-trunk-bugfixing). ------------------------------------------------------------ revno: 3444 [merge] committer: Georgi Kodinov [sbester@levovo mysql-trunk]$ BUILT using: ./BUILD/compile-pentium-valgrind-max-no-ndb