[Evolution-hackers] stacktraces, debug: How to link evolution with debug version of glib, gtk on ubuntu karmic

2009-12-24 Thread Thomas Mittelstaedt
I try to get glib debug information for the glib libraries in backtraces
on ubuntu karmic. Even though I installed the debug packages, gdb does
not pick up the non-stripped library:

lrwxrwxrwx 1 root root 23 2009-12-24 20:00 /lib/libglib-2.0.so.0 -
libglib-2.0.so.0.2200.3
-rw-r--r-- 1 root root 743912 2009-12-03
15:00 /lib/libglib-2.0.so.0.2200.3
-rw-r--r-- 1 root root 1159711 2009-12-03
15:00 /usr/lib/debug/lib/libglib-2.0.so.0.2200.3

show debug-file-directory
The directory where separate debug symbols are searched for is
/usr/lib/debug/.

I tried to set the symlink to point to the one in /usr/lib/debug, but
that did not work. Do I have to build glib myself and install it in the
same prefix as evolution?
Thanks for help!

-- 
thomas


___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] stacktraces, debug: How to link evolution with debug version of glib, gtk on ubuntu karmic

2009-12-24 Thread Tobias Mueller
Heya :)

On 24.12.2009 20:43, Thomas Mittelstaedt wrote:
 I try to get glib debug information for the glib libraries in backtraces
 on ubuntu karmic. Even though I installed the debug packages, gdb does
 not pick up the non-stripped library:
 
Sounds like a bug to me.
How do you know it doesn't pick the debug symbols up though?

 Do I have to build glib myself and install it in the
 same prefix as evolution?
Doesn't really matter where you install it, as long as the non-stripped
binaries get pulled. Thus, you need to tell the linker to use the new
library, i.e. with LD_LIBRARY_PATH or LD_PRELOAD.

HTH,
  Tobi



signature.asc
Description: OpenPGP digital signature
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] stacktraces, debug: How to link evolution with debug version of glib, gtk on ubuntu karmic

2009-12-24 Thread Thomas Mittelstaedt
Well,

In the case of libglib, I helped myself with the following:

(gdb) inf shared libglib
FromTo  Syms Read   Shared Object Library
0x055c8040  0x05628d78  Yes (*) /lib/libglib-2.0.so.0
(*): Shared library is missing debugging information.

(gdb) add-symbol-file /usr/lib/debug/lib/libglib-2.0.so.0.2200.3
0x055c8040 -readnow

To do this for all libraries loaded, is a little cumbersome, though.
I am using gdb 7.

Am Donnerstag, den 24.12.2009, 20:43 +0100 schrieb Thomas Mittelstaedt:
 I try to get glib debug information for the glib libraries in backtraces
 on ubuntu karmic. Even though I installed the debug packages, gdb does
 not pick up the non-stripped library:
 ...
 I tried to set the symlink to point to the one in /usr/lib/debug, but
 that did not work. Do I have to build glib myself and install it in the
 same prefix as evolution?
 Thanks for help!
 

-- 
thomas


___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] stacktraces, debug: How to link evolution with debug version of glib, gtk on ubuntu karmic

2009-12-24 Thread Thomas Mittelstaedt
Am Freitag, den 25.12.2009, 01:49 +0100 schrieb Tobias Mueller:
 Heya :)
 
 On 24.12.2009 20:43, Thomas Mittelstaedt wrote:
  I try to get glib debug information for the glib libraries in backtraces
  on ubuntu karmic. Even though I installed the debug packages, gdb does
  not pick up the non-stripped library:
  
 Sounds like a bug to me.
 How do you know it doesn't pick the debug symbols up though?
 
  Do I have to build glib myself and install it in the
  same prefix as evolution?
 Doesn't really matter where you install it, as long as the non-stripped
 binaries get pulled. Thus, you need to tell the linker to use the new
 library, i.e. with LD_LIBRARY_PATH or LD_PRELOAD.

Well, do you mean compile-time or run-time. I just tried runtime, i.e.
I did a 
set env LD_LIBRARY_PATH=/usr/lib/debug/lib:... in my .gdbinit.

Now, gdb tells me
FromTo  Syms Read   Shared Object Library
0x055c8040  0x05628d78   No  /lib/libglib-2.0.so.0

without the star which would indicate that no debugging symbols were
found. So, gdb found something, but when I did a bt, there were still
those question marks for libglib. Additionally the program segfaulted
shortly after.


-- 
thomas


___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers