NetBSD Problem Report #47979

From martin@aprisoft.de  Mon Jul  1 07:42:10 2013
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 630C670D05
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  1 Jul 2013 07:42:10 +0000 (UTC)
Message-Id: <20130701074201.A0C97ED0E4D@emmas.aprisoft.de>
Date: Mon,  1 Jul 2013 09:42:01 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: cursor sprites do not display correctly
X-Send-Pr-Version: 3.95

>Number:         47979
>Category:       xsrc
>Synopsis:       cursor sprites do not display correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 01 07:45:00 +0000 2013
>Closed-Date:    Mon Jul 01 19:46:28 +0000 2013
>Last-Modified:  Mon Jul 01 19:50:00 +0000 2013
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.23
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 6.99.23 NetBSD 6.99.23 (WHOEVER) #76: Sun Jun 30 18:12:09 CEST 2013 martin@emmas.aprisoft.de:/usr/src/sys/arch/sparc64/compile/WHOEVER sparc64
Architecture: sparc64
Machine: sparc64
>Description:

I just updated my machine to -current (both base + pkgsrc) as of yesterday.
I am using xfce (in case it matters). When a window looses keyboard focus,
the mouse cursor display garbage. Here is a part of a screen photo (a 
screendump "fixes" the problem before grabbing the content, so I could not 
use that): http://www.netbsd.org/~martin/bogus_hair_cursor.jpg

The "bar code" hovering over the rxvt window should be the small hair cursor.
As soon as I move the pointer outside the window (so the cursor shape is 
reset) everything is fine again.

The only unusual settings I have in xorg.conf:

Section "Extensions"
       Option "DAMAGE" "disable"
       Option "Composite" "disable"
EndSection


I am using a radeonfb:

[    99.776] (II) Loading /usr/X11R7/lib/modules/drivers/radeon_drv.so
[    99.776] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    99.794] (II) RADEON(0): TOTO SAYS 0000000000100000
[    99.794] (II) RADEON(0): MMIO registers at 0x0000000000100000: size 64KB
[    99.794] (II) RADEON(0): PCI bus 0 card 2 func 0
[    99.804] (II) RADEON(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    99.804] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
[    99.804] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[    99.804] (==) RADEON(0): Default visual is TrueColor
[    99.807] (II) RADEON(0): VGAAccess option set to FALSE, VGA module load skipped
[    99.807] (==) RADEON(0): RGB weight 888
[    99.807] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
[    99.807] (--) RADEON(0): Chipset: "ATI Radeon VE/7000 QY (AGP/PCI)" (ChipID = 0x5159)
[    99.807] (--) RADEON(0): Linear framebuffer at 0x0000000008000000
[    99.807] (II) RADEON(0): PCI card detected
[    99.864] (II) RADEON(0): Attempting to read un-POSTed bios
[   100.103] (WW) RADEON(0): Not an x86 BIOS ROM image, BIOS data will not be used
[   100.111] drmOpenDevice: node name is /dev/dri/card0
[   100.121] drmOpenDevice: open result is -1, (Device not configured)
[   100.122] drmOpenDevice: open result is -1, (Device not configured)
[   100.122] drmOpenDevice: Open failed
[   100.122] [drm] failed to load kernel module "radeon"
[   100.122] (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.
[   100.122] (II) RADEON(0): Detected total video RAM=65536K, accessible=65536K (PCI BAR=131072K)
[   100.122] (--) RADEON(0): Mapped VideoRAM: 65536 kByte (64 bit DDR SDRAM)
[   100.122] (II) RADEON(0): Color tiling enabled by default
[   100.122] (II) Loading sub module "ddc"
[   100.122] (II) LoadModule: "ddc"
[   100.122] (II) Module "ddc" already built-in
[   100.122] (II) Loading sub module "i2c"
[   100.122] (II) LoadModule: "i2c"
[   100.122] (II) Module "i2c" already built-in
[   100.128] (WW) RADEON(0): Video BIOS not detected, using default clock settings!
[   100.490] (II) RADEON(0): Probed PLL values: xtal: 27.000000 Mhz, sclk: 299.076935 Mhz, mclk: 149.538467 Mhz
[   100.490] (II) RADEON(0): PLL parameters: rf=2700 rd=12 min=12500 max=35000; xclk=29908
[   100.534] (II) RADEON(0): Output DVI-0 has no monitor section
[   100.554] (II) RADEON(0): I2C bus "DVI-0" initialized.
[   100.554] (II) RADEON(0): Output VGA-0 has no monitor section
[   100.554] (II) RADEON(0): I2C bus "VGA-0" initialized.
[   100.554] (II) RADEON(0): Output S-video has no monitor section
[   100.554] (II) RADEON(0): Port0:
[   100.554]   XRANDR name: DVI-0
[   100.554]   Connector: DVI-I
[   100.554]   CRT2: INTERNAL_DAC2
[   100.555]   DFP1: INTERNAL_TMDS1
[   100.555]   DDC reg: 0x64
[   100.555] (II) RADEON(0): Port1:
[   100.555]   XRANDR name: VGA-0
[   100.555]   Connector: VGA
[   100.555]   CRT1: INTERNAL_DAC1
[   100.555]   DDC reg: 0x60
[   100.555] (II) RADEON(0): Port2:
[   100.555]   XRANDR name: S-video
[   100.555]   Connector: S-video
[   100.555]   TV1: INTERNAL_DAC2
[   100.555]   DDC reg: 0x0
[   100.555] (II) RADEON(0): I2C device "DVI-0:ddc2" registered at address 0xA0.
[   100.612] (II) RADEON(0): EDID for output DVI-0

>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/47979: cursor sprites do not display correctly
Date: Mon, 1 Jul 2013 09:46:11 +0200

 On Mon, Jul 01, 2013 at 07:45:00AM +0000, martin@NetBSD.org wrote:
 > Section "Extensions"
 >        Option "DAMAGE" "disable"
 >        Option "Composite" "disable"
 > EndSection

 Commenting those lines out does not make a difference.

 Martin

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: wiz@NetBSD.org
Subject: Re: xsrc/47979: cursor sprites do not display correctly
Date: Mon, 1 Jul 2013 15:57:58 +0200

 Downgrading xsrc and src/external/mit/xorg to -D20130623 fixes the problem.

 Martin

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: xsrc/47979: cursor sprites do not display correctly
Date: Mon, 1 Jul 2013 16:02:36 +0200

 On Mon, Jul 01, 2013 at 03:57:58PM +0200, Martin Husemann wrote:
 > Downgrading xsrc and src/external/mit/xorg to -D20130623 fixes the problem.

 Try reverting

 Module Name:    xsrc
 Committed By:   wiz
 Date:           Sun Jun 30 11:34:54 UTC 2013

 Modified Files:
         xsrc/external/mit/libXrandr/dist/src: XrrProvider.c

 Log Message:
 Reduce diff to upstream.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/libXrandr/dist/src/XrrProvider.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


 If that works, I can send an alternate patch (suggested by upstream,
 but I wanted to wait for integration there first).
  Thomas

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 01 Jul 2013 19:46:28 +0000
State-Changed-Why:
Fixed. Sorry for the breakage and thanks for testing!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47979 CVS commit: xsrc/external/mit/libXrandr/dist/src
Date: Mon, 1 Jul 2013 19:46:01 +0000

 Module Name:	xsrc
 Committed By:	wiz
 Date:		Mon Jul  1 19:46:01 UTC 2013

 Modified Files:
 	xsrc/external/mit/libXrandr/dist/src: XrrProvider.c

 Log Message:
 Apply suggested patch from Alan Coopersmith:

 XRRGetProviderInfo returned bad associated_capability list in 64-bit

 Unlike most of the values returned by this function, which are arrays
 of XIDs (long int), associated_capability is defined as an array of
 unsigned int.   _XRead32 reads 32-bit values from the wire protocol
 and writes them to the provided buffer as an array of long ints, even
 if that means expanding them from 32-bit to 64-bit.   Doing that for
 associated_capability resulted in a garbage value between each actual
 value, and overflowing the provided buffer into the space for the
 provider name (which is written later and would overwrite the overflowed
 data).

 Created xhiv libXrandr/XRRGetProviderInfo test case to test & confirm.

 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

 Fixes PR 47979, reported and fix tested by martin@


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/libXrandr/dist/src/XrrProvider.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.