Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] simple_join_intersect example program seg faults

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] simple_join_intersect example program seg faults


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] simple_join_intersect example program seg faults
  • Date: Wed, 28 Sep 2011 08:35:12 +0200

I just try it with CGAL-3.6.1 as well as the latest version
of CGAL, and the example simple_join_intersect.cpp is running
fine on my machine.

Did you modify the example? Which compiler and version are you using?
can you reproduce the problem with the latest version of CGAL?

Sebastien.

bcl wrote:
Anyone know how to fix this? Thx

Ubuntu 11.04 x86_64
Installed packages: libcgal-3.6.1-2ubuntu2 libcgal-dev-3.6.1-2ubuntu2 libcgal-demo-3.6.1-2ubuntu2

$ ./simple_join_intersect P = [ 5 vertices: (0/1 0/1) (5/1 0/1) (7/2 3/2) (5/2 1/2) (3/2 3/2) ] Q = [ 5 vertices: (0/1 2/1) (3/2 1/2) (5/2 3/2) (7/2 1/2) (5/1 2/1) ] Segmentation fault (core dumped) $ gdb simple_join_intersect core GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
&lt;http://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: &lt;http://www.gnu.org/software/gdb/bugs/&gt;... Reading symbols from
cgal-demo/examples/Boolean_set_operations_2/simple_join_intersect...done.
warning: core file may not match specified executable file. [New Thread 17902]
warning: Can't read pathname for load map: Input/output error. Reading symbols from /usr/lib/libCGAL_Core.so.5...(no debugging symbols
found)...done. Loaded symbols for /usr/lib/libCGAL_Core.so.5 Reading symbols from /usr/lib/libCGAL.so.5...(no debugging symbols
found)...done. Loaded symbols for /usr/lib/libCGAL.so.5 Reading symbols from /usr/lib/libgmpxx.so.4...(no debugging symbols
found)...done. Loaded symbols for /usr/lib/libgmpxx.so.4 Reading symbols from /usr/lib/libmpfr.so.4...(no debugging symbols
found)...done. Loaded symbols for /usr/lib/libmpfr.so.4 Reading symbols from /usr/lib/libgmp.so.3...(no debugging symbols
found)...done. Loaded symbols for /usr/lib/libgmp.so.3 Reading symbols from /usr/lib/libboost_thread.so.1.42.0...(no debugging
symbols found)...done. Loaded symbols for /usr/lib/libboost_thread.so.1.42.0 Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no
debugging symbols found)...done. Loaded symbols for /usr/lib/x86_64-linux-gnu/libstdc++.so.6 Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from
/usr/lib/debug/lib/x86_64-linux-gnu/libm-2.13.so...done. done. Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6 Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging
symbols found)...done. Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1 Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from
/usr/lib/debug/lib/x86_64-linux-gnu/libc-2.13.so...done. done. Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6 Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols from
/usr/lib/debug/lib/x86_64-linux-gnu/librt-2.13.so...done. done. Loaded symbols for /lib/x86_64-linux-gnu/librt.so.1 Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols
from /usr/lib/debug/lib/x86_64-linux-gnu/libpthread-2.13.so...done. done. Loaded symbols for /lib/x86_64-linux-gnu/libpthread.so.0 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Core was generated by `./simple_join_intersect'. Program terminated with signal 11, Segmentation fault. #0 Handle_for (this=<value optimized out>, begin=..., end=..., pgn=...) at
/usr/include/CGAL/Handle_for.h:125 125 : ptr_(h.ptr_) (gdb) bt #0 Handle_for (this=<value optimized out>, begin=..., end=..., pgn=...) at
/usr/include/CGAL/Handle_for.h:125 #1 VectorC2 (this=<value optimized out>, begin=..., end=..., pgn=...) at
/usr/include/CGAL/Cartesian/Vector_2.h:36 #2 Vector_2 (this=<value optimized out>, begin=..., end=..., pgn=...) at
/usr/include/CGAL/Vector_2.h:39 #3 PointC2 (this=<value optimized out>, begin=..., end=..., pgn=...) at
/usr/include/CGAL/Cartesian/Point_2.h:33 #4 Point_2 (this=<value optimized out>, begin=..., end=..., pgn=...) at
/usr/include/CGAL/Point_2.h:39 #5 operator() (this=<value optimized out>, begin=..., end=..., pgn=...) at
/usr/include/CGAL/Boolean_set_operations_2/Gps_traits_adaptor.h:72 #6 CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel>
::Construct_polygon_2::operator()&lt;CGAL::Ccb_curve_iterator&lt;CGAL::Arrangement_on_surface_2&lt;CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Arr_bounded_planar_topology_traits_2&lt;CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Gps_default_dcel&lt;CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel> > > > > > > (this=<value optimized out>,
begin=..., end=..., pgn=...) at /usr/include/CGAL/Gps_segment_traits_2.h:92 #7 0x000000000044375e in construct_polygon (this=0x7fff7ba9b7a0, arr=...)
at
/usr/include/CGAL/Boolean_set_operations_2/Gps_on_surface_base_2_impl.h:45 #8 scan_ccb (this=0x7fff7ba9b7a0, arr=...) at
/usr/include/CGAL/Boolean_set_operations_2/Gps_on_surface_base_2_impl.h:150 #9 CGAL::Arr_bfs_scanner&lt;CGAL::Arrangement_on_surface_2&lt;CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Arr_bounded_planar_topology_traits_2&lt;CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Gps_default_dcel&lt;CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel> > > > >,
CGAL::Counting_output_iterator>::scan (this=0x7fff7ba9b7a0, arr=...) at
/usr/include/CGAL/Boolean_set_operations_2/Gps_on_surface_base_2_impl.h:109 #10 0x000000000045aa0c in number_of_polygons_with_holes (pgn1=<value
optimized out>, pgn2=<value optimized out>, res=..., tr=<value optimized
out>) at
/usr/include/CGAL/Boolean_set_operations_2/Gps_on_surface_base_2_impl.h:634 #11 CGAL::_join&lt;CGAL::Polygon_2&lt;Kernel&gt;, CGAL::Polygon_2<Kernel>,
CGAL::Gps_segment_traits_2&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > >,
CGAL::Arr_segment_traits_2<Kernel> > > (pgn1=<value optimized out>,
pgn2=<value optimized out>, res=..., tr=<value optimized out>) at
/usr/include/CGAL/Boolean_set_operations_2/Bso_internal_functions.h:109 #12 0x000000000043b36e in _join&lt;CGAL::Polygon_2&lt;Kernel&gt;,
CGAL::Polygon_2<Kernel>, CGAL::Polygon_with_holes_2<Kernel> > ()
at
/usr/include/CGAL/Boolean_set_operations_2/Bso_internal_functions.h:127 #13 join&lt;Kernel,
std::vector&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; >,
std::allocator&lt;CGAL::Point_2&lt;CGAL::Cartesian&lt;CGAL::Gmpq&gt; > > > >
() at /usr/include/CGAL/Boolean_set_operations_2.h:329 #14 main () at
cgal-demo/examples/Boolean_set_operations_2/simple_join_intersect.cpp:46 (gdb)
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/simple-join-intersect-example-program-seg-faults-tp3837382p3837382.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.16.

Top of Page