[maemo-developers] Debugging the browser

From: Eero Tamminen eero.tamminen at nokia.com
Date: Wed Oct 3 17:37:09 EEST 2007
Hi,

ext Akos Putz wrote:
> Sorry, forwarding to the list also.
> On 10/3/07, Eero Tamminen <eero.tamminen at nokia.com> wrote:
>>> (no debugging symbols found)
>> You need debug symbols for everything, otherwise Gdb shows wrong
>> function names (without information about static functions, it shows
>> name of the "nearest" exported function) and cannot backtrace
>> stacktraces.
>>
>>
>>> WARNING: osso_application_set_exit_cb() is obsolete and a no-op.
>>> [New Thread 32769 (LWP 2621)]
>>> [New Thread 16386 (LWP 2622)]
>>> [Thread 16386 (LWP 2622) exited]
>>> Cannot find thread 16386: invalid thread handle
>> Especially C/thread library debug symbols...
> 
> I have ATM the following dbg packages installed:
> ii  libc6-dbg                                      2.3.5cs2005q3.2-5.osso12
> ii  libosso1-dbg                                   1.20-1
> 
> Haven't really bothered installing something else, because I'm
> interested mainly in debugging my own code, which has debugging infos
> anyway. What else do you suggest?

Debug symbols for anything through which your stacktraces go
and through which you would want/need to debug.  You can
use maemo-debug metapackage for installing the symbols for
base libraries or the debug-dep-install script from maemo-debug-scripts
package to install symbols for given binary and it's dependencies.


>>> (gdb) q
>>> The program is running.  Exit anyway? (y or n) y
>>>
>>> ...and at this point, gdb freezes.
>> If you try to strace the frozen Gdb process, what that reports?
> 
> Well, not too much, it's waiting (the SIGINTs are ctrl+c keypresses from me)
> 
> wait4(2345, NULL, 0, NULL)              = ? ERESTARTSYS (To be restarted)
> --- SIGINT (Interrupt) @ 0 (0) ---
> rt_sigaction(SIGINT, {0xcdb14, [INT], SA_RESTART|0x4000000}, {0xcdb14,
> [INT], SA_RESTART|0x4000000}, 8) = 0
> sigreturn()                             = ? (mask now [])
> wait4(2345, NULL, 0, NULL)              = ? ERESTARTSYS (To be restarted)

Doesn't say anything for me.

Is the problem something which you cannot debug on x86?



	- Eero

More information about the maemo-developers mailing list