[Kratos] Problemas

Riccardo Rossi rrossi en cimne.upc.edu
Vie Ago 26 08:41:42 CEST 2011


Dear Nelson,
    to be honest i don't have a clue...

does this happen with one specific file or with every file you attempt
to open? 

did u modify the constructor of the element?

ciao
Riccardo

-- 
________________________________________________________________
Riccardo Rossi, Ph.D, Civil Engineer
member of the Kratos Group: kratos.cimne.upc.es
Centro Internacional de Métodos Numéricos en Ingeniería (CIMNE)
Universidad Politécnica de Cataluña (UPC)
Edificio C-1, campus Norte UPC
Gran Capitan, s/n
08034 Barcelona, España
Tel. (+34) 93 401 56 96
________________________________________________________________

AVISO IMPORTANTE

Los datos de carácter personal contenidos en el mensaje, se registrarán
en un fichero para facilitar la gestión de las comunicaciones de CIMNE.
Se pueden ejercitar los derechos de acceso, rectificación, cancelación y
oposición por escrito, dirigiéndose a nuestras oficinas de CIMNE, Gran
Capitán s/n,  Edificio C1 - Campus Norte UPC, 08034 Barcelona, España.

AVÍS IMPORTANT

Les dades de caràcter personal contingudes en aquest missatge es
registraran en un fitxer per facilitar la gestió de les comunicacions
del CIMNE. Es poden exercir els drets d'accés, rectificació,
cancel·lació i oposició, per escrit a les nostres oficines del CIMNE,
Gran Capità s/n, Edifici C1, Campus Nord UPC, 08034 Barcelona, Espanya.

IMPORTANT NOTICE

All personal data contained in this mail will be processed
confidentially and stored in a file property of CIMNE in order to manage
corporate communications. You may exercise the right of access,
rectification, deletion and objection by letter sent to CIMNE, Gran
Capitán, Edificio C1 - Campus Norte UPC, 08034 Barcelona, Spain.




On Thu, 2011-08-25 at 23:10 +0200, Nelson Lafontaine wrote:
> Hola,
> 
> Quiero pedirles un favor:
> He estado esta tarde mirando este error fastasma y no he dado con la
> solucion.
> No he hecho nada en absoluto,  y no entiendo el porque del
> segmentation fault 
> leyendo los datos de entrada. Es mas cuando compilo con intel, pasa
> que a la hora de ver los elementos 
> que tengo,  poseo uno mas de los que el data file me indica. Ni idea
> del porque me pasa esto.
> 
> 
> Esto es el valgrind:
> Si me pueden dar un poco de luz, gracias.
> 
> 
> Saludos
>  
> 
> Thu Aug 25 23:01:54 2011
> Applications Available:
> Import_ALEApplication: False
> Import_IncompressibleFluidApplication: False
> Import_StructuralApplication: False
> Import_ConvectionDiffusionApplication: False
> Import_FSIApplication: False
> Import_ExternalSolversApplication: False
> Import_ULFApplication: False
> Import_MeshingApplication: False
> Import_KratosMKLSolversApplication: False
> Import_KratosTrilinosApplication: False
> Import_KratosMetisApplication: False
> Import_PoissonApplication: False
> Import_ElectrostaticApplication: False
> Import_MagnetostaticApplication: False
> Import_DamApplication: False
> Import_TestApplication: False
> Import_OpenCLApplication: False
> Import_PodApplication: False
> Import_LevelSetApplication: False
> Import_FluidDynamicsApplication: False
> Import_KratosMixedElementApplication: False
> Applications Available:
> Import_ALEApplication: False
> Import_IncompressibleFluidApplication: False
> Import_StructuralApplication: True
> Import_ConvectionDiffusionApplication: False
> Import_FSIApplication: False
> Import_ExternalSolversApplication: False
> Import_ULFApplication: False
> Import_MeshingApplication: False
> Import_KratosTrilinosApplication: False
> Import_KratosMetisApplication: False
> Import_PoissonApplication: False
> Import_ElectrostaticApplication: False
> Import_MagnetostaticApplication: False
> Import_DamApplication: False
> Import_TestApplication: False
> Import_OpenCLApplication: False
> Import_PodApplication: False
> Import_LevelSetApplication:False
> Import_FluidDynamicsApplication: False
> Import_KratosMixedElementApplication: False
> importing KratosStructuralApplication ...
> "kerneal entered in AddApplication" : kerneal entered in
> AddApplication
> Initializing KratosStructuralApplication... 
> "Application Registered" : Application Registered
> "Variables Registered" : Variables Registered
> "Elements Registered" : Elements Registered
> "Conditions Registered" : Conditions Registered
> KratosStructuralApplication Succesfully imported
> Variables for the dynamic structural solution added correctly
> check_contact_21_penalty opened for io
> check_contact_21_penalty.node opened for io
> check_contact_21_penalty.prop opened for io
> check_contact_21_penalty.elem opened for io
> check_contact_21_penalty.cond opened for io
> check_contact_21_penalty.init opened for io
> initializing result files
> Reading Nodes : 216 nodes read
>         Reading Elements : 352 TotalLagrangian2D3N read
> lines read : 795
> ==6112== Invalid read of size 4
> ==6112==    at 0x972B7E4: __cxa_allocate_exception
> (in /usr/lib/libstdc++.so.6.0.13)
> ==6112==    by 0x8D8E4BD: boost::python::throw_error_already_set()
> (errors.cpp:61)
> ==6112==    by 0x819FDA3:
> boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next::operator()(boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&) (iterator.hpp:64)
> ==6112==    by 0x819FBAF: _object*
> boost::python::detail::invoke<boost::python::to_python_value<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&>, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next, boost::python::arg_from_python<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&> >(boost::python::detail::invoke_tag_<false, false>, boost::python::to_python_value<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&> const&, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next&, boost::python::arg_from_python<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&>&) (invoke.hpp:75)
> ==6112==    by 0x819F996:
> boost::python::detail::caller_arity<1u>::impl<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector2<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&> >::operator()(_object*, _object*) (caller.hpp:223)
> ==6112==    by 0x819F80A:
> boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector2<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&> > >::operator()(_object*, _object*) (py_function.hpp:38)
> ==6112==    by 0x8D86C2D:
> boost::python::objects::function::call(_object*, _object*) const
> (py_function.hpp:143)
> ==6112==    by 0x8D86ED7:
> boost::detail::function::void_function_ref_invoker0<boost::python::objects::(anonymous namespace)::bind_return, void>::invoke(boost::detail::function::function_buffer&) (function.cpp:581)
> ==6112==    by 0x8D8E54A:
> boost::python::handle_exception_impl(boost::function0<void>)
> (function_template.hpp:1013)
> ==6112==    by 0x8D837D7: function_call (errors.hpp:29)
> ==6112==    by 0x41F0C6: PyObject_Call (in /usr/bin/python2.6)
> ==6112==    by 0x427DFE: ??? (in /usr/bin/python2.6)
> ==6112==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
> ==6112== 
> ==6112== 
> ==6112== Process terminating with default action of signal 11
> (SIGSEGV)
> ==6112==  Access not within mapped region at address 0x18
> ==6112==    at 0x972B7E4: __cxa_allocate_exception
> (in /usr/lib/libstdc++.so.6.0.13)
> ==6112==    by 0x8D8E4BD: boost::python::throw_error_already_set()
> (errors.cpp:61)
> ==6112==    by 0x819FDA3:
> boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next::operator()(boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&) (iterator.hpp:64)
> ==6112==    by 0x819FBAF: _object*
> boost::python::detail::invoke<boost::python::to_python_value<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&>, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next, boost::python::arg_from_python<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&> >(boost::python::detail::invoke_tag_<false, false>, boost::python::to_python_value<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&> const&, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next&, boost::python::arg_from_python<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&>&) (invoke.hpp:75)
> ==6112==    by 0x819F996:
> boost::python::detail::caller_arity<1u>::impl<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector2<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&> >::operator()(_object*, _object*) (caller.hpp:223)
> ==6112==    by 0x819F80A:
> boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >::next, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector2<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >&, boost::python::objects::iterator_range<boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, __gnu_cxx::__normal_iterator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >*, std::vector<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > >, std::allocator<boost::shared_ptr<Kratos::Node<3ul, Kratos::Dof<double> > > > > > >&> > >::operator()(_object*, _object*) (py_function.hpp:38)
> ==6112==    by 0x8D86C2D:
> boost::python::objects::function::call(_object*, _object*) const
> (py_function.hpp:143)
> ==6112==    by 0x8D86ED7:
> boost::detail::function::void_function_ref_invoker0<boost::python::objects::(anonymous namespace)::bind_return, void>::invoke(boost::detail::function::function_buffer&) (function.cpp:581)
> ==6112==    by 0x8D8E54A:
> boost::python::handle_exception_impl(boost::function0<void>)
> (function_template.hpp:1013)
> ==6112==    by 0x8D837D7: function_call (errors.hpp:29)
> ==6112==    by 0x41F0C6: PyObject_Call (in /usr/bin/python2.6)
> ==6112==    by 0x427DFE: ??? (in /usr/bin/python2.6)
> ==6112==  If you believe this happened as a result of a stack
> ==6112==  overflow in your program's main thread (unlikely but
> ==6112==  possible), you can try to increase the size of the
> ==6112==  main thread stack using the --main-stacksize= flag.
> ==6112==  The main thread stack size used in this run was 8388608.
> ==6112== 
> ==6112== HEAP SUMMARY:
> ==6112==     in use at exit: 5,975,338 bytes in 22,427 blocks
> ==6112==   total heap usage: 42,911 allocs, 20,484 frees, 10,915,930
> bytes allocated
> ==6112== 
> ==6112== LEAK SUMMARY:
> ==6112==    definitely lost: 136 bytes in 1 blocks
> ==6112==    indirectly lost: 0 bytes in 0 blocks
> ==6112==      possibly lost: 1,456,007 bytes in 8,384 blocks
> ==6112==    still reachable: 4,519,195 bytes in 14,042 blocks
> ==6112==         suppressed: 0 bytes in 0 blocks
> ==6112== Rerun with --leak-check=full to see details of leaked memory
> ==6112== 
> ==6112== For counts of detected and suppressed errors, rerun with: -v
> ==6112== Use --track-origins=yes to see where uninitialised values
> come from
> ==6112== ERROR SUMMARY: 548 errors from 53 contexts (suppressed: 28
> from 7)
> Violación de segmento
> nelson en nelson:~/kratosfiles/check_contact_21_penalty.gid$ 
> 
> 
> 
> 
> -- 
> Ing. Nelson M. Lafontaine
> 
> 
> _______________________________________________
> Kratos mailing list
> Kratos en listas.cimne.upc.edu
> http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/kratos



Más información sobre la lista de distribución Kratos