Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: valgring (alpha shapes) and cgal

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: valgring (alpha shapes) and cgal


Chronological Thread 
  • From: georgi <>
  • To:
  • Subject: [cgal-discuss] Re: valgring (alpha shapes) and cgal
  • Date: Mon, 1 Aug 2011 07:22:25 -0700 (PDT)

Hi, Lukasz,
I have the same problem, but even recompiling does not solve the issue:
I did run the cmake of CGAL with
cmake -D BUILD_SHARED_LIBS=OFF CGAL_DISABLE_ROUNDING_MATH_CHECK=ON
<srcFolder>
and built the static library libCGAL.a successfully.
Then I compile and link my testCGAL.cpp (having #define
CGAL_DISABLE_ROUNDING_MATH_CHECK) against this library successfully.

However when I run *valgrind --leak-check=yes <testCGAL Binary>* I get the
following error:

==13201== Memcheck, a memory error detector
==13201== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==13201== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==13201== Command: Debug/testCGAL2
==13201==
==13201== *Conditional jump or move depends on uninitialised value(s)*
==13201== at 0x43FF35:
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > std::__copy_move&lt;false, false,
std::random_access_iterator_tag&gt;::__copy_m&lt;double*,
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > >(double*, double*,
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > >) (stl_algobase.h:347)
==13201== by 0x43AE62:
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > std::__copy_move_a&lt;false,
double*, std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > >(double*, double*,
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > >) (stl_algobase.h:404)
==13201== by 0x4354F3:
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > std::__copy_move_a2&lt;false,
double*, std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > >(double*, double*,
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > >) (stl_algobase.h:442)
==13201== by 0x42DBB1:
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > std::copy&lt;double*,
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > > >(double*, double*,
std::back_insert_iterator&lt;std::vector&lt;CGAL::MP_Float,
std::allocator&lt;CGAL::MP_Float&gt; > >) (stl_algobase.h:474)
==13201== by 0x423DC0:
CGAL::QP_solver&lt;CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>,
CGAL::MP_Float,
CGAL::QP_solver_impl::QP_tags&lt;CGAL::Boolean_tag&lt;false&gt;,
CGAL::Boolean_tag<false> > >::init_solution__b_C(CGAL::Boolean_tag<true>)
(Initialization.h:550)
==13201== by 0x41B63F:
CGAL::QP_solver&lt;CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>,
CGAL::MP_Float,
CGAL::QP_solver_impl::QP_tags&lt;CGAL::Boolean_tag&lt;false&gt;,
CGAL::Boolean_tag<false> > >::init_solution__b_C(bool) (QP_solver.h:791)
==13201== by 0x415701:
CGAL::QP_solver&lt;CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>,
CGAL::MP_Float,
CGAL::QP_solver_impl::QP_tags&lt;CGAL::Boolean_tag&lt;false&gt;,
CGAL::Boolean_tag<false> > >::init_solution() (Initialization.h:574)
==13201== by 0x40D754:
CGAL::QP_solver&lt;CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>,
CGAL::MP_Float,
CGAL::QP_solver_impl::QP_tags&lt;CGAL::Boolean_tag&lt;false&gt;,
CGAL::Boolean_tag<false> > >::init() (Initialization.h:344)
==13201== by 0x40AFAF:
CGAL::QP_solver&lt;CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>,
CGAL::MP_Float,
CGAL::QP_solver_impl::QP_tags&lt;CGAL::Boolean_tag&lt;false&gt;,
CGAL::Boolean_tag<false> >
>::QP_solver(CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>
const&, CGAL::Quadratic_program_options const&) (Initialization.h:60)
==13201== by 0x409AB3: CGAL::Quadratic_program_solution<CGAL::MP_Float>
CGAL::QP_functions_detail::solve_program&lt;CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>,
CGAL::MP_Float, CGAL::Boolean_tag<false>, CGAL::Boolean_tag<false>
>(CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**, double*,
CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*> const&,
CGAL::MP_Float const&, CGAL::Boolean_tag<false>, CGAL::Boolean_tag<false>,
CGAL::Quadratic_program_options const&) (QP_functions_impl.h:356)
==13201== by 0x408C87: CGAL::Quadratic_program_solution<CGAL::MP_Float>
CGAL::solve_quadratic_program&lt;CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>,
CGAL::MP_Float>(CGAL::Nonnegative_quadratic_program_from_iterators&lt;double**,
double*, CGAL::Const_oneset_iterator&lt;CGAL::Sign&gt;, double**, double*>
const&, CGAL::MP_Float const&, CGAL::Quadratic_program_options const&)
(QP_functions_impl.h:397)
==13201== by 0x4050E3: main (testCGAL2.cpp:126)

Any ideas?

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/valgring-alpha-shapes-and-cgal-tp2956065p3709781.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] Re: valgring (alpha shapes) and cgal, georgi, 08/01/2011

Archive powered by MHonArc 2.6.16.

Top of Page