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

tst_QStingConverter::invalidConverter() triggers valgrind

    XMLWordPrintable

Details

    • Linux/X11
    • 9d5611dc9 (dev), ae44b283a (6.8), 49b83dc77 (6.7)

    Description

      Running tst_qstringconverter under Valgrind, I get

      ********* Start testing of tst_QStringConverter *********
      Config: Using QtTest library 6.9.0, Qt 6.9.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 11.2.1 20211211), ubuntu 20.04
      QINFO  : tst_QStringConverter::initTestCase() System locale is UTF-8
      PASS   : tst_QStringConverter::initTestCase()
      PASS   : tst_QStringConverter::threadSafety()
      PASS   : tst_QStringConverter::constructByName()
      ==3769588== Conditional jump or move depends on uninitialised value(s)
      ==3769588==    at 0x483FEDC: strcmp (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==3769588==    by 0x4C41EB6: qstrcmp(char const*, char const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x48975D8: QTest::compare_string_helper(char const*, char const*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x12B12A: QTest::qCompare(char*, char*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x10EE94: tst_QStringConverter::invalidConverter() (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x127071: tst_QStringConverter::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x4B336BD: QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x4B329E5: QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x489E66D: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<void>(QObject*, Qt::ConnectionType, QTemplatedMetaMethodReturnArgument<void>) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x489C11B: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x488DA44: QTest::invokeTestMethodIfValid(QMetaMethod, QObject*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x48902D3: QTest::TestMethods::invokeTestOnData(int) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588== 
      ==3769588== Conditional jump or move depends on uninitialised value(s)
      ==3769588==    at 0x483FEFB: strcmp (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==3769588==    by 0x4C41EB6: qstrcmp(char const*, char const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x48975D8: QTest::compare_string_helper(char const*, char const*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x12B12A: QTest::qCompare(char*, char*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x10EE94: tst_QStringConverter::invalidConverter() (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x127071: tst_QStringConverter::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x4B336BD: QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x4B329E5: QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x489E66D: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<void>(QObject*, Qt::ConnectionType, QTemplatedMetaMethodReturnArgument<void>) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x489C11B: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x488DA44: QTest::invokeTestMethodIfValid(QMetaMethod, QObject*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x48902D3: QTest::TestMethods::invokeTestOnData(int) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588== 
      ==3769588== Conditional jump or move depends on uninitialised value(s)
      ==3769588==    at 0x48B2DB9: QTestResult::reportResult(bool, void const*, void const*, char const* (*)(void const*), char const* (*)(void const*), char const*, char const*, QTest::ComparisonOperation, char const*, int, char const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x489662C: QTest::compare_helper(bool, char const*, void const*, void const*, char const* (*)(void const*), char const* (*)(void const*), char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x4897611: QTest::compare_string_helper(char const*, char const*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x12B12A: QTest::qCompare(char*, char*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x10EE94: tst_QStringConverter::invalidConverter() (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x127071: tst_QStringConverter::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x4B336BD: QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x4B329E5: QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x489E66D: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<void>(QObject*, Qt::ConnectionType, QTemplatedMetaMethodReturnArgument<void>) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x489C11B: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x488DA44: QTest::invokeTestMethodIfValid(QMetaMethod, QObject*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x48902D3: QTest::TestMethods::invokeTestOnData(int) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588== 
      ==3769588== Conditional jump or move depends on uninitialised value(s)
      ==3769588==    at 0x48B1EC6: checkStatement(bool, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x48B2E27: QTestResult::reportResult(bool, void const*, void const*, char const* (*)(void const*), char const* (*)(void const*), char const*, char const*, QTest::ComparisonOperation, char const*, int, char const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x489662C: QTest::compare_helper(bool, char const*, void const*, void const*, char const* (*)(void const*), char const* (*)(void const*), char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x4897611: QTest::compare_string_helper(char const*, char const*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x12B12A: QTest::qCompare(char*, char*, char const*, char const*, char const*, int) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x10EE94: tst_QStringConverter::invalidConverter() (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x127071: tst_QStringConverter::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/text/qstringconverter/tst_qstringconverter)
      ==3769588==    by 0x4B336BD: QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x4B329E5: QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Core.so.6.9.0)
      ==3769588==    by 0x489E66D: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<void>(QObject*, Qt::ConnectionType, QTemplatedMetaMethodReturnArgument<void>) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x489C11B: std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588==    by 0x488DA44: QTest::invokeTestMethodIfValid(QMetaMethod, QObject*) (in /home/marc/Qt/qtbase-submit-build/lib/libQt6Test.so.6.9.0)
      ==3769588== 
      PASS   : tst_QStringConverter::invalidConverter()
      

      Posting here to not forget about it.

      Attachments

        For Gerrit Dashboard: QTBUG-126107
        # Subject Branch Project Status CR V

        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:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change