Bug#528499: Help with debugging with gdb, anyone?

Paul Menzel pm.debian at googlemail.com
Sun Jun 7 09:59:52 UTC 2009


Am Sonntag, den 07.06.2009, 09:23 +0200 schrieb Josselin Mouette:
> Le vendredi 05 juin 2009 à 22:35 +0200, Paul Menzel a écrit :
> > Jens tried to help me debugging it, but no useful output could be
> > produced. He suggests that maybe some symbols are missing. But I do have
> > gnome-dbg installed. (Take a look at the upstream report for detailed
> > information.)
> > 
> > Do you know how we can debug this further with Debian?
> 
> You need to rebuild the package with debugging symbols. See
> http://wiki.debian.org/HowToGetABacktrace

Thanks for your reply. I did as you suggested, but the break has still
no effect.

Also the gdb output in respect to load message did not change. Is that
normal or did I make a mistake.

Do you have an idea, how I can find out, what debugging symbols from
what package are needed.

This error (with a link to this one) was also reported in Arch Linux
with a log of strace attached [1].

Could it be that the xrandr call is the culprit?

read(3, 
** (gnome-settings-daemon:17846): WARNING **: Unable to start xrandr
manager: unhandled X error while getting the range of screen sizes
"1", 1)                         = 1

At least running xrandr by itself gives no error.

$ xrandr
 SZ:    Pixels          Physical       Refresh
 0    800 x 600    ( 271mm x 203mm )   60  
 1    160 x 120    (  54mm x  41mm )   60  
 2    320 x 240    ( 108mm x  81mm )   60  
 3    640 x 480    ( 217mm x 163mm )   60  
*4   1024 x 768    ( 347mm x 260mm )  *60  
 5   1280 x 1024   ( 433mm x 347mm )   60  
Current rotation - normal
Current reflection - none
Rotations possible - normal 
Reflections possible - none

I rebuilt libgnomekbd3 and installed libxrandr2-dbg to no avail.

Searching for this error message returned the translations of this
string in the package libgnome-desktop-2-11. I rebuild this package with
debugging symbols.

$ LANG=C gdb gnome-settings-daemon
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) break gdk_x_error
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (gdk_x_error) pending.
(gdb) run --sync
Starting program: /usr/bin/gnome-settings-daemon --sync
[Thread debugging using libthread_db enabled]
[New Thread 0xf7220710 (LWP 30095)]

** (gnome-settings-daemon:30098): WARNING **: Unable to start xrandr manager: unhandled X error while getting the range of screen sizes

Program exited normally.
(gdb) The program 'gnome-settings-daemon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'XI_BadClass (invalid Class parameter)'.
  (Details: serial 220 error_code 133 request_code 131 minor_code 6)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Any help with how to further debug this is greatly appreciated.


Bests,

Paul


[1] http://bugs.archlinux.org/task/14732?dev=847
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20090607/dfad605c/attachment-0001.pgp>


More information about the pkg-gnome-maintainers mailing list