Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] supporting_plane()

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] supporting_plane()


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] supporting_plane()
  • Date: Wed, 24 Jun 2009 15:02:56 +0200
  • Organization: INRIA

Gmain wrote:
Hi,

I may have a bug in the middle of the programm (after ~200 calls)

I am using your function supporting_plane()
Kernel::Triangle_3 T1;
Kernel::Plane_3 t1=T1.supporting_plane();
Kernel::Plane_3 t2=T1.supporting_plane();
The second time I get a malloc(): memory corruption

Also when using it the following way:
Kernel::Triangle_3 T1;
Kernel::Triangle_3 T2;
Kernel::Plane_3 t1=T1.supporting_plane();
Kernel::Plane_3 t2=T2.supporting_plane();
The second time I get a malloc(): memory corruption

My project is running on lenny 64-bit, I´m using gcc 4.3

By stepping through the function supporting_plane() step over fails and step
into works - but only till we left the function

the program output is:

*** glibc detected ***
/ECS/home/franki/NetBeansProjects/test_01/dist/Debug/GNU-Linux-x86/test_01:
malloc(): memory corruption (fast): 0x0000000000af1fb8 ***
======= Backtrace: =========
/lib/libc.so.6[0x7ffcb20bf948]
/lib/libc.so.6[0x7ffcb20c267f]
/lib/libc.so.6(__libc_malloc+0x98)[0x7ffcb20c3a78]
/usr/lib/libstdc++.so.6(_Znwm+0x1d)[0x7ffcb28ffb9d]

Some questions :

Which kernel are you using ?

What happens if you initialize the triangles with some values
instead of just default constructing them ?

Can you send a small, stand-alone, complete, program reproducing it ?

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page