[maemo-developers] how to get crash stack trace in Maemo 2.2 (Nokia 770)
From: Alexandre Fayolle alexandre.fayolle at logilab.frDate: Wed Sep 1 09:59:26 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 ]
On Wednesday 01 September 2010 07:00:25 Han wrote: > 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 Oh, I was not clear about this : I'm a linux coder, and I have not yet started coding on maemo but intend to do so soon (hence my subscribing to this list). Sorry for throwing you on a path harder than it seamed. OTOH, compiling strace should not be a problem as it is a very classic Unix tool, available in all the distributions for all the platforms. Maybe you can even grab a precompiled Debian package and install it. -- 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
- 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 ]