Skip to content

Avoid mixing atomic futex changes and QAtomic

Either the mix of futex and atomic, or the mix of 32-bit futex and
64-bit atomic doesn't work. In any case, the existing code leads to
bad behavior.

* asturmlechner 2021-11-19:
  Also added the typo fix from 587e3bb0 since it conflicted.

Pick-to: 6.1 5.15
Fixes: QTBUG-92188
Change-Id: Icc6ba28d6e2465c373d00e84f4da2b92c037e797
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit 2d9cc639a4a7a5e97979a6034364bd67dfa10c23)

Fixes random krita crashes with stack smashing detected. Not runtime tested yet. See also downstream bug: https://bugs.gentoo.org/824286

Merge request reports