Subject: pkg/33362: Xorg 6.9.0 dies on amd64 whenever I attempt to create any window
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 04/25/2006 16:20:00
>Number:         33362
>Category:       pkg
>Synopsis:       Xorg 6.9.0 dies on amd64 whenever I attempt to create any window
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 25 16:20:00 +0000 2006
>Originator:     Blair Sadewitz
>Release:        3.99.18
NetBSD cat 3.99.18 NetBSD 3.99.18 (ZINGER) #0: Tue Apr 25 11:31:40 EDT 2006  root@cat:/usr/src/sys/arch/amd64/compile/ZINGER amd64 x86_64

This is the same bug report as I have submitted to the Xorg bugzilla here:


This has been discussed elsewhere:

My problem is the exact same thing.  I can display the root window, but cannot
open any new windows.  Any attempt to open a window results in this error:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x20
  Serial number of failed request:  35
  Current serial number in output stream:  43

  Xorg 6.8.2 from pkgsrc 2006-01-17 works fine; I'd like to be able to upgrade,
however!  I have tried in vain to resolve this issue.  Any help is appreciated,
and I will forward the fix(es) onto other interested parties.

NOTE: I can reproduce this bug while running the generic kernel.  I do not think this is a hardware/driver/configuration issue, as the server behaves as expected until I attempt to create a window.  Others have noted this behavior (see one citation of another's experience in my bugzilla entry)

Matthieu Herrb <> noted in an e-mail to me:

>I suspect that either the X server or the X libs are built with a bad
>configuration, that causes the X protocol packets to use the wrong size
>for CARD32 data.
>Because of it's 20 years of history, X defines CARD32 as 'unsigned >long' on 32 bit arches, and 'unsigned int' on 64 bits arches. If the >build accidentally uses unsigned long on amd64, bad things like what >you're seeing will happen.

Build Xorg on amd64 from pkgsrc-current, attempt to use it, i.e. use any program that calls X_CreateWindow.  The server will die a few seconds after startup because no window manager can be run.

None known.  Xorg 6.8.2 from pkgsrc 2006-01-17 works like a charm.  Right now I'm using that with X11_TYPE=native as a workaround, but it would be great if I could use 6.9.0, as I presume you're going to move to 7.0 or 7.1 someday, and using 6.8.2 will become a real PITA at some point.