Bug #88131 Conditional jump or move depends on uninitialised value inflate (inflate.c:611)
Submitted: 18 Oct 2017 3:50 Modified: 29 Dec 2017 20:24
Reporter: yghmgl yang Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.6.37 OS:CentOS
Assigned to: CPU Architecture:Any
Tags: debug valgrind-build

[18 Oct 2017 3:50] yghmgl yang
Description:
==104794== Thread 27:
==104794== Conditional jump or move depends on uninitialised value(s)
==104794==    at 0xE8E7CD: inflate (inflate.c:611)             
==104794==    by 0xE95440: uncompress (uncompr.c:50)
==104794==    by 0x6EB6E6: Item_func_uncompress::val_str(String*) (item_strfunc.cc:4523)
==104794==    by 0x66E3E0: Item::send(Protocol*, String*) (item.cc:6899)
==104794==    by 0x72F963: Protocol::send_result_set_row(List<Item>*) (protocol.cc:844)
==104794==    by 0x7A13AC: select_send::send_data(List<Item>&) (sql_class.cc:2526)
==104794==    by 0x7B8539: JOIN::exec() (sql_executor.cc:151)
==104794==    by 0x81BC5E: mysql_execute_select(THD*, st_select_lex*, bool) (sql_select.cc:1101)
==104794==    by 0x81BF50: mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, SQL_I_List<st_order>*, SQL_I_List<st_order>*, Item*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:1222)
==104794==    by 0x81A049: handle_select(THD*, select_result*, unsigned long) (sql_select.cc:110)
==104794==    by 0x7F277F: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5237)
==104794==    by 0x7EB005: mysql_execute_command(THD*) (sql_parse.cc:2695)
==104794==    by 0x7F528B: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6489)
==104794==    by 0x7E8005: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1377)
==104794==    by 0x7E7037: do_command(THD*) (sql_parse.cc:1040)
==104794==    by 0x20973B67: threadpool_process_request(THD*) (threadpool_common.cc:321)
==104794==    by 0x20976A37: handle_event(connection_t*) (threadpool_unix.cc:1611)
==104794==    by 0x20976C94: worker_main(void*) (threadpool_unix.cc:1664)
==104794==    by 0xB99FDC: pfs_spawn_thread (pfs.cc:1860)
==104794==    by 0x5043DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==104794==    by 0x61AC21C: clone (in /usr/lib64/libc-2.17.so)
==104794==  Uninitialised value was created by a stack allocation
==104794==    at 0x72F8AD: Protocol::send_result_set_row(List<Item>*) (protocol.cc:835)

How to repeat:
pquery is random execute sql statement, so it hard to find which statement cause this issue,but it happened every day in my daily test.

Suggested fix:
Perhaps a class member is not initialized at the time of instantiation
[29 Dec 2017 20:24] MySQL Verification Team
please take a look at:
https://bugs.mysql.com/bug.php?id=69202

if you find it repeatable on 5.7, reopen this bug.