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

CXXFLAGS='-D_GLIBCXX_DEBUG' build crashes (e.g. in sharedmemory example)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.4, 6.6.1, 6.7.0 FF
    • dev
    • Core: I/O
    • None
    • Debian testing, qtbase self-compiled from git dev as of commit 68369237bfefc81410a0d8d7389ed5e0fba0b421
    • Linux/X11
    • 5db48d584 (dev), 37750aa8d (6.6), 35d9394ad (tqtc/lts-6.5)

    Description

      Steps to reproduce:

      1) configure Qt build with CXXFLAGS='-D_GLIBCXX_DEBUG' and build it

      2) run the sharedmemory example (qtbase/examples/corelib/ipc/sharedmemory/sharedmemory)

      3) Click on the "Load Image from File..." button

      Result:

      Crash. This is shown on stderr:

      usr/include/c++/13/debug/safe_iterator.h:492:
      In function:
          bool gnu_debug::operator!=(const 
          _Safe_iterator<std::_Rb_tree_const_iterator<std::pair<const 
          QSettingsKey, QVariant> >, std::debug::map<QSettingsKey, QVariant, 
          std::less<QSettingsKey>, std::allocator<std::pair<const QSettingsKey, 
          QVariant> > >, std::forward_iterator_tag>::_Self&, const 
          _Safe_iterator<std::_Rb_tree_const_iterator<std::pair<const 
          QSettingsKey, QVariant> >, std::debug::map<QSettingsKey, QVariant, 
          std::less<QSettingsKey>, std::allocator<std::pair<const QSettingsKey, 
          QVariant> > >, std::forward_iterator_tag>::_Self&)Error: attempt to compare a singular iterator to a 
      singular (value-initialized) iterator.Objects involved in the operation:
          iterator "lhs" @ 0x7ffe8e811550 {
            type = std::_Rb_tree_const_iterator<std::pair<QSettingsKey const, QVariant> > (constant iterator);
            state = singular;
          }
          iterator "rhs" @ 0x7ffe8e811670 {
            type = std::_Rb_tree_const_iterator<std::pair<QSettingsKey const, QVariant> > (constant iterator);
            state = singular (value-initialized);
          }
      Aborted (core dumped)
       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            michaelweghorn Michael Weghorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes