On Tuesday 31 August 2010 09:07:01 Han wrote:
> Hi,
> I am using Maemo 2.2 to develop some programs for Nokia 770. Things
> run pretty well except sometime my program would crash for unknown
> reason. Normally I start the program from x terminal, and  it would
> crash with only message "Killed".
> 
> I am wondering if possible to get a stack trace when the program
> crashes?  so that I can find out where the crash happened in the code.

This looks like the executable was killed by the OS. This can happen on Linux 
because of memory exhaustion (Out Of Memory killer: see e.g. http://linux-
mm.org/OOM_Killer for more information on that). I'd advise monitoring memory 
consumption of your program. 

You could also use strace to check what's happening in your program and what 
signal is received which causes termination.

The OOM Killer uses SIGTERM, which your program can intercept if its memory 
consumption is not a bug. 


-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure :      http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to