#983025 libqt5widgets5: Segfault with QGLWidget class. Fixed Upstream

Package:
libqt5opengl5
Source:
qtbase-opensource-src
Description:
Qt 5 OpenGL module
Submitter:
Alejandro Lorenzo
Date:
2022-07-01 19:45:03 UTC
Severity:
important
Tags:
#983025#5
Date:
2021-02-18 10:59:56 UTC
From:
To:
Dear Maintainer,

Recently i found a bug in QGLWidget (one of the widgets included in
libqt5widgets5) that
creates a segfault. This bug was accepted as upstream bug 86582

(https://bugreports.qt.io/browse/QTBUG-86582)

It was confirmed and fixed by the Qt people, unfortunately, it has been
committed to the
5.15 LTS branch of their development which is no longer accessible to the
OpenSource licensees

QGLWidget has been a deprecated Widget for some time now, and many software
changed to
QOpenGLWidget alternative, which does not exhibit this problem, but other
pieces of the debian
system (e.g. libqtgstreamer; also deprecated but still in debian repos)  uses
it.

In the issue tracker of the Qt project the likely cause of the bug is
commented, but the actual
fix is not detailed (or i do not know how to access it)

Anyways, i want to put this here to kee everyone informed about this.

#983025#10
Date:
2021-03-20 18:12:32 UTC
From:
To:
¡Hola Alejandro!

Can you please tell if any applications in Debian repos are affected by this
bug? You mentioned libqtgstreamer but it's a library — do you know if there is
a concrete application that can be used to reproduce that crash?

It is unlikely that we will be able to fix it, provided that upstream patch
is not publicly available. So I am downgrading severity to make this bug not
block the release of Debian Bullseye. This bug does not satisfy the criteria
for critical anyway, because not the whole libqt5widgets5 library is broken,
but only a specific use-case of it (which is also a deprecated one). Also
I am removing the newcomer tag — newcomers won't have enough knowledge to be
able to fix it.

#983025#21
Date:
2021-03-21 16:05:53 UTC
From:
To:
El sábado, 20 de marzo de 2021 19:12:32 (CET) Dmitry Shachnev escribió:

If you want to reproduce the crash, you can use a very small concept
application i submitted to the original bug report upstream. It is a very
easily compiled application that will trigger the bug.

If the question is about any other software that might trigger this that is
already in the repos.... i don't know of any from the top of my mind.

You probably know better than me :D
Ok

#983025#26
Date:
2021-03-21 17:54:59 UTC
From:
To:
Control: reassign -1 libqt5opengl5 5.15.2+dfsg-4

No, I wanted not to reproduce the crash, but to assess the impact of this bug.
If it happens just with your own application, then you should really port it
away from QGLWidget. If it happened also with some package from Debian, we
would have to fix either that package or Qt.

By the way, QGLWidget is provided by Qt OpenGL module, not Qt Widgets, so I am
also reassigning this bug. (Qt Widgets module has QOpenGLWidget which is the
recommended replacement.)

#983025#39
Date:
2022-07-01 19:42:57 UTC
From:
To:
Hi!

The fix is now public:

https://code.qt.io/cgit/qt/qtbase.git/commit/?id=15b61e00c501f0e7

And it was included in 5.15.3, and now we have 5.15.4 in testing.

So I am closing this bug.