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

VxWorks seems to have a problem with std::optional

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.9.0
    • 6.10
    • Core: Other
    • None

      When trying to use std::optional instead of QScopedPointer with a QSignalSpy payload, the VxWorks platform segfaulted:

         QWARN  : tst_QAbstractAnimation::stateBinding() Trying to construct an instance of an invalid type, type id: -2125884168
         QWARN  : tst_QAbstractAnimation::stateBinding() Trying to construct an instance of an invalid type, type id: -2125884172
         QWARN  : tst_QAbstractAnimation::stateBinding() Trying to construct an instance of an invalid type, type id: -2125884024
         Received signal 11 (SIGSEGV), code 2, for address 0x0000000d
      

      (cf. integrations and prechecks of PS1..2 of https://codereview.qt-project.org/c/qt/qtbase/+/612065)

      std::optional is used in many Qt APIs already. If VxWorks has a problem in its implementation, we need to

      • get it fixed upstream
      • or, failing that, create rules for safe std::optional use

      Once we understand the issue, we should follow-up on https://codereview.qt-project.org/c/qt/qtbase/+/612065 to get rid of the Q_OS_VXWORKS.

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

            jarlamsa Jarno Lämsä
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes