Motion - Core Dump In Motion
You are here: Foswiki>Motion Web>CoreDumpInMotion (26 Oct 2008, AngelCarpintero)Edit Attach

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, AngelCarpintero
Copyright © 1999-2024 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.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.