From owner-freebsd-x11@FreeBSD.ORG Fri Jul 7 07:30:20 2006 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF1BF16A4E0 for ; Fri, 7 Jul 2006 07:30:20 +0000 (UTC) (envelope-from harikurniawan@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0258743D49 for ; Fri, 7 Jul 2006 07:30:19 +0000 (GMT) (envelope-from harikurniawan@gmail.com) Received: by nz-out-0102.google.com with SMTP id 40so73043nzk for ; Fri, 07 Jul 2006 00:30:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=J/VNCmhsorVjxfTq5+b4pBqYFDtHaLuoL/44LIFbAq/8Iu1IZ+a+OO3ie1+Xn1wCOeW0QdJ33ghYK9XBBUwAcPpzMCFIeZwbwAD9KuZhaOy/oPtqycKyqHW5tvZ5qCr9Fv716NJ3+Q7iC1YZOEeR0YS+IPAXKrBkgCXVtn57tXc= Received: by 10.65.192.4 with SMTP id u4mr1747455qbp; Fri, 07 Jul 2006 00:30:19 -0700 (PDT) Received: by 10.64.125.19 with HTTP; Fri, 7 Jul 2006 00:30:19 -0700 (PDT) Message-ID: <4c40c4e70607070030qfe2a60j532878f5c9011192@mail.gmail.com> Date: Fri, 7 Jul 2006 14:30:19 +0700 From: "Angka H. K." To: "Eric Anholt" In-Reply-To: <1151971776.10945.4.camel@vonnegut> MIME-Version: 1.0 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-x11@freebsd.org Subject: Re: XORG i915 &.0 current X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 07:30:20 -0000 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 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----- > > >