Describe the bug
There are some ctors which have uninitialized member vars.
And we do miss set value to them.
e.g. #3750
Because UTs link to the static libs of src, so gcc warning -Wuninitialized can't help us. But UBSAN can.
To Reproduce
Steps to reproduce the behavior:
- build ut with UBSAN, and run test
- we may find
runtime error: load of value XX, which is not a valid value for type 'YYY'. It's usually because we use the uninitialized vars.
Expected behavior
No the load of value error log.
I'll fix:
- RowBlockInfo::null_supported
- BlockManagerOptions::enable_metric
- TabletColumn::all bool member vars
Additional context
We should be careful about uninitialized vars. May need more ut.
Describe the bug
There are some ctors which have uninitialized member vars.
And we do miss set value to them.
e.g. #3750
Because UTs link to the static libs of src, so gcc warning
-Wuninitializedcan't help us. But UBSAN can.To Reproduce
Steps to reproduce the behavior:
runtime error: load of value XX, which is not a valid value for type 'YYY'. It's usually because we use the uninitialized vars.Expected behavior
No the
load of valueerror log.I'll fix:
Additional context
We should be careful about uninitialized vars. May need more ut.