Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-40453

UBSAN: main.mysqltest_expression_evaluation

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.11
    • 10.11
    • Tests, MTR
    • None

    Description

      CURRENT_TEST: main.mysqltest_expression_evaluation
       
      /home/buildbot/src/client/mysqltest.cc:5613:21: runtime error: negation of -9223372036854775808 cannot be represented in type 'long long'; cast to an unsigned type to negate this value to itself
          #0 0x56315d342af8 in unary(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5613:21
          #1 0x56315d3418f7 in bitwise_xor(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5632:3
          #2 0x56315d340e96 in factor(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5653:3
          #3 0x56315d340798 in term(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5719:3
          #4 0x56315d3401be in bitwise_shift(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5754:3
          #5 0x56315d33fd33 in bitwise_and(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5787:3
          #6 0x56315d33f8b3 in bitwise_or(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5808:3
          #7 0x56315d33e634 in comparison(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5829:3
          #8 0x56315d33d969 in equality(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5886:3
          #9 0x56315d33d4e5 in logical_and(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5943:3
          #10 0x56315d2ee6d5 in logical_or(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5959:3
          #11 0x56315d2ee6d5 in expr(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:6012:3
          #12 0x56315d2edf19 in do_eval(st_dynamic_string*, char const*, char const*, char) /home/buildbot/src/client/mysqltest.cc:1521:9
          #13 0x56315d302d38 in do_echo(st_command*) /home/buildbot/src/client/mysqltest.cc:5187:3
          #14 0x56315d32ec4f in main /home/buildbot/src/client/mysqltest.cc:13224:20
          #15 0x7f8909456ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: c495b62edadd6c356265942ec1282d98058a7b41)
          #16 0x7f8909456d64 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId: c495b62edadd6c356265942ec1282d98058a7b41)
          #17 0x56315d1ff250 in _start (/home/buildbot/bld/client/mariadb-test+0x200250) (BuildId: c678911abc3c696e7ff9bb35d673c7cd5da4c2bf)
       
      SUMMARY: UndefinedBehaviorSanitizer: signed-integer-overflow /home/buildbot/src/client/mysqltest.cc:5613:21
      /home/buildbot/src/client/mysqltest.cc:5665:42: runtime error: signed integer overflow: -4611686018427387904 * -2 cannot be represented in type 'long long'
          #0 0x56315d3413f7 in factor(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5665:42
          #1 0x56315d340798 in term(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5719:3
          #2 0x56315d3401be in bitwise_shift(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5754:3
          #3 0x56315d33fd33 in bitwise_and(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5787:3
          #4 0x56315d33f8b3 in bitwise_or(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5808:3
          #5 0x56315d33e634 in comparison(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5829:3
          #6 0x56315d33d969 in equality(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5886:3
          #7 0x56315d33d4e5 in logical_and(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5943:3
          #8 0x56315d2ee6d5 in logical_or(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:5959:3
          #9 0x56315d2ee6d5 in expr(Expression_value*, char const**) /home/buildbot/src/client/mysqltest.cc:6012:3
          #10 0x56315d2edf19 in do_eval(st_dynamic_string*, char const*, char const*, char) /home/buildbot/src/client/mysqltest.cc:1521:9
          #11 0x56315d302d38 in do_echo(st_command*) /home/buildbot/src/client/mysqltest.cc:5187:3
          #12 0x56315d32ec4f in main /home/buildbot/src/client/mysqltest.cc:13224:20
          #13 0x7f8909456ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: c495b62edadd6c356265942ec1282d98058a7b41)
          #14 0x7f8909456d64 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId: c495b62edadd6c356265942ec1282d98058a7b41)
          #15 0x56315d1ff250 in _start (/home/buildbot/bld/client/mariadb-test+0x200250) (BuildId: c678911abc3c696e7ff9bb35d673c7cd5da4c2bf)
       
      SUMMARY: UndefinedBehaviorSanitizer: signed-integer-overflow /home/buildbot/src/client/mysqltest.cc:5665:42
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.