drop table if exists `t1`; create table `t1`(`a` decimal(22,1))engine=myisam; insert into `t1` values (0),(1); select round(`a`,`a`) from `t1`; select round(`a`,`a`) from `t1` group by 1; [sbester@levovo mysql-5.5.9-linux-x86_64]$ valgrind -v --leak-check=full --show-reachable=yes --db-attach=yes --track-origins=yes --tool=memcheck --num-callers=50 ./bin/mysqld --no-defaults --basedir=. --datadir=./data --skip-gr --skip-na --myisam-recover=force --open-files-limit=2000 --port=3306 --tmpdir=. --socket=sock --gdb ==10071== Memcheck, a memory error detector ==10071== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==10071== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==10071== Command: ./bin/mysqld --no-defaults --basedir=. --datadir=./data --skip-gr --skip-na --myisam-recover=force --open-files-limit=2000 --port=3306 --tmpdir=. --socket=sock --gdb ==10071== --10071-- Valgrind options: --10071-- -v --10071-- --leak-check=full --10071-- --show-reachable=yes --10071-- --db-attach=yes --10071-- --track-origins=yes --10071-- --tool=memcheck --10071-- --num-callers=50 --10071-- Contents of /proc/version: --10071-- 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 --10071-- Arch and hwcaps: AMD64, amd64-sse3-cx16 --10071-- Page sizes: currently 4096, max supported 4096 --10071-- Valgrind library directory: /usr/lib64/valgrind --10071-- Reading syms from /home/sbester/mysql/5.5/mysql-5.5.9-linux-x86_64/bin/mysqld (0x400000) --10071-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux (0x38000000) --10071-- object doesn't have a dynamic symbol table --10071-- Reading syms from /lib64/ld-2.12.so (0x30e1000000) --10071-- Reading debug info from /usr/lib/debug/lib64/ld-2.12.so.debug .. --10071-- Reading suppressions file: /usr/lib64/valgrind/default.supp --10071-- REDIR: 0x30e1017590 (strlen) redirected to 0x3803f6f7 (vgPlain_amd64_linux_REDIR_FOR_strlen) --10071-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so (0x4801000) --10071-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so (0x4a02000) ==10071== WARNING: new redirection conflicts with existing -- ignoring it --10071-- new: 0x30e1017590 (strlen ) R-> 0x04a06340 strlen --10071-- REDIR: 0x30e1017400 (index) redirected to 0x4a05f80 (index) --10071-- REDIR: 0x30e1017480 (strcmp) redirected to 0x4a06900 (strcmp) --10071-- Reading syms from /lib64/libpthread-2.12.so (0x30e1800000) --10071-- Reading debug info from /usr/lib/debug/lib64/libpthread-2.12.so.debug .. --10071-- Reading syms from /lib64/libz.so.1.2.3 (0x30e2400000) --10071-- Reading debug info from /usr/lib/debug/lib64/libz.so.1.2.3.debug .. --10071-- Reading syms from /lib64/libm-2.12.so (0x30e1c00000) --10071-- Reading debug info from /usr/lib/debug/lib64/libm-2.12.so.debug .. --10071-- Reading syms from /lib64/librt-2.12.so (0x30e2800000) --10071-- Reading debug info from /usr/lib/debug/lib64/librt-2.12.so.debug .. --10071-- Reading syms from /lib64/libcrypt-2.12.so (0x33b8200000) --10071-- Reading debug info from /usr/lib/debug/lib64/libcrypt-2.12.so.debug .. --10071-- Reading syms from /lib64/libdl-2.12.so (0x30e2000000) --10071-- Reading debug info from /usr/lib/debug/lib64/libdl-2.12.so.debug .. --10071-- Reading syms from /lib64/libc-2.12.so (0x30e1400000) --10071-- Reading debug info from /usr/lib/debug/lib64/libc-2.12.so.debug .. --10071-- Reading syms from /lib64/libfreebl3.so (0x33b8600000) --10071-- Reading debug info from /usr/lib/debug/lib64/libfreebl3.so.debug .. --10071-- REDIR: 0x30e1481ad0 (__GI_strrchr) redirected to 0x4a05e00 (__GI_strrchr) --10071-- REDIR: 0x30e147ffe0 (strlen) redirected to 0x480155c (_vgnU_ifunc_wrapper) ==10071== WARNING: new redirection conflicts with existing -- ignoring it --10071-- new: 0x30e1480010 (__GI_strlen ) R-> 0x04a062e0 strlen --10071-- REDIR: 0x30e1480010 (__GI_strlen) redirected to 0x4a06300 (__GI_strlen) --10071-- REDIR: 0x30e1482850 (memset) redirected to 0x4a07540 (memset) --10071-- REDIR: 0x30e1479610 (calloc) redirected to 0x4a043d3 (calloc) --10071-- REDIR: 0x30e147e5a0 (strcmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --10071-- REDIR: 0x30e1527820 (__strcmp_ssse3) redirected to 0x4a06860 (strcmp) --10071-- REDIR: 0x30e1480060 (strnlen) redirected to 0x4a06280 (strnlen) --10071-- REDIR: 0x30e1482690 (memmove) redirected to 0x4a075b0 (memmove) --10071-- REDIR: 0x30e1485260 (strchrnul) redirected to 0x4a07620 (strchrnul) --10071-- REDIR: 0x30e1483c60 (memcpy) redirected to 0x4a069d0 (memcpy) --10071-- REDIR: 0x30e14799d0 (malloc) redirected to 0x4a050db (malloc) --10071-- Reading syms from /lib64/libgcc_s-4.4.4-20100630.so.1 (0x30ec000000) --10071-- Reading debug info from /usr/lib/debug/lib64/libgcc_s-4.4.4-20100630.so.1.debug .. ==10071== WARNING: new redirection conflicts with existing -- ignoring it --10071-- new: 0x30e1480010 (__GI_strlen ) R-> 0x04a062e0 strlen --10071-- REDIR: 0x30e147a750 (free) redirected to 0x4a04ceb (free) --10071-- REDIR: 0x30e1480220 (__GI_strncmp) redirected to 0x4a06800 (__GI_strncmp) --10071-- REDIR: 0x30e147fa30 (strcpy) redirected to 0x480155c (_vgnU_ifunc_wrapper) --10071-- REDIR: 0x30e1524280 (???) redirected to 0x4a06360 (strcpy) --10071-- REDIR: 0x30e1482260 (bcmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --10071-- REDIR: 0x30e1482290 (__GI_memcmp) redirected to 0x4a07160 (bcmp) --10071-- REDIR: 0x30e147abd0 (realloc) redirected to 0x4a0518c (realloc) --10071-- REDIR: 0x30e147fa60 (__GI_strcpy) redirected to 0x4a06430 (__GI_strcpy) --10071-- REDIR: 0x30e147e5e0 (__GI_strcmp) redirected to 0x4a068b0 (__GI_strcmp) --10071-- REDIR: 0xffffffffff600400 (???) redirected to 0x3803f6ed (vgPlain_amd64_linux_REDIR_FOR_vtime) --10071-- REDIR: 0x30e1485210 (__GI___rawmemchr) redirected to 0x4a07670 (__GI___rawmemchr) --10071-- REDIR: 0x30e1481aa0 (rindex) redirected to 0x480155c (_vgnU_ifunc_wrapper) ==10071== WARNING: new redirection conflicts with existing -- ignoring it --10071-- new: 0x30e1481ad0 (__GI_strrchr ) R-> 0x04a05dd0 rindex --10071-- REDIR: 0x30e147e4f0 (index) redirected to 0x480155c (_vgnU_ifunc_wrapper) ==10071== WARNING: new redirection conflicts with existing -- ignoring it --10071-- new: 0x30e147e520 (__GI_strchr ) R-> 0x04a05e90 index --10071-- REDIR: 0x30e147e520 (__GI_strchr) redirected to 0x4a05ec0 (__GI_strchr) --10071-- REDIR: 0x30e1480140 (strncat) redirected to 0x4a06170 (strncat) --10071-- REDIR: 0x30e1483380 (mempcpy) redirected to 0x4a07690 (mempcpy) --10071-- REDIR: 0x30e14821e0 (memchr) redirected to 0x4a069a0 (memchr) --10071-- REDIR: 0x30e1483990 (stpcpy) redirected to 0x480155c (_vgnU_ifunc_wrapper) --10071-- REDIR: 0x30e1525c20 (???) redirected to 0x4a07200 (stpcpy) --10071-- REDIR: 0x30e14801e0 (strncmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --10071-- REDIR: 0x30e1528a80 (__strncmp_ssse3) redirected to 0x4a067a0 (strncmp) 101215 7:54:07 [Note] Plugin 'FEDERATED' is disabled. 101215 7:54:07 [ERROR] Invalid (old?) table or database name '-@' InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!! InnoDB: The InnoDB memory heap is disabled InnoDB: Mutexes and rw_locks use GCC atomic builtins InnoDB: Compressed tables use zlib 1.2.3 --10071-- REDIR: 0xffffffffff600000 (???) redirected to 0x3803f6e3 (vgPlain_amd64_linux_REDIR_FOR_vgettimeofday) 101215 7:54:08 InnoDB: Initializing buffer pool, size = 128.0M 101215 7:54:13 InnoDB: Completed initialization of buffer pool 101215 7:54:14 InnoDB: highest supported file format is Barracuda. 101215 7:54:32 InnoDB: 1.1.4 started; log sequence number 13307718 101215 7:54:37 [Note] ./bin/mysqld: ready for connections. Version: '5.5.9-valgrind-max-debug' socket: 'sock' port: 3306 Source distribution ==10071== Thread 17: ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0xABA6AB: decimal_actual_fraction (decimal.c:294) ==10071== by 0x8228BC: my_decimal2binary(unsigned int, my_decimal const*, unsigned char*, int, int) (my_decimal.cc:200) ==10071== by 0x72C334: Field_new_decimal::store_value(my_decimal const*) (field.cc:2633) ==10071== by 0x72CBAA: Field_new_decimal::store_decimal(my_decimal const*) (field.cc:2759) ==10071== by 0x769120: Item::save_in_field(Field*, bool) (item.cc:5428) ==10071== by 0x5FCF1F: Item_result_field::save_in_result_field(bool) (item.h:2420) ==10071== by 0x64342A: copy_funcs(Item**, THD const*) (sql_select.cc:15898) ==10071== by 0x63B82A: end_write(JOIN*, st_join_table*, bool) (sql_select.cc:12759) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638B8C: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11663) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x620030: JOIN::exec() (sql_select.cc:1970) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== ==10071== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- c ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0xABA716: decimal_actual_fraction (decimal.c:302) ==10071== by 0x8228BC: my_decimal2binary(unsigned int, my_decimal const*, unsigned char*, int, int) (my_decimal.cc:200) ==10071== by 0x72C334: Field_new_decimal::store_value(my_decimal const*) (field.cc:2633) ==10071== by 0x72CBAA: Field_new_decimal::store_decimal(my_decimal const*) (field.cc:2759) ==10071== by 0x769120: Item::save_in_field(Field*, bool) (item.cc:5428) ==10071== by 0x5FCF1F: Item_result_field::save_in_result_field(bool) (item.h:2420) ==10071== by 0x64342A: copy_funcs(Item**, THD const*) (sql_select.cc:15898) ==10071== by 0x63B82A: end_write(JOIN*, st_join_table*, bool) (sql_select.cc:12759) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638B8C: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11663) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x620030: JOIN::exec() (sql_select.cc:1970) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x917BC1: hp_mask (hp_hash.c:213) ==10071== by 0x91C64A: hp_write_key (hp_write.c:236) ==10071== by 0x91BF5D: heap_write (hp_write.c:51) ==10071== by 0x915470: ha_heap::write_row(unsigned char*) (ha_heap.cc:239) ==10071== by 0x7582DF: handler::ha_write_row(unsigned char*) (handler.cc:4757) ==10071== by 0x63B8C8: end_write(JOIN*, st_join_table*, bool) (sql_select.cc:12766) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638BBB: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11668) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x620030: JOIN::exec() (sql_select.cc:1970) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x91C663: hp_write_key (hp_write.c:250) ==10071== by 0x91BF5D: heap_write (hp_write.c:51) ==10071== by 0x915470: ha_heap::write_row(unsigned char*) (ha_heap.cc:239) ==10071== by 0x7582DF: handler::ha_write_row(unsigned char*) (handler.cc:4757) ==10071== by 0x63B8C8: end_write(JOIN*, st_join_table*, bool) (sql_select.cc:12766) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638BBB: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11668) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x620030: JOIN::exec() (sql_select.cc:1970) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x917BC1: hp_mask (hp_hash.c:213) ==10071== by 0x91C902: hp_write_key (hp_write.c:350) ==10071== by 0x91BF5D: heap_write (hp_write.c:51) ==10071== by 0x915470: ha_heap::write_row(unsigned char*) (ha_heap.cc:239) ==10071== by 0x7582DF: handler::ha_write_row(unsigned char*) (handler.cc:4757) ==10071== by 0x63B8C8: end_write(JOIN*, st_join_table*, bool) (sql_select.cc:12766) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638BBB: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11668) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x620030: JOIN::exec() (sql_select.cc:1970) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x91C925: hp_write_key (hp_write.c:353) ==10071== by 0x91BF5D: heap_write (hp_write.c:51) ==10071== by 0x915470: ha_heap::write_row(unsigned char*) (ha_heap.cc:239) ==10071== by 0x7582DF: handler::ha_write_row(unsigned char*) (handler.cc:4757) ==10071== by 0x63B8C8: end_write(JOIN*, st_join_table*, bool) (sql_select.cc:12766) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638BBB: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11668) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x620030: JOIN::exec() (sql_select.cc:1970) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x91C9B0: hp_write_key (hp_write.c:367) ==10071== by 0x91BF5D: heap_write (hp_write.c:51) ==10071== by 0x915470: ha_heap::write_row(unsigned char*) (ha_heap.cc:239) ==10071== by 0x7582DF: handler::ha_write_row(unsigned char*) (handler.cc:4757) ==10071== by 0x63B8C8: end_write(JOIN*, st_join_table*, bool) (sql_select.cc:12766) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638BBB: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11668) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x620030: JOIN::exec() (sql_select.cc:1970) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0xABD624: bin2decimal (decimal.c:1403) ==10071== by 0x7433E8: binary2my_decimal(unsigned int, unsigned char const*, my_decimal*, int, int) (my_decimal.h:263) ==10071== by 0x72CE47: Field_new_decimal::val_decimal(my_decimal*) (field.cc:2796) ==10071== by 0x72CF74: Field_new_decimal::val_str(String*, String*) (field.cc:2810) ==10071== by 0x56813E: Field::val_str(String*) (field.h:159) ==10071== by 0x5669A9: Protocol_text::store(Field*) (protocol.cc:1114) ==10071== by 0x76AAFC: Item_field::send(Protocol*, String*) (item.cc:5996) ==10071== by 0x565BEA: Protocol::send_result_set_row(List*) (protocol.cc:848) ==10071== by 0x5C123F: select_send::send_data(List&) (sql_class.cc:1828) ==10071== by 0x63AE4D: end_send(JOIN*, st_join_table*, bool) (sql_select.cc:12570) ==10071== by 0x638F05: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:11787) ==10071== by 0x638B8C: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:11663) ==10071== by 0x63874D: do_select(JOIN*, List*, TABLE*, Procedure*) (sql_select.cc:11428) ==10071== by 0x621920: JOIN::exec() (sql_select.cc:2361) ==10071== by 0x6220CF: 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:2570) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x917BC1: hp_mask (hp_hash.c:213) ==10071== by 0x91E8F8: check_one_key (_check.c:113) ==10071== by 0x91E69B: heap_check_heap (_check.c:56) ==10071== by 0x91D5A1: hp_close (hp_close.c:39) ==10071== by 0x91510B: ha_heap::close() (ha_heap.cc:150) ==10071== by 0x91602F: ha_heap::drop_table(char const*) (ha_heap.cc:610) ==10071== by 0x75577B: handler::ha_drop_table(char const*) (handler.cc:3413) ==10071== by 0x637868: free_tmp_table(THD*, TABLE*) (sql_select.cc:11129) ==10071== by 0x621C2A: JOIN::destroy() (sql_select.cc:2422) ==10071== by 0x687A9B: st_select_lex::cleanup() (sql_union.cc:801) ==10071== by 0x62215D: 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:2582) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x91E8FD: check_one_key (_check.c:113) ==10071== by 0x91E69B: heap_check_heap (_check.c:56) ==10071== by 0x91D5A1: hp_close (hp_close.c:39) ==10071== by 0x91510B: ha_heap::close() (ha_heap.cc:150) ==10071== by 0x91602F: ha_heap::drop_table(char const*) (ha_heap.cc:610) ==10071== by 0x75577B: handler::ha_drop_table(char const*) (handler.cc:3413) ==10071== by 0x637868: free_tmp_table(THD*, TABLE*) (sql_select.cc:11129) ==10071== by 0x621C2A: JOIN::destroy() (sql_select.cc:2422) ==10071== by 0x687A9B: st_select_lex::cleanup() (sql_union.cc:801) ==10071== by 0x62215D: 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:2582) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x917BC1: hp_mask (hp_hash.c:213) ==10071== by 0x91E94D: check_one_key (_check.c:122) ==10071== by 0x91E69B: heap_check_heap (_check.c:56) ==10071== by 0x91D5A1: hp_close (hp_close.c:39) ==10071== by 0x91510B: ha_heap::close() (ha_heap.cc:150) ==10071== by 0x91602F: ha_heap::drop_table(char const*) (ha_heap.cc:610) ==10071== by 0x75577B: handler::ha_drop_table(char const*) (handler.cc:3413) ==10071== by 0x637868: free_tmp_table(THD*, TABLE*) (sql_select.cc:11129) ==10071== by 0x621C2A: JOIN::destroy() (sql_select.cc:2422) ==10071== by 0x687A9B: st_select_lex::cleanup() (sql_union.cc:801) ==10071== by 0x62215D: 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:2582) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Conditional jump or move depends on uninitialised value(s) ==10071== at 0x91E95A: check_one_key (_check.c:122) ==10071== by 0x91E69B: heap_check_heap (_check.c:56) ==10071== by 0x91D5A1: hp_close (hp_close.c:39) ==10071== by 0x91510B: ha_heap::close() (ha_heap.cc:150) ==10071== by 0x91602F: ha_heap::drop_table(char const*) (ha_heap.cc:610) ==10071== by 0x75577B: handler::ha_drop_table(char const*) (handler.cc:3413) ==10071== by 0x637868: free_tmp_table(THD*, TABLE*) (sql_select.cc:11129) ==10071== by 0x621C2A: JOIN::destroy() (sql_select.cc:2422) ==10071== by 0x687A9B: st_select_lex::cleanup() (sql_union.cc:801) ==10071== by 0x62215D: 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:2582) ==10071== by 0x61A27B: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:297) ==10071== by 0x5F6ECC: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4452) ==10071== by 0x5EFAC1: mysql_execute_command(THD*) (sql_parse.cc:2046) ==10071== by 0x5F905A: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5496) ==10071== by 0x5ED429: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1032) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== ==10071== Syscall param write(buf) points to uninitialised byte(s) ==10071== at 0x30E180E42D: ??? (syscall-template.S:82) ==10071== by 0xACAD15: vio_write (viosocket.c:115) ==10071== by 0x55E693: net_real_write (net_serv.cc:642) ==10071== by 0x55DD92: net_flush (net_serv.cc:348) ==10071== by 0x564774: net_send_eof(THD*, unsigned int, unsigned int) (protocol.cc:297) ==10071== by 0x564E8D: Protocol::send_eof(unsigned int, unsigned int) (protocol.cc:562) ==10071== by 0x564CB3: Protocol::end_statement() (protocol.cc:509) ==10071== by 0x5EE649: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1392) ==10071== by 0x5ECA45: do_command(THD*) (sql_parse.cc:772) ==10071== by 0x6C9189: do_handle_one_connection(THD*) (sql_connect.cc:745) ==10071== by 0x6C8FC3: handle_one_connection (sql_connect.cc:684) ==10071== by 0x30E1807760: start_thread (pthread_create.c:301) ==10071== by 0x1AA6F70F: ??? ==10071== Address 0x15b9d7ad is 61 bytes inside a block of size 16,391 alloc'd ==10071== at 0x4A0515D: malloc (vg_replace_malloc.c:195) ==10071== by 0xA89031: my_malloc (my_malloc.c:38) ==10071== by 0x55D7AA: my_net_init (net_serv.cc:116) ==10071== by 0x5584AF: handle_connections_sockets() (mysqld.cc:5249) ==10071== by 0x557621: mysqld_main(int, char**) (mysqld.cc:4565) ==10071== by 0x54FE33: main (main.cc:24) ==10071== Uninitialised value was created by a stack allocation ==10071== at 0x768D2F: Item::save_in_field(Field*, bool) (item.cc:5383) ==10071== Source from bk-internal: [sbester@levovo mysql-5.5-security]$ bzr revno 3127 Built using: ./BUILD/compile-pentium-valgrind-max-no-ndb [sbester@levovo mysql-5.5.9-linux-x86_64]$ valgrind --version valgrind-3.5.0 [sbester@levovo mysql-5.5.9-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.5.9-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.5.9-linux-x86_64]$