connector causes valgrind uninitialised value errors
Posted by: Jo Ember
Date: April 25, 2018 06:21AM

My program is linked with the connector library. When I run my application through valgrind it reports on uninitialised variables.
I recompiled the connector library with the flag -DWITH_VALGRIND=ON, but now the compilation fails with the message below:

/tmp/mysql-connector-c-6.1.10-src/mysys/my_alloc.c: In function ‘alloc_root’:
/tmp/mysql-connector-c-6.1.10-src/mysys/my_alloc.c:204:11: error: ‘MEM_ROOT {aka struct st_mem_root}’ has no member named ‘allocated_size’; did you mean ‘block_size’?
mem_root->allocated_size+= length;
mysys/CMakeFiles/mysys.dir/build.make:782: recipe for target 'mysys/CMakeFiles/mysys.dir/my_alloc.c.o' failed
make[2]: *** [mysys/CMakeFiles/mysys.dir/my_alloc.c.o] Error 1
CMakeFiles/Makefile2:729: recipe for target 'mysys/CMakeFiles/mysys.dir/all' failed
make[1]: *** [mysys/CMakeFiles/mysys.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Options: ReplyQuote

Written By
connector causes valgrind uninitialised value errors
April 25, 2018 06:21AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.