From owner-freebsd-x11@FreeBSD.ORG Mon Dec 28 00:33:39 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8752C1065672; Mon, 28 Dec 2009 00:33:39 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id E1CD58FC08; Mon, 28 Dec 2009 00:33:38 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 19so3384247fgg.13 for ; Sun, 27 Dec 2009 16:33:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=221kFCrgACswWVTivEhd/A7YkRv8XkNx9h5BJZhZg9M=; b=sKpldYzgeVSaVXmcmUiXQNr4pgC2Kq28g0JLYQTO6E1I969GGx2MPo1/sHrkhJ1wUu YealiAHQLVLgV1mds0iwmh2ss4GXNQoOeljvT5OiuUYgiO20tKIZ9NkqWcb/Vve5KVvg 15f7De3/CgnENeEyIbSZ1CRI8nbBe3fb8WBkI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=YgsRZCJcNoUdrW+0Nw8CyUVL2Bc4Nn6hsE7mx6ia0AR6z5448dcBs2Af5n/y4VvysH Pgb/4lP71ecEUgzAIrRH86ju3Xv6JgGPbLYVw1VReR1sw+fuO3FEUIJpe4wqPjz2pMTb vjvzNXmCyjUexPkiLTEdyTcKI2yTSerTyg32g= MIME-Version: 1.0 Received: by 10.239.150.79 with SMTP id m15mr1577681hbb.32.1261960408486; Sun, 27 Dec 2009 16:33:28 -0800 (PST) In-Reply-To: <1261942898.2220.2976.camel@balrog.2hip.net> References: <1261934521.2220.2834.camel@balrog.2hip.net> <1261942898.2220.2976.camel@balrog.2hip.net> Date: Sun, 27 Dec 2009 22:33:28 -0200 Message-ID: From: "Carlos A. M. dos Santos" To: Robert Noland Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-x11@freebsd.org Subject: Re: x11perf -all leads to Xorg crash on 8-STABLE 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: Mon, 28 Dec 2009 00:33:39 -0000 On Sun, Dec 27, 2009 at 5:41 PM, Robert Noland wrote: > On Sun, 2009-12-27 at 15:41 -0200, Carlos A. M. dos Santos wrote: >> On Sun, Dec 27, 2009 at 3:22 PM, Robert Noland wro= te: >> > On Sun, 2009-12-27 at 15:17 -0200, Carlos A. M. dos Santos wrote: >> [...] >> >> I figured out that "x11perf -shmputxy10" triggers the crash. Mys firs= t >> >> guess was that something related to shared memory was causing the >> >> problem. However, running the X server with >> >> >> >> =A0 =A0 =A0truss /usr/local/bin/Xorg >& Xorg.truss.log >> >> >> >> shows that all shm* calls succeed. Anyway, I attempted to increase th= e >> >> available shared memory, using the values recommended by the Xine >> >> port: >> >> >> >> =A0 =A0 =A0sysctl kern.ipc.shmmax=3D67108864 >> >> =A0 =A0 =A0sysclt kern.ipc.shmall=3D32768 >> >> >> >> But it keeps crashing. >> > >> > Attaching gdb to X and getting a backtrace and/or enabling drm debuggi= ng >> > is more likely to point to the issue. >> >> How do I enable drm debugging? > > sysctl hw.dri.0.debug=3D1 Ah, it's a kernel option. I thought it was something to put in my xorg.conf= . Here is the backtrace: (gdb) run Starting program: /usr/local/bin/Xorg [New LWP 100136] [New Thread 801e041c0 (LWP 100136)] X.Org X Server 1.6.1 Release Date: 2009-4-14 X Protocol Version 11, Revision 0 Build Operating System: FreeBSD 8.0-STABLE amd64 Current Operating System: FreeBSD avatar 8.0-STABLE FreeBSD 8.0-STABLE #3: Wed Dec 23 14:39:00 BRST 2009 root@avatar:/usr/obj/usr/src/sys/Compaq_nx6320 amd64 Build Date: 27 December 2009 10:05:04PM Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (=3D=3D) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Sun Dec 27 22:28:57 2009 (=3D=3D) Using config file: "/etc/X11/xorg.conf" Setting master The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Type "ONE_LEVEL" has 1 levels, but has 2 symbols > Ignoring extra symbols Errors from xkbcomp are not fatal to the X server (EE) config/hal: couldn't initialise context: (null) ((null)) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 801e041c0 (LWP 100136)] 0x000000080107c255 in pixman_blt_sse2 (src_bits=3D0x81344f000, dst_bits=3D0x804000000, src_stride=3D2400, dst_stride=3D4096, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y=3D576, dst_x=3D3, dst_y= =3D3, width=3D10, height=3D9) at pixman-sse2.c:5330 5330 *(uint32_t *)d =3D *(uint32_t *)s; (gdb) where #0 0x000000080107c255 in pixman_blt_sse2 (src_bits=3D0x81344f000, dst_bits=3D0x804000000, src_stride=3D2400, dst_stride=3D4096, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y=3D576= , dst_x=3D3, dst_y=3D3, width=3D10, height=3D9) at pixman-sse2.c:5330 #1 0x000000080107c88d in sse2_blt (imp=3D0x801f42e00, src_bits=3D0x81344f000, dst_bits=3D0x804000000, src_stride=3D600, dst_stride=3D1024, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y=3D576= , dst_x=3D3, dst_y=3D3, width=3D10, height=3D10) at pixman-sse2.c:5729 #2 0x0000000800fa4611 in _pixman_implementation_blt (imp=3D0x801f42e00, src_bits=3D0x81344f000, dst_bits=3D0x804000000, src_stride=3D600, dst_stride=3D1024, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y=3D576, dst_x=3D3, dst_y=3D3, width=3D10, height=3D10) at pixman-implementation.c:250 #3 0x0000000800fc2a91 in pixman_blt (src_bits=3D0x81344f000, dst_bits=3D0x804000000, src_stride=3D600, dst_stride=3D1024, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y=3D576, dst_x=3D3, dst_y= =3D3, width=3D10, height=3D10) at pixman.c:236 #4 0x0000000802cd94fd in fbCopyNtoN (pSrcDrawable=3D0x801ffad40, pDstDrawable=3D0x801f27d00, pGC=3D0x813643440, pbox=3D0x7fffffffe580, nbox=3D0, dx=3D573, dy=3D573, reverse=3D0, upsidedown=3D0, bitplane=3D0, closure=3D0x0) at fbcopy.c:64 #5 0x0000000802df289c in exaCopyNtoN (pSrcDrawable=3D0x801ffad40, pDstDrawable=3D0x801f27d00, pGC=3D0x813643440, pbox=3D0x7fffffffe580, nbox=3D1, dx=3D573, dy=3D573, reverse=3D0, upsidedown=3D0, bitplane=3D0, closure=3D0x0) at exa_accel.c:520 #6 0x0000000802cda3b5 in fbCopyRegion (pSrcDrawable=3D0x801ffad40, pDstDrawable=3D0x801f27d00, pGC=3D0x813643440, pDstRegion=3D0x7fffffffe580, dx=3D573, dy=3D573, copyProc=3D0x802df2150 , bitPlane=3D0, closure=3D0x0) at fbcopy.c:396 #7 0x0000000802cda97d in fbDoCopy (pSrcDrawable=3D0x801ffad40, pDstDrawable=3D0x801f27d00, pGC=3D0x813643440, xIn=3D576, yIn=3D576, widthSrc=3D10, heightSrc=3D10, xOut=3D3, yOut=3D3, copyProc=3D0x802df2150 , bitPlane=3D0, closure=3D0x0) at fbcopy.c:596 #8 0x0000000802df3230 in exaCopyArea (pSrcDrawable=3D0x801ffad40, pDstDrawable=3D0x801f27d00, pGC=3D0x813643440, srcx=3D576, srcy=3D576, width=3D10, height=3D10, dstx=3D0, dsty=3D0) at exa_accel.c= :547 #9 0x00000000005a09b1 in damageCopyArea (pSrc=3D0x801ffad40, pDst=3D0x801f27d00, pGC=3D0x813643440, srcx=3D576, srcy=3D576, width=3D10, height=3D10, dstx=3D0, dsty=3D0) at damage.c:949 #10 0x000000000055f863 in doShmPutImage (dst=3D0x801f27d00, pGC=3D0x813643440, depth=3D24, format=3D1, w=3D600, h=3D600, sx=3D576, sy=3D576, sw=3D10, sh=3D10, dx=3D0, dy=3D0, data=3D0x81344f000 "") at s= hm.c:509 #11 0x0000000000561359 in ProcShmPutImage (client=3D0x801e1e680) at shm.c:8= 65 #12 0x00000000005624fc in ProcShmDispatch (client=3D0x801e1e680) at shm.c:1= 119 #13 0x0000000000448ef8 in Dispatch () at dispatch.c:437 #14 0x000000000042d13c in main (argc=3D1, argv=3D0x7fffffffe988, envp=3D0x7fffffffe998) at main.c:397