Bug#245092: gksu: segfault with any program

Gustavo Noronha Silva Gustavo Noronha Silva <kov@debian.org>, 245092@bugs.debian.org
Mon, 14 Feb 2005 14:44:05 -0200


Em Seg, 2005-02-14 =C3=A0s 15:52 +0100, Milan Zamazal escreveu:
> Here is the gdb output:
>=20
>   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=3D0x807fad8) at gksu-context.c=
:449
>   #3  0xb7fd3685 in gksu_context_run (context=3D0x807fad8, error=3D0xbfff=
f7c0)
>       at gksu-context.c:633
>   #4  0x0804bcf2 in main (argc=3D2, argv=3D0xbffff864) at gksu.c:946
>   (gdb) f 2
>   #2  0xb7fd3179 in prepare_xauth (context=3D0x807fad8) at gksu-context.c=
:449
>   449       context->xauth =3D g_strdup (xauth);
>   (gdb) p xauth
>   $1 =3D '\0' <repeats 255 times>

hmmm...

> 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
>=20
>   blackbird/unix:0  XDM-AUTHORIZATION-1  ...the_cookie_value...

indeed... what do you use? simple xdm? xdm over XDMCP? I'll have to
understand the cookie problem a bit deeper, it seems.

Thanks!

--=20
  kov@debian.org: Gustavo Noronha <http://couve.no-ip.org/~kov/>
 Debian: <http://www.debian.org/>  *  <http://www.debian-br.org/>