Re: X server bug?
Michael Richardson <[email protected]> Thu, 04 Dec 2025 17:22:17 -0500
| Newsgroups | gmane.os.netbsd.devel.x11 |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain Mouse <[email protected]> wrote: > I've just run into what I consider to be a bug in an X server. I first > saw with a relatively recent Ubuntu on a work machine, which prompted > me to look for it elsewhere. > I do not see it with the MIT server I use on 1.4T. I do not see it > with the server built from 5.2's /usr/xsrc. But I *do* see it with the > server built from 9.1's /usr/xsrc. > The bug is that, when a client issues a ChangeGC request trying to set > a clip-mask pixmap with 0x2000001a as the pixmap ID (not a valid ID; X > resource IDs never have any of the top three bits set), the invalid ID > value in the resulting error is 0 instead of 0x2000001a. (This Like it has masked off those bits early, and then can't reply with the broken resource ID. But, I guess if that was the case, it would say 0x1a... so.. I'm curious how you ran into this... some application that doesn't know the limits of resource IDs? I had to add #include <stdlib.h>, and I had to build with -lX11: cc test-err-1.c -o test-err-1 -lX11 (I had done: "make test-err-1" at first) obiwan-[~/src](3.3.8) mcr 10315 %./test-err-1 X Error of failed request: BadPixmap (invalid Pixmap parameter) Major opcode of failed request: 56 (X_ChangeGC) Resource id in failed request: 0x0 Serial number of failed request: 7 Current serial number in output stream: 9 version number: 11.0 vendor string: The X.Org Foundation vendor release number: 12101007 X.Org version: 21.1.7 This is devuan Linux, so maybe redudant with your report of Ubuntu. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmkyCZkACgkQgItw+93Q 3WXYRwgAvGoGQKk68l5nbQPYiQqSzEe2Huw5EnUsr7QPUkKxX2rQ+voeSwZ8rNzS RAe07VPcBhRIzIf7vNLnC3v8k11Y3YLLZC/EaMlnvVOhC0ozyNbFBntpXJirj8eR YxOtoU2N9LQrwe2DJVPyk53PA3ysC+HCFtjuatiDuV9xA4XpTgMIOP4N59taE0y6 Li2QRoGkBL3EK7U49+AOa1s5Y1dHsvys0O1b2lpfNtrxpfOhLgisqcYO7yALRBFc vDL/NUgeMrxdf7Vwos0vFDjhUJGUhqr9cwtMavkTwxbFfpfiLHkjVT3DqAu8M9mX +vIfcOB92twaSMVTv9utBiwKr9GE4Q== =IEVt -----END PGP SIGNATURE----- --=-=-=--