Bug#245092: gksu: segfault with any program

Milan Zamazal Milan Zamazal <pdm@zamazal.org>, 245092@bugs.debian.org
Mon, 14 Feb 2005 15:52:17 +0100


>>>>> "GNS" == Gustavo Noronha Silva <kov@debian.org> writes:

    GNS> Would you mind building gksu with debugging symbols and running
    GNS> it on gdb to send me a backtrace? 

Here is the gdb output:

  Program received signal SIGSEGV, Segmentation fault.
  0xb7a60fd3 in strlen () from /lib/tls/libc.so.6
  (gdb) where
  #0  0xb7a60fd3 in strlen () from /lib/tls/libc.so.6
  #1  0xb7b5a78e in g_strdup () from /usr/lib/libglib-2.0.so.0
  #2  0xb7fd3179 in prepare_xauth (context=0x807fad8) at gksu-context.c:449
  #3  0xb7fd3685 in gksu_context_run (context=0x807fad8, error=0xbffff7c0)
      at gksu-context.c:633
  #4  0x0804bcf2 in main (argc=2, argv=0xbffff864) at gksu.c:946
  (gdb) f 2
  #2  0xb7fd3179 in prepare_xauth (context=0x807fad8) at gksu-context.c:449
  449       context->xauth = g_strdup (xauth);
  (gdb) p xauth
  $1 = '\0' <repeats 255 times>

Since the content of the `xauth' variable is strange, I looked at the
command that initializes it.  Indeed, there is no MIT-MAGIC-COOKIE-1 in
my /usr/X11R6/bin/xauth output, there's something like

  blackbird/unix:0  XDM-AUTHORIZATION-1  ...the_cookie_value...

there.

Regards,

Milan Zamazal

-- 
SomeProgrammersLikeWritingLikeThis.IDontThinkThisFormOfCommunicationIs\
AGoodIdea.IApologizeToAllWhoCantReadMyTextsWrittenInATraditionalStyle.