[maemo-developers] how to get crash stack trace in Maemo 2.2 (Nokia 770)
From: Han keepsimple at gmail.comDate: Wed Sep 1 08:00:25 EEST 2010
- Next message: how to get crash stack trace in Maemo 2.2 (Nokia 770)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Aug 31, 2010 at 12:40 AM, Alexandre Fayolle <alexandre.fayolle at logilab.fr> 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. > > You could also use strace to check what's happening in your program and what > signal is received which causes termination. Thanks. Looks like "strace" is not available in 770 Application Manager. Do folks compile their own to run on 770? Han > > 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 at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
- Next message: how to get crash stack trace in Maemo 2.2 (Nokia 770)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]