NetBSD Problem Report #42125

From www@NetBSD.org  Fri Sep 25 07:58:49 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 889A963B8DF
	for <gnats-bugs@gnats.netbsd.org>; Fri, 25 Sep 2009 07:58:49 +0000 (UTC)
Message-Id: <20090925075848.B38E063B850@www.NetBSD.org>
Date: Fri, 25 Sep 2009 07:58:48 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: libXfixes broken on Solaris/Sparc
X-Send-Pr-Version: www-1.0

>Number:         42125
>Category:       pkg
>Synopsis:       libXfixes broken on Solaris/Sparc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 25 08:00:01 +0000 2009
>Last-Modified:  Wed Dec 02 22:40:02 +0000 2009
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS spare280 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Fire-280R

>Description:
I compile pkgsrc on Solaris 10 x86 and Sparc. I use modular X on both platforms. I just found out, that on Sparc, all applications that use Gdk, crash with an error like this:

The program 'gvim' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 46 error_code 2 request_code 151 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Actually, the display runs on a x86 X Server (native Solaris), we don't have any Sparcs with attached monitor any more. Some googling hints at problems in libXfixes. The problem is present in pkgsrc binaries from January 2009, which use a different version of Gtk/Gdk, but the same version of libXfixes.

The source of the libXfixes mess seems to be this post

http://lists.freedesktop.org/archives/xorg/2006-April/014496.html

See e.g.

http://bugs.archlinux.org/task/4535

for reference.

Has this never been thoroughly fixed? The current version 4.0.3 of libXfixes seems to be from 2006.
>How-To-Repeat:

>Fix:
Downgrade to an older version of libXfixes?

>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42125: libXfixes broken on Solaris/Sparc
Date: Fri, 25 Sep 2009 05:41:57 -0500 (CDT)

 Also see https://bugs.freedesktop.org/show_bug.cgi?id=6786

 But the bottom doesn't say what was fixed.

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Tue, 01 Dec 2009 13:26:48 +0000
Responsible-Changed-Why:
Problem on Solaris.


From: Tim Zingelman <zingelman@gmail.com>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org, pkg-manager@netbsd.org, 
	pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org, asau@netbsd.org, 
	joern.clausen@uni-bielefeld.de
Subject: Re: pkg/42125 (libXfixes broken on Solaris/Sparc)
Date: Tue, 1 Dec 2009 13:48:27 -0600

 The way I read this, it is a bug in the server, not the client.

 I use modular X clients on sparc (compiled with gcc34 in Dec '08) and
 display on the X server built into my OS X 10.5 laptop with no errors.

 Do you have any other X servers you could try?

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: zingelman@gmail.com
Cc: gnats-bugs@netbsd.org, solaris-pkg-people@netbsd.org,
 pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 asau@netbsd.org
Subject: Re: pkg/42125 (libXfixes broken on Solaris/Sparc)
Date: Wed, 02 Dec 2009 14:28:04 +0100

 > The way I read this, it is a bug in the server, not the client.

 Maybe, maybe not. It's the same X server (native Solaris 10/x86). x86 
 clients (same machine or redirected display) from pkgsrc work, sparc 
 clients (redirected display) from pkgsrc don't. Both pkgsrc builds use 
 identical parameters, i.e. both are built with modular X11.

 This is a diff of "ldd gvim" on both machines:

 --- ldd.sparc   Wed Dec  2 14:25:04 2009
 +++ ldd.x86     Wed Dec  2 14:25:12 2009
 @@ -48,6 +48,4 @@
          libdoor.so.1 =>  /lib/libdoor.so.1
          libuutil.so.1 =>         /lib/libuutil.so.1
          libgen.so.1 =>   /lib/libgen.so.1
 -       /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
 -       /usr/lib/cpu/sparcv9+vis2/libmlib.so.2
 -       /platform/SUNW,Sun-Fire-280R/lib/libmd_psr.so.1
 +       /usr/lib/libmlib/libmlib_sse2.so.2

 i.e. all the X11 libraries are absolutely identical.

 > Do you have any other X servers you could try?

 I could try Mac OS X as well, or Cygwin.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42125 (libXfixes broken on Solaris/Sparc)
Date: Wed, 2 Dec 2009 15:10:43 +0100

 On Wed, Dec 02, 2009 at 01:30:04PM +0000, Jörn Clausen wrote:
 >  > The way I read this, it is a bug in the server, not the client.
 >  
 >  Maybe, maybe not. It's the same X server (native Solaris 10/x86). x86 
 >  clients (same machine or redirected display) from pkgsrc work, sparc 
 >  clients (redirected display) from pkgsrc don't. Both pkgsrc builds use 
 >  identical parameters, i.e. both are built with modular X11.

 Can you try e.g. with Linux or NetBSD running the server? I wonder if
 there is an endian bug in the libs somewhere.

 Joerg

From: =?iso-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/42125 (libXfixes broken on Solaris/Sparc)
Date: Wed, 02 Dec 2009 23:35:06 +0100

 > Can you try e.g. with Linux or NetBSD running the server? I wonder if
 > there is an endian bug in the libs somewhere.

 I just tried from Mac OS X 10.6.2 (XQuartz 2.3.4 (xorg-server 1.4.2-apple45)) and NetBSD/amd64 5.0_RC2 (what???) with X.Org X Server 1.4.2. In both cases, applications started on the Sparc machine worked correctly. I had to tunnel X via ssh twice, I hope this didn't affect the test.

>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.