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

6.8 Regresssion: QDirIterator::next segfaults

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.1, 6.9.0 FF
    • 6.8
    • Core: I/O
    • None
    • Linux/X11, macOS
    • c7691842f (dev), 55a8050d1 (6.8)

    Description

      This is a regression.

       while (!dir_iterator.next().isEmpty())
      

      segfaults with 6.8 but not with 6.5 on macOS.

      Qt docs on `next()`

      If hasNext() returns false, this function does nothing, and returns an empty QString.

      This

            while (fIt.hasNext())
              {
                  DEBG << fIt.next();
      

      works on 6.8 and 6.5.

      The source seems to be QDirListing. See here for some backtraces and some more info.

      Attachments

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

        Activity

          People

            ahmad.samir Ahmad Samir
            manuelschneid3r Manuel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes