Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] errors in Delaunay code when using optimized CGAL lib on mac

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] errors in Delaunay code when using optimized CGAL lib on mac


Chronological Thread 
  • From: Andrei Zaharescu <>
  • To:
  • Subject: Re: [cgal-discuss] errors in Delaunay code when using optimized CGAL lib on mac
  • Date: Wed, 17 Oct 2007 14:29:24 +0200

Hey Sylvain,

I tried commenting out that pre-condition.. and now the code got stuck in another one...

CGAL error: assertion violation!
Expr: result
File: ../../include/CGAL/Regular_triangulation_2.h
Line: 760
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Abort trap

I will try installing GCC 4.2 via fink and give it a go...I've been meaning to do so for quite some time.. in order to try some
OpenMP stuff .. now i'm motivated even more :)

thanks,
Andrei.


Andrei Zaharescu a écrit :
Hi everybody,
I am encountering an error when using the CGAL library compiled with optimization flags on mac intel (with -O1 or -O2 or -O3).
Basically, if I try the provided examples from:
/examples/Triangulation_2/regular
I get some precondition violations. This does not happen when no optimization flags are being used.
Thanks in advance to everyone. The error occurs when invoking the    rt.is_valid() command.
CGAL error: precondition violation!
Expr: it1.e_ == it2.e_
File: ../../include/CGAL/iterator.h
Line: 563
Explanation:
terminate called after throwing an instance of 'CGAL::Precondition_exception'
  what():  CGAL ERROR: precondition violation!
Expr: it1.e_ == it2.e_
File: ../../include/CGAL/iterator.h
Line: 563
Abort trap

I can reproduce it in the same conditions.
Note that with g++ 4.2 (easily installed with Fink), it works, though.

I have no clue what can happen, don't have enough to dig into this.
I'd suggest you uncomment the precondition, it's not an important one.
Maybe a compiler bug...

-- 
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team


-- 
Andrei Zaharescu
Phd Candidate
INRIA Rhone-Alpes 
ZIRST - 655, ave de l'Europe 
Montbonnot, 38330 - Saint Imsier Cedex
FRANCE
work:   +33 (0)4 76 61 55 81
fax:    +33 (0)4 76 61 54 54
mobile: +33 (0)6 74 20 88 16






Archive powered by MHonArc 2.6.16.

Top of Page