Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Test_runtime_rounding_modes throws exception

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Test_runtime_rounding_modes throws exception


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Test_runtime_rounding_modes throws exception
  • Date: Fri, 06 Apr 2012 10:43:51 +0200

On 04/04/2012 12:25 AM, Hamid G wrote:
Hi

I am trying to perform a boolean operation between two Nef polyhedrons.
The code is simple, it basically loades two .OFF files and after converting
them to Nef tries a subtraction operation.

This code compiles and works under Linux but it crashes before prompting the
user for .OFF file names on Mac OSX
Since it seems no CGAL code is involved at the moment of the crash, it might be another issue not related to CGAL.

You should recompile your example in debug mode to see exactly where the crash occurs (then use 'where' command in gdb to).

Sebastien

:

$ terminate called throwing an exceptionAbort trap: 6

The crash message seemed very cryptic to me, so here is the gdb's backtrace:

(gdb) start
Breakpoint 1 at 0x100000f2e
Starting program: subtract_polyhedron_cgal-mac64.exe
Reading symbols for shared libraries ++......................... done
terminate called throwing an exception
Program received signal SIGABRT, Aborted.
0x00007fff8ce7282a in __kill ()
(gdb) backtrace
#0 0x00007fff8ce7282a in __kill ()
#1 0x00007fff9850ea9c in abort ()
#2 0x00007fff8ea747bc in abort_message ()
#3 0x00007fff8ea71fcf in default_terminate ()
#4 0x00007fff8ea72001 in safe_handler_caller ()
#5 0x00007fff8ea7205c in std::terminate ()
#6 0x00007fff8ea73152 in __cxa_throw ()
#7 0x00000001001169f6 in CGAL::assertion_fail ()
#8 0x0000000100010677 in
CGAL::Interval_nt<false>::Test_runtime_rounding_modes::Test_runtime_rounding_modes
()
#9 0x0000000100001909 in global constructors keyed to
_ZNSt3tr112_GLOBAL__N_16ignoreE ()
#10 0x00007fff5fc0fda6 in
__dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE
()
#11 0x00007fff5fc0faf2 in
__dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE
()
#12 0x00007fff5fc0d2e4 in
__dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#13 0x00007fff5fc0e0b7 in
__dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE
()
#14 0x00007fff5fc034dd in __dyld__ZN4dyld24initializeMainExecutableEv ()
#15 0x00007fff5fc0760b in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_
()
#16 0x00007fff5fc01059 in __dyld__dyld_start ()

I have compiled boost/GMP/MPFR manually and created static libraries for all
of them. So my compile command looks like this:


g++ -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall
-fno-common -O3 -frounding-math -fno-strict-aliasing
-I./local/CGAL/3.8-localgmp/include -I./local/boost/1.49.0/include -c -o
subtract_polyhedron_cgal.o subtract_polyhedron_cgal.cpp
g++ subtract_polyhedron_cgal.o -o subtract_polyhedron_cgal-mac64.exe \
-Wl,-search_paths_first \
-L./local/CGAL/3.8-localgmp/lib \
-isysroot /Developer/SDKs/MacOSX10.6.sdk
-mmacosx-version-min=10.6
./local/CGAL/3.8-localgmp/lib/libCGAL.a ./local/MPFR/3.1.0/lib/libmpfr.a
./local/GMP/5.0.4/lib/libgmp.a ./local/boost/1.49.0/lib/libboost_thread.a

Any hint/input is appreciated,
thanks in advance

http://cgal-discuss.949826.n4.nabble.com/file/n4530372/subtract_polyhedron_cgal.cpp
subtract_polyhedron_cgal.cpp

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Test-runtime-rounding-modes-throws-exception-tp4530372p4530372.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.16.

Top of Page