Segfault with Qt-5.11.0

Berthold Stoeger bstoeger at mail.tuwien.ac.at
Thu May 24 14:04:28 PDT 2018


On Donnerstag, 24. Mai 2018 22:46:30 CEST Gaetan Bisson wrote:
> [2018-05-23 07:20:43 -1000] Gaetan Bisson:
> > Oh, it's also there:
> > 	https://bugreports.qt.io/browse/QTBUG-67948
> 
> It turns out removing oldModel->deleteLater(); from DiveListView::reload()
> avoids the segfault. See the discussion in the above bug report. However I
> have no idea what the proper fix should be.

For one, we could delete it directly, c.f. attached patch. Probably it will 
still crash (no recent Qt to test, sorry), but at least we might get a useful 
back trace. deleteLater() is evil.

Berthold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cleanup-Don-t-defer-deletion-of-oldModel-in-DiveList.patch
Type: text/x-patch
Size: 1175 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20180524/4d8e9ab9/attachment.bin>


More information about the subsurface mailing list