[MDEV-20378] Galera uses uninitialized memory Created: 2019-08-19  Updated: 2019-08-20  Resolved: 2019-08-20

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.5
Fix Version/s: 10.4.8

Type: Bug Priority: Major
Reporter: Michael Widenius Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

BUILD/compile-pentium64-valgrind-max


Issue Links:
PartOf
is part of MDEV-20310 valgrind bugs found in 10.5 Open

 Description   

mtr --valgrind wsrep_info.plugin

==6651== Thread 8:
==6651== Invalid read of size 4
==6651== at 0xE69820: Wsrep_thd_args::thread_type() (wsrep_mysqld.h:426)
==6651== by 0xE68AA0: start_wsrep_THD(void*) (wsrep_mysqld.cc:2709)
==6651== by 0xE41174: pfs_spawn_thread (pfs.cc:1862)
==6651== by 0x4E42568: start_thread (in /lib64/libpthread-2.26.so)
==6651== by 0x6ECBA2E: clone (in /lib64/libc-2.26.so)
==6651== Address 0xe5baae0 is 16 bytes inside a block of size 24 free'd
==6651== at 0x4C2F938: operator delete(void*) (vg_replace_malloc.c:586)
==6651== by 0xE68A1F: start_wsrep_THD(void*) (wsrep_mysqld.cc:2703)
==6651== by 0xE41174: pfs_spawn_thread (pfs.cc:1862)
==6651== by 0x4E42568: start_thread (in /lib64/libpthread-2.26.so)
==6651== by 0x6ECBA2E: clone (in /lib64/libc-2.26.so)
==6651== Block was alloc'd at
==6651== at 0x4C2E91A: operator new(unsigned long) (vg_replace_malloc.c:344)
==6651== by 0xE782AF: wsrep_create_appliers(long) (wsrep_thd.cc:142)
==6651== by 0xE613BE: wsrep_init_startup(bool) (wsrep_mysqld.cc:829)
==6651== by 0x75F2E8: init_server_components() (mysqld.cc:4975)
==6651== by 0x760713: mysqld_main(int, char**) (mysqld.cc:5567)
==6651== by 0x755216: main (main.cc:25)
==6842== Thread 8:
==6842== Invalid read of size 4
==6842== at 0xE69820: Wsrep_thd_args::thread_type() (wsrep_mysqld.h:426)
==6842== by 0xE68AA0: start_wsrep_THD(void*) (wsrep_mysqld.cc:2709)
==6842== by 0xE41174: pfs_spawn_thread (pfs.cc:1862)
==6842== by 0x4E42568: start_thread (in /lib64/libpthread-2.26.so)
==6842== by 0x6ECBA2E: clone (in /lib64/libc-2.26.so)
==6842== Address 0xea9e820 is 16 bytes inside a block of size 24 free'd
==6842== at 0x4C2F938: operator delete(void*) (vg_replace_malloc.c:586)
==6842== by 0xE68A1F: start_wsrep_THD(void*) (wsrep_mysqld.cc:2703)
==6842== by 0xE41174: pfs_spawn_thread (pfs.cc:1862)
==6842== by 0x4E42568: start_thread (in /lib64/libpthread-2.26.so)
==6842== by 0x6ECBA2E: clone (in /lib64/libc-2.26.so)
==6842== Block was alloc'd at
==6842== at 0x4C2E91A: operator new(unsigned long) (vg_replace_malloc.c:344)
==6842== by 0xE782AF: wsrep_create_appliers(long) (wsrep_thd.cc:142)
==6842== by 0xE613BE: wsrep_init_startup(bool) (wsrep_mysqld.cc:829)
==6842== by 0x75F2E8: init_server_components() (mysqld.cc:4975)
==6842== by 0x760713: mysqld_main(int, char**) (mysqld.cc:5567)
==6842== by 0x755216: main (main.cc:25)


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