Crash when importing tritetmesh.trimesh

Bug #513902 reported by Garth Wells
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TriTetMesh
Fix Committed
High
Johan Hake

Bug Description

When I have

  from tritetmesh.tetmesh import *

or

  from tritetmesh.trimesh import *

I get the below crash message. I have the development version of DOLFIN.

terminate called after throwing an instance of 'CGAL::Assertion_exception'
  what(): CGAL ERROR: assertion violation!
Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
File: /home/garth/local/include/CGAL/Interval_nt.h
Line: 158
Explanation: Wrong rounding: did you forget the -frounding-math option if you use GCC?
[gnw20pc:19113] *** Process received signal ***
[gnw20pc:19113] Signal: Aborted (6)
[gnw20pc:19113] Signal code: (-6)

Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 513902] [NEW] Crash when importing tritetmesh.trimesh

On Thursday 28 January 2010 10:06:14 Garth Wells wrote:
> Public bug reported:
>
> When I have
>
> from tritetmesh.tetmesh import *
>
> or
>
> from tritetmesh.trimesh import *
>
> I get the below crash message. I have the development version of DOLFIN.
>
> terminate called after throwing an instance of 'CGAL::Assertion_exception'
> what(): CGAL ERROR: assertion violation!
> Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
> File: /home/garth/local/include/CGAL/Interval_nt.h
> Line: 158
> Explanation: Wrong rounding: did you forget the -frounding-math option if
> you use GCC? [gnw20pc:19113] *** Process received signal ***
> [gnw20pc:19113] Signal: Aborted (6)
> [gnw20pc:19113] Signal code: (-6)

Everything works fine here, but then I compiled cgal using -frounding-math.

Does cgal only complains when dragged in from dolfin through tritetmesh? Does
it not complain when you just import dolfin?

Johan

Revision history for this message
Garth Wells (garth-wells) wrote :

Johan Hake wrote:
> On Thursday 28 January 2010 10:06:14 Garth Wells wrote:
>> Public bug reported:
>>
>> When I have
>>
>> from tritetmesh.tetmesh import *
>>
>> or
>>
>> from tritetmesh.trimesh import *
>>
>> I get the below crash message. I have the development version of DOLFIN.
>>
>> terminate called after throwing an instance of 'CGAL::Assertion_exception'
>> what(): CGAL ERROR: assertion violation!
>> Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
>> File: /home/garth/local/include/CGAL/Interval_nt.h
>> Line: 158
>> Explanation: Wrong rounding: did you forget the -frounding-math option if
>> you use GCC? [gnw20pc:19113] *** Process received signal ***
>> [gnw20pc:19113] Signal: Aborted (6)
>> [gnw20pc:19113] Signal code: (-6)
>
> Everything works fine here, but then I compiled cgal using -frounding-
> math.
>

Me too.

> Does cgal only complains when dragged in from dolfin through tritetmesh? Does
> it not complain when you just import dolfin?
>

Exactly. I can import dolfin just fine.

Garth

> Johan
>

Johan Hake (johan-hake)
Changed in tritetmesh:
assignee: nobody → Johan Hake (johan-hake)
importance: Undecided → High
Revision history for this message
Johan Hake (johan-hake) wrote :

On Thursday 28 January 2010 10:40:32 Garth Wells wrote:
> Johan Hake wrote:
> > On Thursday 28 January 2010 10:06:14 Garth Wells wrote:
> >> Public bug reported:
> >>
> >> When I have
> >>
> >> from tritetmesh.tetmesh import *
> >>
> >> or
> >>
> >> from tritetmesh.trimesh import *
> >>
> >> I get the below crash message. I have the development version of DOLFIN.
> >>
> >> terminate called after throwing an instance of
> >> 'CGAL::Assertion_exception' what(): CGAL ERROR: assertion violation!
> >> Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
> >> File: /home/garth/local/include/CGAL/Interval_nt.h
> >> Line: 158
> >> Explanation: Wrong rounding: did you forget the -frounding-math option
> >> if you use GCC? [gnw20pc:19113] *** Process received signal ***
> >> [gnw20pc:19113] Signal: Aborted (6)
> >> [gnw20pc:19113] Signal code: (-6)
> >
> > Everything works fine here, but then I compiled cgal using -frounding-
> > math.
>
> Me too.
>
> > Does cgal only complains when dragged in from dolfin through tritetmesh?
> > Does it not complain when you just import dolfin?
>
> Exactly. I can import dolfin just fine.

Strange...

Are you sure you compiled against the same libdolfin you run against?

Johan

> Garth
>
> > Johan
>

Revision history for this message
Garth Wells (garth-wells) wrote :

Could this be related to

  https://bugs.launchpad.net/tritetmesh/+bug/513913

? It might be that the library is not being linked correctly and that the CGAL message is just a symptom.

Revision history for this message
Garth Wells (garth-wells) wrote :
Changed in tritetmesh:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.