Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2006 14:30:19 +0700
From:      "Angka H. K." <harikurniawan@gmail.com>
To:        "Eric Anholt" <eric@anholt.net>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: XORG i915 &.0 current
Message-ID:  <4c40c4e70607070030qfe2a60j532878f5c9011192@mail.gmail.com>
In-Reply-To: <1151971776.10945.4.camel@vonnegut>
References:  <4c40c4e70606252121w3193d22k2e0703134c84bf61@mail.gmail.com> <1151314880.1082.7.camel@vonnegut> <4c40c4e70606281957ta84424v2d95873b7fe2887f@mail.gmail.com> <1151578835.10194.5.camel@vonnegut> <4c40c4e70607022337u46a75cc5t65720ae3596d1ee1@mail.gmail.com> <1151971776.10945.4.camel@vonnegut>

next in thread | previous in thread | raw e-mail | index | archive | help
I am trying to track down a CloseDownExtension process and stuck at
glxscreen.c.
I need to know where the screenInfo is initialized ? I completely lost to
find it.

And I modified something at void __glXResetScreens(void) become like this:
----------------------------------------------------------------------------------------------------------------------------------

void __glXResetScreens(void)
{
  int i;
  int j;

  j = screenInfo.numScreens;

  for (i = 0; i < j; i++)
      if (__glXActiveScreens[i])
          __glXActiveScreens[i]->destroy(__glXActiveScreens[i]);

    xfree(__glXActiveScreens);
    xfree(__glXHyperpipeFuncs);
    xfree(__glXSwapBarrierFuncs);
    __glXNumHyperpipeFuncs = 0;
    __glXNumSwapBarrierFuncs = 0;
    __glXHyperpipeFuncs = NULL;
    __glXSwapBarrierFuncs = NULL;
    __glXActiveScreens = NULL;
}
----------------------------------------------------------------------------------------------------------------------------------

My goal was to see the value of screenInfo.numScreens on gdb. But it always
reset the mechine everytime I press Ctrl+Alt+BackSpace and left me nothing.

I use only one mechine so I redirect the output to a file with ">& file".

Regards,
On 7/4/06, Eric Anholt <eric@anholt.net> wrote:
>
> On Mon, 2006-07-03 at 13:37 +0700, Angka H. K. wrote:
> > Dear all,
> >
> > Attach is my output during a debugging.
> >
> > I see a dlclose called inside  glXDRIscreenDestroy with paramaeter
> screen.
> > It's a very short function and no comment at all. I don't know what make
> is
> > wrong, maybe the pointer poited by screen is mis poiting the screen
> address.
> >
> > Please help me
>
> That's exactly the place I see the crash as well.  If I run X under GDB,
> it totally loses its mind here, and even the continue command gets me
> stuck at the same point.  If I let X crash and coredump (add
> NoTrapSignals to the ServerFlags, and run X as root), the backtrace is a
> bit confused but looks like the same place.
>
> A trivial program (linked against libGL, however) that dlopens
> i915_dri.so and dlcloses it appears to work.
>
> --
> Eric Anholt                             anholt@FreeBSD.org
> eric@anholt.net                         eric.anholt@intel.com
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (FreeBSD)
>
> iD8DBQBEqbHAHUdvYGzw6vcRAtnDAJ9MJ24KjTRXKNcJ7SbNRaUul1VNRACgmIqZ
> 6xScFz4lGvHkquzNrTDVRnM=
> =eHDx
> -----END PGP SIGNATURE-----
>
>
>



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