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

6.8 Regresssion: QDirIterator::next segfaults

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.1, 6.9.0 FF
    • 6.8
    • Core: I/O
    • None
    • Linux/X11, macOS
    • c7691842f (dev), 55a8050d1 (6.8), 4fd7d31e0 (dev), 03ac8f834 (6.9), 107c490a6 (6.8)

      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.

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

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

              Created:
              Updated:
              Resolved: