Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Memory corruption with
- Date: Wed, 13 Nov 2013 11:20:50 +0100
- Organization: GeometryFactory
Le Tuesday 12 November 2013 18:21:41 Daniel Russel a écrit :
> We recently started getting memory corruption errors during hilbert sorting
> when building regular triangulation on fedora 19 (gcc 4.82). This occurs
> with cgal 4.2 and 4.3. The .cpp, build command and outputs under normal
> running and valgrind are attached.
>
> The disabling of the rounding check is to that things can run in valgrind,
> but the output is the same without it. Removing the -DCGAL_USE_GMP and
> -DCGAL_USE_MPFR doesn't make any difference.
>
> Any suggestions? Thanks.
There is a severe bug in the libstdc++ shipped by g++-4.8:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58800
The CGAL spatial sorting uses std::nth_element, and that function, in the
buggy implementations, can sometime dereference the past-the-end iterator of
the sequence. There is a patch in the bug report. The bug was so annoying
that
I have patched my g++-4.8 system installation by hand.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Memory corruption with, Daniel Russel, 11/13/2013
- Re: [cgal-discuss] Memory corruption with, Daniel Russel, 11/13/2013
- Re: [cgal-discuss] Memory corruption with, Laurent Rineau (CGAL/GeometryFactory), 11/13/2013
Archive powered by MHonArc 2.6.18.