Date: Mon, 03 Oct 2016 14:47:42 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 213173] graphics/geos: Fix geos::geom::CoordinateArraySequenceFactory assertion Message-ID: <bug-213173-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213173 Bug ID: 213173 Summary: graphics/geos: Fix geos::geom::CoordinateArraySequenceFactory assertion Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: rhurlin@gwdg.de Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Created attachment 175389 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D175389&action= =3Dedit patch to add test env and circumvent dynamic-cast problems Ports like databases/postgisXX, graphics/qgis and others depend on graphics/geos. At least with QGIS and PostGIS there are problems in some functionality, based on graphics/geos. Especially PostGIS 2.1 and 2.2 show crashes with small datasets on FreeBSD 10.x, 11.x and HEAD [1]. The problem= is also observed on OSX>=3D10.6 [2]. After adding some lines to the ports Makefile to get 'make check' functional[3], and running the tests for graphics/geos, an assertion can be observed, as described in tests/unit/test-suite.log: ---> group: geos::geom::CoordinateArraySequenceFactory, test: test<1> problem: assertion failed tests summary: failures:1 ok:1037 FAIL geos_unit (exit status: 1) It turns out, that there is a dynamic-cast problem with newer base compiler suites, which can be circumvented[2]. The solution for FreeBSD is exactly t= he same as described for Mac OSX. After a rebuild of graphics/geos with 'CXXFLAGS=3D-Wnon-virtual-dtor -Woverloaded-virtual' all tests of GEOS are = fine and also PostGIS does not crash on analyzing small datasets [1] anymore. The appended patch should - enable testing environment and add target 'check' - add CXXFLAGS=3D-Wnon-virtual-dtor -Woverloaded-virtual - bump PORTREVISION portlint -AC is happy. Tested with Poudriere for HEADa/i, 10.3a/i and 9.3a/i with no problems. [1] https://trac.osgeo.org/postgis/ticket/2985 [2] https://trac.osgeo.org/geos/wiki/BuildingOnUnixWithCMake [3] https://trac.osgeo.org/geos/ticket/299 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213173-13>