[MDEV-14269] errors.test fails with valgrind (Conditional jump or move depends on uninitialised value) Created: 2017-11-03  Updated: 2017-11-03  Resolved: 2017-11-03

Status: Closed
Project: MariaDB Server
Component/s: XML Functions
Affects Version/s: 10.3
Fix Version/s: 10.3.3

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None


 Description   

mtr --valgrind errors returns the following output in 10.3 and bb-10.2-ext:

main.errors                              [ fail ]  Found warnings/errors in server log file!
        Test ended at 2017-11-03 08:39:35
line
==20701== Thread 6:
==20701== Conditional jump or move depends on uninitialised value(s)
==20701==    at 0xA4B807: Item_int::Item_int(THD*, char const*, unsigned int) (item.cc:3350)
==20701==    by 0xC0227B: my_xpath_parse_Number(my_xpath_st*) (item_xmlfunc.cc:2502)
==20701==    by 0xC01128: my_xpath_parse_PrimaryExpr(my_xpath_st*) (item_xmlfunc.cc:1974)
==20701==    by 0xC01679: my_xpath_parse_FilterExpr(my_xpath_st*) (item_xmlfunc.cc:2144)
==20701==    by 0xC01494: my_xpath_parse_FilterExpr_opt_slashes_RelativeLocationPath(my_xpath_st*) (item_xmlfunc.cc:2085)
==20701==    by 0xC0164C: my_xpath_parse_PathExpr(my_xpath_st*) (item_xmlfunc.cc:2121)
==20701==    by 0xC01310: my_xpath_parse_UnionExpr(my_xpath_st*) (item_xmlfunc.cc:2043)
==20701==    by 0xC02129: my_xpath_parse_UnaryExpr(my_xpath_st*) (item_xmlfunc.cc:2458)
==20701==    by 0xC01F08: my_xpath_parse_MultiplicativeExpr(my_xpath_st*) (item_xmlfunc.cc:2414)
==20701==    by 0xC01D25: my_xpath_parse_AdditiveExpr(my_xpath_st*) (item_xmlfunc.cc:2362)
==20701==    by 0xC01BCD: my_xpath_parse_RelationalExpr(my_xpath_st*) (item_xmlfunc.cc:2320)
==20701==    by 0xC01A1A: my_xpath_parse_EqualityExpr(my_xpath_st*) (item_xmlfunc.cc:2259)
==20701==    by 0xC017D2: my_xpath_parse_AndExpr(my_xpath_st*) (item_xmlfunc.cc:2193)
==20701==    by 0xC01698: my_xpath_parse_OrExpr(my_xpath_st*) (item_xmlfunc.cc:2161)
==20701==    by 0xC029D2: my_xpath_parse(my_xpath_st*, char const*, char const*) (item_xmlfunc.cc:2707)
==20701==    by 0xC02CD3: Item_xml_str_func::fix_fields(THD*, Item**) (item_xmlfunc.cc:2758)
^ Found warnings in /home/bar/maria-git/server.10.3/mysql-test/var/log/mysqld.1.err
ok
 
 - saving '/home/bar/maria-git/server.10.3/mysql-test/var/log/main.errors/' to '/home/bar/maria-git/server.10.3/mysql-test/var/log/main.errors/'
valgrind_report                          [ pass ]       
--------------------------------------------------------------------------



 Comments   
Comment by Alexander Barkov [ 2017-11-03 ]

A similar error is repeatable with Item_float with this query:

SET NAMES utf8;
--error ER_DATA_OUT_OF_RANGE
SELECT UPDATEXML(-73 * -2465717823867977728,@@global.long_query_time,null);

Comment by Alexander Barkov [ 2017-11-03 ]

Pushed to bb-10.2-ext

Generated at Thu Feb 08 08:12:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.