NOTE: Motion 3.2.12 has been released

Get core dumps from motion

* Set core dump path

echo "kernel/core_pattern = /tmp/core.%e.%p" >> /etc/sysctl.conf  
sysctl -p 

or

echo "/tmp/core.%e.%p" > /proc/sys/kernel/core_pattern 

* Enable core dump

ulimit -c unlimited

* Compile motion

./configure --without-optimizecpu --with-developer-flags
sed -ie 's/-O2//g' Makefile
make 

* run motion

./motion -n -d 9

and on segfault you will get a core dump in /tmp as in example /tmp/core.motion.24915

* Run gdb

gdb ./motion /tmp/core.motion.24915

bt full

frame 1

-- AngelCarpintero - 23 Jun 2008

Topic revision: r2 - 26 Oct 2008 - 01:14:50 - AngelCarpintero
 
Motion - Core Dump In Motion
Copyright © 1999-2010 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.