Hi Peter,<br><br>Yes, the crashes occurs in libc. But I use a very, very standard libc: GNU libc6, standard package which comes with Ubuntu (no needs upgrade, I checked this ). Then I think the problem occurs in libc but are cause for some VTK misuse that&#39;s I&#39;m doing, but I really have no idea about where are my mistake.<br>
<br>Regards, <br><br>Wagner Sales<br><br><div class="gmail_quote">2008/6/8 Peter F Bradshaw &lt;<a href="mailto:pfb@exadios.com">pfb@exadios.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Wagner;<br>
<br>
I notice that the crash is occuring in libc. This raises the question of<br>
where did you get your VTK 5.2 from? Was it built against your<br>
particular implementation of libc?<br>
<div><div></div><div class="Wj3C7c"><br>
On Fri, 6 Jun 2008, Wagner Sales wrote:<br>
<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I&#39;m trying to create a vtkSphereSource in a method on my application thats<br>
&gt; crashes some times ( not all try ).<br>
&gt; vtkSphereSource *src = vtkSphereSource::New();<br>
&gt; Thats are a simple line, that&#39;s are:<br>
&gt; 1 - inside a method of the class<br>
&gt; 2 - the class that&#39;s own the method aren&#39;t a vtkObject child, are a simple<br>
&gt; class.<br>
&gt; 3 - the vtkSphereSource aren&#39;t deleted after created ( scope and smart<br>
&gt; points will solve this, ok? )<br>
&gt; 4 - the created objects aren&#39;t registered ( by<br>
&gt; vtkObject::Register(vtkObject*)) method<br>
&gt; I think that&#39;s I&#39;m using in some bad way the smart pointers feature or<br>
&gt; another stupid mistake. But, this error aren&#39;t new to me, and my last solve<br>
&gt; was very, very ugly.<br>
&gt; I was searched for some explanation on Google and VTK books, but nothing<br>
&gt; appears useful to me.<br>
&gt; If someone can help, I&#39;ll must appreciate.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Wagner Sales<br>
&gt;<br>
&gt; BACKTRACE:<br>
&gt;<br>
&gt; (gdb) bt<br>
&gt; bt<br>
&gt; #0 &nbsp;0xb31a5116 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
&gt; #1 &nbsp;0xb56bfddd in std::vector&lt;vtkGarbageCollectorImpl::EntryEdge,<br>
&gt; std::allocator&lt;vtkGarbageCollectorImpl::EntryEdge&gt; &gt;::push_back () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #2 &nbsp;0xb31a71bd in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
&gt; #3 &nbsp;0xb33706a7 in operator new () from /usr/lib/libstdc++.so.6<br>
&gt; #4 &nbsp;0xb31a8fc0 in malloc () from /lib/tls/i686/cmov/libc.so.6<br>
&gt; #5 &nbsp;0xb33706a7 in operator new () from /usr/lib/libstdc++.so.6<br>
&gt; #6 &nbsp;0xb56bd5d2 in<br>
&gt; __gnu_cxx::new_allocator&lt;vtkGarbageCollectorImpl::ComponentType*&gt;::allocate<br>
&gt; () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #7 &nbsp;0xb56bd60f in std::_Deque_base&lt;vtkGarbageCollectorImpl::ComponentType*,<br>
&gt; std::allocator&lt;vtkGarbageCollectorImpl::ComponentType*&gt; &gt;::_M_allocate_node<br>
&gt; () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #8 &nbsp;0xb56bd63c in std::_Deque_base&lt;vtkGarbageCollectorImpl::ComponentType*,<br>
&gt; std::allocator&lt;vtkGarbageCollectorImpl::ComponentType*&gt; &gt;::_M_create_nodes<br>
&gt; () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #9 &nbsp;0xb56bd755 in std::_Deque_base&lt;vtkGarbageCollectorImpl::ComponentType*,<br>
&gt; std::allocator&lt;vtkGarbageCollectorImpl::ComponentType*&gt; &gt;::_M_initialize_map<br>
&gt; () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #10 0xb56bd859 in std::_Deque_base&lt;vtkGarbageCollectorImpl::ComponentType*,<br>
&gt; std::allocator&lt;vtkGarbageCollectorImpl::ComponentType*&gt; &gt;::_Deque_base ()<br>
&gt; from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #11 0xb56bd8ae in std::deque&lt;vtkGarbageCollectorImpl::ComponentType*,<br>
&gt; std::allocator&lt;vtkGarbageCollectorImpl::ComponentType*&gt; &gt;::deque () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #12 0xb56b7b45 in vtkGarbageCollectorImpl::vtkGarbageCollectorImpl () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #13 0xb56b7d1c in vtkGarbageCollector::Collect () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #14 0xb5712c97 in vtkObjectBase::UnRegisterInternal () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #15 0xb5710adc in vtkObject::UnRegisterInternal () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #16 0xb56c7007 in vtkInformation::UnRegister () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #17 0xb5712a2c in vtkObjectBase::Delete () from<br>
&gt; /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
&gt; #18 0xb5a5398e in vtkAlgorithm::vtkAlgorithm () from<br>
&gt; /usr/lib/vtk-5.2/libvtkFiltering.so.5.2<br>
&gt; #19 0xb5b82f96 in vtkPolyDataAlgorithm::vtkPolyDataAlgorithm () from<br>
&gt; /usr/lib/vtk-5.2/libvtkFiltering.so.5.2<br>
&gt; #20 0xb635a6d4 in vtkSphereSource::vtkSphereSource () from<br>
&gt; /usr/lib/vtk-5.2/libvtkGraphics.so.5.2<br>
&gt; #21 0xb635a8e2 in vtkSphereSource::New () from<br>
&gt; /usr/lib/vtk-5.2/libvtkGraphics.so.5.2<br>
&gt;<br>
<br>
</div></div>Cheers<br>
<br>
--<br>
Peter F Bradshaw: <a href="http://www.exadios.com" target="_blank">http://www.exadios.com</a> (public keys avaliable there).<br>
Personal site: <a href="http://personal.exadios.com" target="_blank">http://personal.exadios.com</a><br>
&quot;I love truth, and the way the government still uses it occasionally to<br>
&nbsp;keep us guessing.&quot; - Sam Kekovich.<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>