Skip to content

[Bug] uninitialized member vars #3821

@vagetablechicken

Description

@vagetablechicken

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:

  1. build ut with UBSAN, and run test
  2. 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:

  1. RowBlockInfo::null_supported
  2. BlockManagerOptions::enable_metric
  3. TabletColumn::all bool member vars

Additional context
We should be careful about uninitialized vars. May need more ut.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions