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's I'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 <<a href="mailto:pfb@exadios.com">pfb@exadios.com</a>>:<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>
> Dear all,<br>
><br>
> I'm trying to create a vtkSphereSource in a method on my application thats<br>
> crashes some times ( not all try ).<br>
> vtkSphereSource *src = vtkSphereSource::New();<br>
> Thats are a simple line, that's are:<br>
> 1 - inside a method of the class<br>
> 2 - the class that's own the method aren't a vtkObject child, are a simple<br>
> class.<br>
> 3 - the vtkSphereSource aren't deleted after created ( scope and smart<br>
> points will solve this, ok? )<br>
> 4 - the created objects aren't registered ( by<br>
> vtkObject::Register(vtkObject*)) method<br>
> I think that's I'm using in some bad way the smart pointers feature or<br>
> another stupid mistake. But, this error aren't new to me, and my last solve<br>
> was very, very ugly.<br>
> I was searched for some explanation on Google and VTK books, but nothing<br>
> appears useful to me.<br>
> If someone can help, I'll must appreciate.<br>
><br>
> Regards,<br>
><br>
> Wagner Sales<br>
><br>
> BACKTRACE:<br>
><br>
> (gdb) bt<br>
> bt<br>
> #0 0xb31a5116 in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
> #1 0xb56bfddd in std::vector<vtkGarbageCollectorImpl::EntryEdge,<br>
> std::allocator<vtkGarbageCollectorImpl::EntryEdge> >::push_back () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #2 0xb31a71bd in ?? () from /lib/tls/i686/cmov/libc.so.6<br>
> #3 0xb33706a7 in operator new () from /usr/lib/libstdc++.so.6<br>
> #4 0xb31a8fc0 in malloc () from /lib/tls/i686/cmov/libc.so.6<br>
> #5 0xb33706a7 in operator new () from /usr/lib/libstdc++.so.6<br>
> #6 0xb56bd5d2 in<br>
> __gnu_cxx::new_allocator<vtkGarbageCollectorImpl::ComponentType*>::allocate<br>
> () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #7 0xb56bd60f in std::_Deque_base<vtkGarbageCollectorImpl::ComponentType*,<br>
> std::allocator<vtkGarbageCollectorImpl::ComponentType*> >::_M_allocate_node<br>
> () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #8 0xb56bd63c in std::_Deque_base<vtkGarbageCollectorImpl::ComponentType*,<br>
> std::allocator<vtkGarbageCollectorImpl::ComponentType*> >::_M_create_nodes<br>
> () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #9 0xb56bd755 in std::_Deque_base<vtkGarbageCollectorImpl::ComponentType*,<br>
> std::allocator<vtkGarbageCollectorImpl::ComponentType*> >::_M_initialize_map<br>
> () from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #10 0xb56bd859 in std::_Deque_base<vtkGarbageCollectorImpl::ComponentType*,<br>
> std::allocator<vtkGarbageCollectorImpl::ComponentType*> >::_Deque_base ()<br>
> from /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #11 0xb56bd8ae in std::deque<vtkGarbageCollectorImpl::ComponentType*,<br>
> std::allocator<vtkGarbageCollectorImpl::ComponentType*> >::deque () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #12 0xb56b7b45 in vtkGarbageCollectorImpl::vtkGarbageCollectorImpl () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #13 0xb56b7d1c in vtkGarbageCollector::Collect () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #14 0xb5712c97 in vtkObjectBase::UnRegisterInternal () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #15 0xb5710adc in vtkObject::UnRegisterInternal () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #16 0xb56c7007 in vtkInformation::UnRegister () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #17 0xb5712a2c in vtkObjectBase::Delete () from<br>
> /usr/lib/vtk-5.2/libvtkCommon.so.5.2<br>
> #18 0xb5a5398e in vtkAlgorithm::vtkAlgorithm () from<br>
> /usr/lib/vtk-5.2/libvtkFiltering.so.5.2<br>
> #19 0xb5b82f96 in vtkPolyDataAlgorithm::vtkPolyDataAlgorithm () from<br>
> /usr/lib/vtk-5.2/libvtkFiltering.so.5.2<br>
> #20 0xb635a6d4 in vtkSphereSource::vtkSphereSource () from<br>
> /usr/lib/vtk-5.2/libvtkGraphics.so.5.2<br>
> #21 0xb635a8e2 in vtkSphereSource::New () from<br>
> /usr/lib/vtk-5.2/libvtkGraphics.so.5.2<br>
><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>
"I love truth, and the way the government still uses it occasionally to<br>
keep us guessing." - 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>