Subject: CGAL users discussion list
List archive
- From: Francesc Vila Garcia <>
- To:
- Subject: Re: [cgal-discuss] simple_join_intersect example program seg faults
- Date: Wed, 28 Sep 2011 10:25:20 +0200
I've got the same problem, and I have opened a bug in the ubuntu packages. It started on updating from 10.10 to 11.04, and, according to the list of packages of the 11.04 release, CGAL should be 3.8, but when using apt, the package version is 3.6.
Nobody has answered the bug report, but I suppose you can download the deb packages of the 3.8 version and install them using dpkg.
Regards,
Francesc
On 09/23/2011 06:45 PM, 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
<http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
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<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
CGAL::Arr_segment_traits_2<Kernel>
::Construct_polygon_2::operator()<CGAL::Ccb_curve_iterator<CGAL::Arrangement_on_surface_2<CGAL::Gps_segment_traits_2<Kernel,std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Arr_bounded_planar_topology_traits_2<CGAL::Gps_segment_traits_2<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Gps_default_dcel<CGAL::Gps_segment_traits_2<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
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<CGAL::Arrangement_on_surface_2<CGAL::Gps_segment_traits_2<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Arr_bounded_planar_topology_traits_2<CGAL::Gps_segment_traits_2<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
CGAL::Arr_segment_traits_2<Kernel> >,
CGAL::Gps_default_dcel<CGAL::Gps_segment_traits_2<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
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<CGAL::Polygon_2<Kernel>, CGAL::Polygon_2<Kernel>,
CGAL::Gps_segment_traits_2<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > >,
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<CGAL::Polygon_2<Kernel>,
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<Kernel,
std::vector<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>>,
std::allocator<CGAL::Point_2<CGAL::Cartesian<CGAL::Gmpq>> > > >
()
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.
- [cgal-discuss] simple_join_intersect example program seg faults, bcl, 09/23/2011
- Re: [cgal-discuss] simple_join_intersect example program seg faults, Sebastien Loriot (GeometryFactory), 09/28/2011
- [cgal-discuss] Re: simple_join_intersect example program seg faults, bcl, 09/28/2011
- Re: [cgal-discuss] simple_join_intersect example program seg faults, Francesc Vila Garcia, 09/28/2011
- Re: [cgal-discuss] simple_join_intersect example program seg faults, Sebastien Loriot (GeometryFactory), 09/28/2011
Archive powered by MHonArc 2.6.16.