Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Segmentation fault on 64-bit linux machine (CentOS_5.4)

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Segmentation fault on 64-bit linux machine (CentOS_5.4)


Chronological Thread 
  • From: lql <>
  • To:
  • Subject: [cgal-discuss] Re: Segmentation fault on 64-bit linux machine (CentOS_5.4)
  • Date: Thu, 14 Apr 2011 09:53:38 -0700 (PDT)

My code can run correctly on 32-bit linux machine (Ubuntu 10.10), however,
when I run it on a 64-bit linux machine (CentOS_5.4), it failed. Below is
some detailed information. Can anybody help? Thank you very much!

-----same code on both machines-----
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef Kernel::Point_2 Point_2;
typedef CGAL::Polygon_2 Polygon_2;
typedef CGAL::Polygon_with_holes_2 Polygon_with_holes_2;
typedef std::list Pwh_list_2;

template
typename CGAL::Polygon_2&lt;Kernel, Container&gt;::FT
overlap_area(const CGAL::Polygon_2&lt;Kernel, Container&gt; &P,
const CGAL::Polygon_2&lt;Kernel, Container&gt; &Q)
{
CGAL_precondition(P.is_simple());
CGAL_precondition(Q.is_simple());

Pwh_list_2 overlap;
cerr<<"before calling CGAL::intersection: \nP="<<P<<"\nQ="<<Q<<endl;
CGAL::intersection(P, Q, std::back_inserter(overlap));
cerr<<"after calling CGAL::intersection"<<endl;
exit(1);
}

-----output on 32-bit machine-----
before calling CGAL::intersection:
P=42 36472 32769 36473 32769 36474 32769 36475 32769 36476 32769 36477 32769
36478 32769 36479 32769 36480 32769 36481 32769 36481 32770 36481 32771
36481 32772 36481 32773 36481 32774 36481 32775 36480 32775 36480 32776
36480 32777 36479 32777 36479 32778 36478 32778 36478 32779 36477 32779
36476 32779 36476 32780 36475 32780 36475 32779 36474 32779 36474 32778
36474 32777 36473 32777 36473 32776 36472 32776 36472 32775 36471 32775
36471 32774 36471 32773 36472 32773 36472 32772 36472 32771 36472 32770
Q=42 36471 32769 36472 32769 36473 32769 36474 32769 36475 32769 36476 32769
36477 32769 36478 32769 36479 32769 36480 32769 36481 32769 36481 32770
36481 32771 36481 32772 36481 32773 36481 32774 36481 32775 36481 32776
36481 32777 36480 32777 36480 32778 36479 32778 36479 32779 36478 32779
36478 32780 36477 32780 36476 32780 36475 32780 36474 32780 36474 32779
36473 32779 36473 32778 36473 32777 36472 32777 36472 32776 36471 32776
36471 32775 36471 32774 36471 32773 36471 32772 36471 32771 36471 32770
after calling CGAL::intersection
-----
-----output on 64-bit machine-----
before calling CGAL::intersection:
P=42 36472 32769 36473 32769 36474 32769 36475 32769 36476 32769 36477 32769
36478 32769 36479 32769 36480 32769 36481 32769 36481 32770 36481 32771
36481 32772 36481 32773 36481 32774 36481 32775 36480 32775 36480 32776
36480 32777 36479 32777 36479 32778 36478 32778 36478 32779 36477 32779
36476 32779 36476 32780 36475 32780 36475 32779 36474 32779 36474 32778
36474 32777 36473 32777 36473 32776 36472 32776 36472 32775 36471 32775
36471 32774 36471 32773 36472 32773 36472 32772 36472 32771 36472 32770
Q=42 36471 32769 36472 32769 36473 32769 36474 32769 36475 32769 36476 32769
36477 32769 36478 32769 36479 32769 36480 32769 36481 32769 36481 32770
36481 32771 36481 32772 36481 32773 36481 32774 36481 32775 36481 32776
36481 32777 36480 32777 36480 32778 36479 32778 36479 32779 36478 32779
36478 32780 36477 32780 36476 32780 36475 32780 36474 32780 36474 32779
36473 32779 36473 32778 36473 32777 36472 32777 36472 32776 36471 32776
36471 32775 36471 32774 36471 32773 36471 32772 36471 32771 36471 32770
Segmentation fault
-----

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Segmentation-fault-on-64-bit-linux-machine-CentOS-5-4-tp3450158p3450165.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page