[MDEV-4899] Valgrind warnings (Conditional jump or move depends on uninitialised value) on COLUMN_ADD with not matching types Created: 2013-08-14  Updated: 2023-09-10  Resolved: 2023-09-10

Status: Closed
Project: MariaDB Server
Component/s: Dynamic Columns
Affects Version/s: 10.0.4, 10.3
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Won't Fix Votes: 0
Labels: not-10.4+

Issue Links:
Relates
relates to MDEV-32140 Valgrind/MSAN warnings in dynamic_col... Closed

 Description   

SELECT COLUMN_ADD( COLUMN_CREATE( 1, 0 ), 1, 'invalid date' AS DATE, 2, 'another invalid date' AS DATE );

==32450== Conditional jump or move depends on uninitialised value(s)
==32450==    at 0xF2828E: dynamic_column_update_move_left (ma_dyncol.c:2905)
==32450==    by 0xF29622: dynamic_column_update_many_fmt (ma_dyncol.c:3552)
==32450==    by 0xF288D2: mariadb_dyncol_update_many (ma_dyncol.c:3257)
==32450==    by 0x8B50F1: Item_func_dyncol_add::val_str(String*) (item_strfunc.cc:4363)
==32450==    by 0x843DD0: Item::send(Protocol*, String*) (item.cc:6423)
==32450==    by 0x5941CD: Protocol::send_result_set_row(List<Item>*) (protocol.cc:900)
==32450==    by 0x5FBB23: select_send::send_data(List<Item>&) (sql_class.cc:2498)
==32450==    by 0x670AD3: JOIN::exec_inner() (sql_select.cc:2370)
==32450==    by 0x67058E: JOIN::exec() (sql_select.cc:2292)
==32450==    by 0x673B85: 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:3222)
==32450==    by 0x66A2E7: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:371)
==32450==    by 0x63E1E6: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5123)
==32450==    by 0x636680: mysql_execute_command(THD*) (sql_parse.cc:2518)
==32450==    by 0x640A6B: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6264)
==32450==    by 0x63389D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1277)
==32450==    by 0x632CD5: do_command(THD*) (sql_parse.cc:983)

bzr version-info

revision-id: svoj@mariadb.org-20130814085017-hgdzpt71613pyfkw
revno: 3794
branch-nick: 10.0

Built with BUILD/compile-pentium-valgrind-max-no-ndb



 Comments   
Comment by Elena Stepanova [ 2022-10-08 ]

Still reproducible on current 10.3, but not 10.4+.

Comment by Elena Stepanova [ 2023-09-10 ]

10.3 is EOL, and it's still not reproducible on 10.4+.
A similar issue applicable to 10.4+ is filed as MDEV-32140.

Generated at Thu Feb 08 07:00:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.