Skip site navigation (1)Skip section navigation (2)
Date:      26 Mar 2003 00:23:14 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        "Mezz bsdforums.org" <reigncracks@hotmail.com>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: Patch to fix hang in mplayer-skins
Message-ID:  <1048656193.342.28.camel@shumai.marcuscom.com>
In-Reply-To: <F44BU98l7jOxJ5pqn9i00008225@hotmail.com>
References:  <F44BU98l7jOxJ5pqn9i00008225@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-X97mDJJXcaqQiX+HHZXd
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2003-03-26 at 00:14, Mezz bsdforums.org wrote:
> >On Tue, 2003-03-25 at 23:27, Mezz bsdforums.org wrote:
> > > >Can someone test the attached patch for the mplayer-skins choice
> > > >script?  It fixes the hang when building (at least for me) inside
> > > >gnome-terminal on -CURRENT.  Thanks.
> > >
> > > It looks a lot better, but sometime it will hang. I don't know, it's=20
> >pretty
> > > random. First time, when I patch this choice.diff, then it just works=
=20
> >and
> > > looks perfect (better than without patch). Later, I try do it again a=
nd=20
> >it
> > > just hangs. Later, it will just work fine. It's pretty weird.
> > >
> > > Right now, I am rebulding vte with the -g for debug, after rebuild=20
> >finish
> > > and I will do it to gnome-terminal with -g too. Then, open=20
> >gnome-terminal
> > > with gdb and go to multimedia/mplayer-skins. That's my plan right now=
.
> > > Hopeful, it will come out something useful.
> >
> >Be careful.  You can't debug gnome-terminal from withing
> >gnome-terminal.  It's best to launch gdb from xterm.
>=20
> Yeah, I am aware of it.. Thanks for info.. :-) Anyway, I have added=20
> --enable-debugging and -g for vte.. -g for gnome-terminal, but gdb keeps =
say=20
> no debug found. I decided to do "gdb `which gnome-terminal`" and it works=
. I=20
> went to mplayer-skins and do the "make".. Whoa, I get the error msg, it j=
ust=20
> keep loop like crazy!
>=20
> ** (gnome-terminal:63203): WARNING **: Error reading from child: Invalid=20
> argument.
>=20
> So, I did the kill -HUP <pid> and tried to do bt, but I don't get anythin=
g=20
> that much.
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
> (gdb) bt
> #0  0x28c5d903 in write () from /usr/lib/libc.so.5
> #1  0x288c9a6f in _write () from /usr/lib/libc_r.so.5
> #2  0x288c9bb5 in write () from /usr/lib/libc_r.so.5
> #3  0x28120a00 in _X11TransSocketWrite () from /usr/X11R6/lib/libX11.so.6
> #4  0x2812161f in _X11TransWrite () from /usr/X11R6/lib/libX11.so.6
> #5  0x28100fc4 in _XFlushInt () from /usr/X11R6/lib/libX11.so.6
> #6  0x281024c9 in _XReply () from /usr/X11R6/lib/libX11.so.6
> #7  0x280fdb92 in XSync () from /usr/X11R6/lib/libX11.so.6
> #8  0x286924a5 in gdk_flush () from /usr/X11R6/lib/libgdk-x11-2.0.so.200
> #9  0x28681a88 in gdk_window_process_all_updates ()
>    from /usr/X11R6/lib/libgdk-x11-2.0.so.200
> #10 0x28681ad5 in gdk_window_process_all_updates ()
>    from /usr/X11R6/lib/libgdk-x11-2.0.so.200
> #11 0x289bdc1a in g_idle_dispatch () from /usr/local/lib/libglib-2.0.so.2=
00
> #12 0x289bb1cc in g_main_dispatch () from /usr/local/lib/libglib-2.0.so.2=
00
> #13 0x289bbfda in g_main_context_dispatch ()
>    from /usr/local/lib/libglib-2.0.so.200
> #14 0x289bc39d in g_main_context_iterate ()
>    from /usr/local/lib/libglib-2.0.so.200
> #15 0x289bcb41 in g_main_loop_run () from /usr/local/lib/libglib-2.0.so.2=
00
> #16 0x284d5a27 in gtk_main () from /usr/X11R6/lib/libgtk-x11-2.0.so.200
> #17 0x0805e9b2 in main ()
> #18 0x080576e5 in _start ()
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
>=20
> I would like to learn how to do the better way to debug? Any good website=
 or=20
> your advice? :-)

You need to first build glib20, gtk20, XFree86, and libc with debugging
symbols (so to make this trace useful).  Though you could probably get
away with just recompiling libc and libc_r.

I myself don't know of any good gdb tutorial websites.  There's a good
kernel debugging section of the handbook that may still exist, though.

Joe

>=20
> Cheers,
> Mezz
>=20
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. =20
> http://join.msn.com/?page=3Dfeatures/virus
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-gnome" in the body of the message
--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-X97mDJJXcaqQiX+HHZXd
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQA+gTlBb2iPiv4Uz4cRArZ1AJ0ez4udnF8Liyct5kQr3thRggEUmgCeI6Mh
OMWDqhKrNtIPIAnFNA25uts=
=969b
-----END PGP SIGNATURE-----

--=-X97mDJJXcaqQiX+HHZXd--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1048656193.342.28.camel>