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