[mythtv] [mythtv-commits] Ticket #12917: mythfrontend.real crashes since Ubuntu 16.10 upgrade

Peter Bennett pgbennett at comcast.net
Wed Nov 16 00:41:18 UTC 2016


On 11/15/2016 11:25 AM, Roger Siddons wrote:
> Looks like it's related to
> https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1630941
>
> and
> https://codereview.qt-project.org/#/c/172173/
>
> The stack trace goes through ~QScopedPointer (it will destroy itself)
> so I don't see why MythNetworkAccessManager needs to delete it anyway.
>
My stack trace did not include QScopedPointer.

MythNetworkAccessManager does not delete the QNetworkConfiguration
object. That object is deleted internally when the QNetworkAccessManager
object is deleted.

> It may still segfault if we take the delete out, but that's a Qt issue
> that's fixed in 5.7. I saw a discussion about backporting it to 5.6.x
> but I didn't read far. And I think Ubuntu may have patched it already.
>
I could take out the delete of QNetworkAccessManager and that "fixes" it
but that is sloppy programming to exit without cleaning up your objects.






More information about the mythtv-dev mailing list