Skip to content

Errors detected by the clang undefined behaviour sanitizer #3338

Open

Description

@AtnNn

When running the unit tests with the clang undefined behaviour sanitizer:

 src/unittest/unittest_utils.cc:25:22: runtime error: left shift of 1369506269 by 11 places cannot be represented in type 'int'
 src/unittest/unittest_utils.cc:25:14: runtime error: signed integer overflow: 1504691464 + 2116567040 cannot be represented in type 'int'
 src/rdb_protocol/geo/s2/s2cellid.cc:389:37: runtime error: signed integer overflow: -2147483647 - 1073741824 cannot be represented in type 'int'
 src/rdb_protocol/geo/s2/s2cellid.cc:390:37: runtime error: signed integer overflow: -2147483647 - 1073741824 cannot be represented in type 'int'
 src/rdb_protocol/geo/s2/s2cellid.cc:390:27: runtime error: left shift of negative value -1
 src/rdb_protocol/geo/s2/s2cellid.cc:389:27: runtime error: left shift of negative value -1
 src/unittest/unittest_utils.cc:25:22: runtime error: left shift of 1297165380 by 11 places cannot be represented in type 'int'
 src/unittest/unittest_utils.cc:25:14: runtime error: signed integer overflow: 692889372 + 1698226176 cannot be represented in type 'int'
 src/perfmon/perfmon.cc:172:55: runtime error: division by zero

Activity

  1. added this to the 1.16 milestone on Nov 15, 2014
  2. modified the milestones: , 1.16 on Dec 8, 2014
  3. modified the milestones: , subsequent on Jan 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions