← Back to team overview

yade-users team mailing list archive

Segment fault when running yade-0.20

 

Hi, all

I've added two modules for yade on version 1586, and now I'm going to move it to a newer version--0.20. I made some modification on the codes in order to fit the newer version. Unfortunatly, I've got segment fault error when I running it after successfully built. So I removed all my changes and built again. However , I got the segment fault error again. 

It works well at the beginning: the main window and the TriaxialTest preprocessor window can be displayed well. The messagebox can be seen which says xxxx spheres were generated successfully. After I press the OK butto, yade crashed: all the windows disappared automatically and some infomation displayed on the terminal. 

Belows is the infomation displayed when use yade-0.20:
------------------------------------------------------------------------
kenny@kenny-laptop:~/YADE0002/bin$ ./yade-unknown-0Python TCP server listening on localhost:9000, auth cookie is `edssyk'
/var/lib/python-support/python2.6/IPython/Magic.py:38: DeprecationWarning: the sets module is deprecated                                                        
  from sets import Set                                                          

        __   __    ____          ____                      _      
        \ \ / /_ _|  _ \  ___   / ___|___  _ __  ___  ___ | | ___ 
         \ V / _` | | | |/ _ \ | |   / _ \| '_ \/ __|/ _ \| |/ _ \ 
          | | (_| | |_| |  __/ | |__| (_) | | | \__ \ (_) | |  __/ 
          |_|\__,_|____/ \___|  \____\___/|_| |_|___/\___/|_|\___| 


In [1]: INFO: sanitize failed: 15 != 1.5e+07
INFO: sanitize failed: 15 != 1.5e+07        
Xlib:  extension "GLX" missing on display ":0.0".
freeglut (./yade-unknown-0): OpenGL GLX extension not supported by display ':0'
SIGSEGV/SIGABRT handler called; gdb batch file is `/home/kenny/.yade-unknown-0/gdb_crash_batch-pid3855'                                                         
GNU gdb 6.8-debian                                                              
Copyright (C) 2008 Free Software Foundation, Inc.                               
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>   
This is free software: you are free to change and redistribute it.              
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"      
and "show warranty" for details.                                                
This GDB was configured as "i486-linux-gnu".                                    
[Thread debugging using libthread_db enabled]                                   
[New Thread 0xb43ff760 (LWP 3855)]                                              
[New Thread 0xa81dcb90 (LWP 3873)]                                              
[New Thread 0xa9d58b90 (LWP 3868)]                                              
warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 000000d4       
0xb7fda430 in __kernel_vsyscall ()                                  
No symbol "info" in current context.                                            

Thread 3 (Thread 0xa9d58b90 (LWP 3868)):
#0  0xb7fda430 in __kernel_vsyscall ()  
#1  0xb6dd28d1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xa79bcec1 in ?? () from /usr/lib/python2.6/lib-dynload/readline.so
#3  0xb7d915db in PyOS_Readline () from /usr/lib/libpython2.6.so.1.0   
#4  0xb7e3378c in ?? () from /usr/lib/libpython2.6.so.1.0              
#5  0xb7ddbaed in PyCFunction_Call () from /usr/lib/libpython2.6.so.1.0
#6  0xb7e3dbf0 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#7  0xb7e3f910 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0 
#8  0xb7e3e030 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#9  0xb7e3f910 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0 
#10 0xb7e3e030 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#11 0xb7e3f910 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0 
#12 0xb7e3e030 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#13 0xb7e3f910 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0 
#14 0xb7dc587a in ?? () from /usr/lib/libpython2.6.so.1.0                
#15 0xb7d9598c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0     
#16 0xb7da67a8 in ?? () from /usr/lib/libpython2.6.so.1.0                
#17 0xb7d9598c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0     
#18 0xb7da7446 in ?? () from /usr/lib/libpython2.6.so.1.0                
#19 0xb7d9598c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0     
#20 0xb7e3b618 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#21 0xb7e3f910 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0 
#22 0xb7e3fa73 in PyEval_EvalCode () from /usr/lib/libpython2.6.so.1.0   
#23 0xb7e60544 in PyRun_FileExFlags () from /usr/lib/libpython2.6.so.1.0 
#24 0xb7e608a4 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.6.so.1.0
#25 0xaa4f385c in PythonUI::execScript (script={static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xa9d581d8 "\f7X\t�'S\t\230�����S\t�B���\202թ\230���*vԷ�\207��"}}) at gui/py/PythonUI.cpp:46                                
#26 0xaa4f4e6a in PythonUI::pythonSession () at gui/py/PythonUI.cpp:102         
#27 0xaa67e8d1 in boost::detail::function::void_function_invoker0<void (*)(), void>::invoke (function_ptr=@0xa9d58300) at /usr/include/boost/function/function_template.hpp:117                                                                 
#28 0xb7d4bfdc in boost::function0<void, std::allocator<boost::function_base> >::operator() () from /usr/lib/libboost_thread-gcc42-mt-1_34_1.so.1.34.1          
#29 0xb7d4bbf7 in ?? () from /usr/lib/libboost_thread-gcc42-mt-1_34_1.so.1.34.1 
#30 0xb7d574ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0       
#31 0xb6dda5ee in clone () from /lib/tls/i686/cmov/libc.so.6                    

Thread 2 (Thread 0xa81dcb90 (LWP 3873)):
#0  0xb7fda430 in __kernel_vsyscall ()  
#1  0xb6dd28d1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e91bd5 in ?? () from /usr/lib/libpython2.6.so.1.0    
#3  0xb7ddbaed in PyCFunction_Call () from /usr/lib/libpython2.6.so.1.0
#4  0xb7e3dbf0 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#5  0xb7e3f910 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0 
#6  0xb7dc587a in ?? () from /usr/lib/libpython2.6.so.1.0                
#7  0xb7d9598c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0     
#8  0xb7da67a8 in ?? () from /usr/lib/libpython2.6.so.1.0                
#9  0xb7d9598c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0     
#10 0xb7e37a34 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.6.so.1.0                                                                            
#11 0xb7e70684 in ?? () from /usr/lib/libpython2.6.so.1.0                       
#12 0xb7d574ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0       
#13 0xb6dda5ee in clone () from /lib/tls/i686/cmov/libc.so.6                    

Thread 1 (Thread 0xb43ff760 (LWP 3855)):
#0  0xb7fda430 in __kernel_vsyscall ()  
#1  0xb6d953eb in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2  0xb6d2f57b in ?? () from /lib/tls/i686/cmov/libc.so.6     
#3  0xb6d2f922 in system () from /lib/tls/i686/cmov/libc.so.6 
#4  0xb7d5f4fd in system () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x08146a24 in sigHandler (sig=11) at /home/kenny/yade-0.20-2/core/yade.cpp:85                                                                               
#6  <signal handler called>                                                     
#7  0x081ebe14 in ~ObjectPtrT (this=0x8247fd4) at /usr/include/log4cxx/helpers/objectptr.h:100                                                                  
#8  0xb6d24bb9 in exit () from /lib/tls/i686/cmov/libc.so.6                     
#9  0xb7b477fe in fgError () from /usr/lib/libglut.so.3                         
#10 0xb7b46319 in glutInit () from /usr/lib/libglut.so.3                        
#11 0xacdbc085 in OpenGLRenderingEngine::init (this=0x98e97b8) at pkg/common/RenderingEngine/OpenGLRenderingEngine/OpenGLRenderingEngine.cpp:69                 
#12 0xaa695d4e in YadeQtMainWindow::ensureRenderer (this=0x95299f8) at gui/qt3/YadeQtMainWindow.cpp:129                                                         
#13 0xaa68d13b in SimulationController (this=0x96f7228, parent=0x0) at gui/qt3/SimulationController.cpp:70                                                      
warning: (Internal error: pc 0xaa69f3c7 in read in psymtab, but not in symtab.) 

warning: (Internal error: pc 0xaa69f3c6 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0xaa69f3c6 in read in psymtab, but not in symtab.)

#14 0xaa69f3c7 in YadeQtMainWindow::createController (this=warning: (Internal error: pc 0xaa69f3c6 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0xaa69f366 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0xaa69f3c6 in read in psymtab, but not in symtab.)

0x95299f8) at gui/qt3/YadeQtMainWindow.hpp:63
#15 0xaa6980ba in YadeQtMainWindow::loadSimulation (this=0x95299f8, file={static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xbf9f50d4 "��\237\tP9C���\221\t$Z\232\t\fר\t�\031��\212o\t0\t\214\026�"}}) at gui/qt3/YadeQtMainWindow.cpp:105
#16 0xaa659803 in QtFileGenerator::timerEvent (this=0xa9416220) at gui/qt3/QtFileGenerator.cpp:198
#17 0xb7596544 in QObject::event () from /usr/lib/libqt-mt.so.3
#18 0xb75d06ec in QWidget::event () from /usr/lib/libqt-mt.so.3
#19 0xb75314f5 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#20 0xb75324ad in QApplication::notify () from /usr/lib/libqt-mt.so.3
#21 0xb7526d13 in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#22 0xb74dc147 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#23 0xb7549f00 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#24 0xb7549dc6 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#25 0xb7531b8f in QApplication::exec () from /usr/lib/libqt-mt.so.3
#26 0xaa67e39c in QtGUI::run (this=0x9320850, argc=1, argv=0xbf9f5af4) at gui/qt3/QtGUI.cpp:79
#27 0x0815019d in main (argc=1, argv=0xbf9f5af4) at /home/kenny/yade-0.20-2/core/yade.cpp:329
#0  0xb7fda430 in __kernel_vsyscall ()
段错误 //means Segment Fault in English 
-------------------------------------------------------------------------------------------
What does it mean and how to fix the error?
Thanks for any advise.

Regards,

Lin


Follow ups