https://bugs.kde.org/show_bug.cgi?id=495261

--- Comment #8 from Matthew Woehlke <mwoehlke.fl...@gmail.com> ---
> Maybe a small program ...

Alas, I don't think it's going to be that simple. I tried this:

```
#include <QDirIterator>
#include <QFileInfo>

#include <QtConcurrent>

QDateTime getMTime(QString const& path)
{
    auto const fi = QFileInfo{path};
    return fi.lastModified();
}

int main(int argc, char** argv)
{
    auto files = QList<QString>{};
    auto iter = QDirIterator{argv[1], QDirIterator::Subdirectories};
    while (iter.hasNext())
        files.append(iter.next());

    auto future = QtConcurrent::mapped(files, getMTime);
    future.waitForFinished();
    qCritical() << future.resultCount();

    return 0;
}
```

Even passing it the path to CMake's sources (heck, even passing it `/usr`), it
completes without crashing. (If this doesn't meet the criteria "repeatedly runs
code like the following in *many* threads concurrently", you'll have to
elaborate. 🙂) Probably KDevelop is doing something "extra" needed to cause the
issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to