vagetablechicken opened a new issue #3821:
URL: https://github.com/apache/incubator-doris/issues/3821


   **Describe the bug**
   There are some ctors which have uninitialized member vars.
   And we do miss set value to them.
   e.g. https://github.com/apache/incubator-doris/pull/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
   1. 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
   1. BlockManagerOptions::enable_metric
   1. TabletColumn::is_key, is_nullable. 
   
   - [ ] Many tablet_schema.h:29, need test and verify.
   
   **Additional context**
   We should be careful about uninitialized vars. May need more ut.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to