Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126691

tst_QHashFunctions::qhash_of_zero_floating_points(non-zero-seed-32bit) fails on GCC14 asan builds

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When building Qt with -sanitize address, two of the qhashfunctions tests fail:

      1: FAIL!  : tst_QHashFunctions::qhash_of_zero_floating_points(non-zero-seed-32bit) Compared values are not the same
      1:    Actual   (qHash(-0.0L, seed)): 3099305450773626249
      1:    Expected (qHash(0.0L, seed)) : 3176497586058576151
      1:    Loc: [/home/marc/Qt/qtbase-submit/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp(453)]
      1: FAIL!  : tst_QHashFunctions::qhash_of_zero_floating_points(non-zero-seed-32bit-negated) Compared values are not the same
      1:    Actual   (qHash(-0.0L, seed)): 17072104050750418733
      1:    Expected (qHash(0.0L, seed)) : 4930474092949136662
      1:    Loc: [/home/marc/Qt/qtbase-submit/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp(453)]
      

      GCC 13 with asan works, as does GCC 14 w/o asan. I'm compiling in debug mode:

      $ cat config.opt
      -ccache
      -no-pch
      -opensource
      -confirm-license
      -debug
      -force-debug-info
      -separate-debug-info
      -developer-build
      -headersclean
      -c++std
      c++2a
      -no-warnings-are-errors
      -openssl-linked
      -feature-openssl-hash
      -sanitize
      address
      --
      -DOPENSSL_ROOT_DIR=/d/openssl/32-dev
      -DQT_NO_PACKAGE_VERSION_CHECK=TRUE
      $ g++ -v
      Using built-in specs.
      COLLECT_GCC=g++
      COLLECT_LTO_WRAPPER=/d/gcc/14/libexec/gcc/x86_64-pc-linux-gnu/14.1.1/lto-wrapper
      Target: x86_64-pc-linux-gnu
      Configured with: ../gcc/configure --prefix=/d/gcc/14 --enable-checking=release --disable-multilib --program-suffix=-14 --enable-languages=c,c++,fortran,lto,objc,obj-c++
      Thread model: posix
      Supported LTO compression algorithms: zlib zstd
      gcc version 14.1.1 20240610 (GCC) 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes