Hi, I got a segfault error when running my libmesh program on a single thread (but on a cluster). What is odd is that the same code ran well on two other computers (one is cluster and the other a desktop). The segfault error has to do with LibmeshInit() and ostream, which is also odd to me.
The version of libmesh I am using is 0.9.2.2. Any suggestions will be greatly appreciated. The error is described below. Thanks, Dafang ==13923== Invalid read of size 8 ==13923== at 0x3542F853F8: std::ostream::sentry::sentry(std::ostream&) (in /usr/lib64/libstdc++.so.6.0.3) ==13923== by 0x3542F8557D: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3) ==13923== by 0x6D18491: libMesh::BasicOStreamProxy<char, std::char_traits<char> >& libMesh::BasicOStreamProxy<char, std::char_traits<char> >::operator<< <char[32]>(char[32] const&) (ostream_proxy.h:124) ==13923== by 0x6D76ECB: _ZN7libMesh11LibMeshInitC9EiPKPKcP19ompi_communicator_t (libmesh.C:356) ==13923== by 0x6D793BD: libMesh::LibMeshInit::LibMeshInit(int, char const* const*, ompi_communicator_t*) (libmesh.C:0) ==13923== by 0x439AF8: main (main_RealHeart.cpp:292) ==13923== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==13923== ==13923== Process terminating with default action of signal 11 (SIGSEGV) ==13923== Access not within mapped region at address 0x0 ==13923== at 0x3542F853F8: std::ostream::sentry::sentry(std::ostream&) (in /usr/lib64/libstdc++.so.6.0.3) ==13923== by 0x3542F8557D: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3) ==13923== by 0x6D18491: libMesh::BasicOStreamProxy<char, std::char_traits<char> >& libMesh::BasicOStreamProxy<char, std::char_traits<char> >::operator<< <char[32]>(char[32] const&) (ostream_proxy.h:124) ==13923== by 0x6D76ECB: _ZN7libMesh11LibMeshInitC9EiPKPKcP19ompi_communicator_t (libmesh.C:356) ==13923== by 0x6D793BD: libMesh::LibMeshInit::LibMeshInit(int, char const* const*, ompi_communicator_t*) (libmesh.C:0) ==13923== by 0x439AF8: main (main_RealHeart.cpp:292) ==13923== ==13923== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 10 from 5) ==13923== malloc/free: in use at exit: 3,086 bytes in 52 blocks. ==13923== malloc/free: 1,032 allocs, 980 frees, 35,632 bytes allocated. ==13923== For counts of detected errors, rerun with: -v ==13923== searching for pointers to 52 not-freed blocks. ==13923== checked 7,836,456 bytes. -- Dafang Wang, Ph.D Postdoctoral Fellow Institute of Computational Medicine Department of Biomedical Engineering Johns Hopkins University Hackerman Hall Room 218 Baltimore, MD, 21218 ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
