[maemo-developers] how to get crash stack trace in Maemo 2.2 (Nokia 770)
From: Eero Tamminen eero.tamminen at nokia.comDate: Tue Aug 31 18:37:13 EEST 2010
- Previous message: how to get crash stack trace in Maemo 2.2 (Nokia 770)
- Next message: how to get crash stack trace in Maemo 2.2 (Nokia 770)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: how to get crash stack trace in Maemo 2.2 (Nokia 770)
- Next message: how to get crash stack trace in Maemo 2.2 (Nokia 770)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]