Hi,
ext Alexandre Fayolle wrote:
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.
And Valgrinding it on x86 to see what kind of memory leaks and
other issues it has.
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.
Kernel OOM killing doesn't use SIGTERM and isn't interceptable,
for a good reason.
- Eero
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers