From owner-freebsd-x11@FreeBSD.ORG Sun Sep 18 00:57:32 2005 Return-Path: X-Original-To: x11@FreeBSD.org Delivered-To: freebsd-x11@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 772D616A41F for ; Sun, 18 Sep 2005 00:57:32 +0000 (GMT) (envelope-from robbak@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id C761243D46 for ; Sun, 18 Sep 2005 00:57:31 +0000 (GMT) (envelope-from robbak@gmail.com) Received: by zproxy.gmail.com with SMTP id l1so338634nzf for ; Sat, 17 Sep 2005 17:57:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RIlxqait2fRAWcaA00d3Chz8cQXWg5al+pglsdrXhKAo48EbMJQUb1hdW7qECzmRVxUXZL63E+ygLhouLLj09YZBNVV/nJgGIfN4bxcwLlJzsarxDm94MPFkrTb3tNssT9me7UUKoBGSYmR3aIJDyEwm+DklB92XgB3NmhebBkQ= Received: by 10.54.65.8 with SMTP id n8mr369667wra; Sat, 17 Sep 2005 17:57:30 -0700 (PDT) Received: by 10.54.131.8 with HTTP; Sat, 17 Sep 2005 17:57:30 -0700 (PDT) Message-ID: Date: Sun, 18 Sep 2005 00:57:30 +0000 From: Robert Backhaus To: bob self In-Reply-To: <432AF297.80203@charter.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <432AF297.80203@charter.net> Cc: x11@FreeBSD.org, freebsd-current@freebsd.org, gerald@FreeBSD.org Subject: Re: can't run wine anymore X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: robbak@gmail.com List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 00:57:32 -0000 On 9/16/05, bob self wrote: > I'm running 6.0 beta 4 and after doing a nightly portupgrade a couple of > nights ago I can no longer run > wine. Six ports upgraded sucessfully, including xorg-server. I get this > message now when I run wine: >=20 > X Error of failed request: BadAlloc (insufficient resources for operatio= n) > Major opcode of failed request: 53 (X_CreatePixmap) > Serial number of failed request: 12785 > Current serial number in output stream: 12787 > X Error of failed request: BadAlloc (insufficient resources for operatio= n) > Major opcode of failed request: 53 (X_CreatePixmap) > Serial number of failed request: 12785 > Current serial number in output stream: 12787 >=20 > Does anyone know what this means or what is causing it? It's in the wine bug list, see the link below. Many people are working on it. It seems to be caused by an xorg upgrade. There are many people working on a fix, so it shouldn't take long. According to the bug report, removing that patch resolves the issue. (It appears to be the file "files/patch-CAN-2005-2495". I'll try it soon. I'm cc-ing gerald, the wine maintainer, and the x11 maillist. http://bugs.winehq.org/show_bug.cgi?id=3D3336 From owner-freebsd-x11@FreeBSD.ORG Sun Sep 18 01:30:07 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A98A716A41F; Sun, 18 Sep 2005 01:30:07 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from mail.ijs.si (mail.ijs.si [193.2.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECDBE43D45; Sun, 18 Sep 2005 01:30:06 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from localhost (mail.ijs.si [193.2.4.66]) by patsy.ijs.si (Postfix) with ESMTP id 43A1117B859; Sun, 18 Sep 2005 03:30:05 +0200 (CEST) Received: from patsy.ijs.si ([127.0.0.1]) by localhost (patsy.ijs.si [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16741-01; Sun, 18 Sep 2005 03:30:00 +0200 (CEST) Received: from radagast.ijs.si (radagast.ijs.si [193.2.4.168]) by patsy.ijs.si (Postfix) with ESMTP id B58EE17B855; Sun, 18 Sep 2005 03:29:59 +0200 (CEST) Received: from localhost.ijs.si (localhost.ijs.si [127.0.0.1]) by radagast.ijs.si (Postfix) with ESMTP id 813251702B; Sun, 18 Sep 2005 03:29:59 +0200 (CEST) From: Dejan Lesjak To: freebsd-x11@freebsd.org, robbak@gmail.com Date: Sun, 18 Sep 2005 03:29:56 +0200 User-Agent: KMail/1.8.2 References: <432AF297.80203@charter.net> In-Reply-To: X-Face: %~f=_)D]BD:EmnBSk5TR|!pcMoc_Ohnn, wh02@'h@*ylg@w}ur$a@0nU2hg~PdH4"vw<=?utf-8?q?4g=0A=09fFrrU44=60z?="]BC%`Y@tv(J*F&o%7EA5<, h`CxOHZq|c:O>|yXElz^Bbsp!QLojjP MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_WMMLDVO9ESMVAqT" Message-Id: <200509180329.58967.dejan.lesjak@ijs.si> X-Virus-Scanned: amavisd-new at ijs.si Cc: freebsd-current@freebsd.org, gerald@freebsd.org, bob self Subject: Re: can't run wine anymore 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: Sun, 18 Sep 2005 01:30:07 -0000 --Boundary-00=_WMMLDVO9ESMVAqT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sunday 18 of September 2005 02:57, Robert Backhaus wrote: > On 9/16/05, bob self wrote: > > I'm running 6.0 beta 4 and after doing a nightly portupgrade a couple of > > nights ago I can no longer run > > wine. Six ports upgraded sucessfully, including xorg-server. I get this > > message now when I run wine: > > > > X Error of failed request: BadAlloc (insufficient resources for > > operation) Major opcode of failed request: 53 (X_CreatePixmap) > > Serial number of failed request: 12785 > > Current serial number in output stream: 12787 > > X Error of failed request: BadAlloc (insufficient resources for > > operation) Major opcode of failed request: 53 (X_CreatePixmap) > > Serial number of failed request: 12785 > > Current serial number in output stream: 12787 > > > > Does anyone know what this means or what is causing it? > > It's in the wine bug list, see the link below. Many people are working > on it. It seems to be caused by an xorg upgrade. There are many people > working on a fix, so it shouldn't take long. According to the bug > report, removing that patch resolves the issue. (It appears to be the > file "files/patch-CAN-2005-2495". I'll try it soon. I'm cc-ing > gerald, the wine maintainer, and the x11 maillist. > > http://bugs.winehq.org/show_bug.cgi?id=3336 Can you please try replacing patch-CAN-2005-2495 with the attached one (also at http://www.ijs.si/~lesi/xorg/patch-CAN-2005-2495-take2). This is the version that was actually committed to Xorg CVS. Dejan --Boundary-00=_WMMLDVO9ESMVAqT Content-Type: text/plain; charset="iso-8859-1"; name="patch-CAN-2005-2495-take2" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-CAN-2005-2495-take2" Index: programs/Xserver/afb/afbpixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/afb/afbpixmap.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- programs/Xserver/afb/afbpixmap.c 3 Jul 2005 07:01:14 -0000 1.5 +++ programs/Xserver/afb/afbpixmap.c 13 Sep 2005 01:33:18 -0000 1.6 @@ -77,10 +77,14 @@ int depth; { PixmapPtr pPixmap; - int datasize; - int paddedWidth; + size_t datasize; + size_t paddedWidth; paddedWidth = BitmapBytePad(width); + + if (paddedWidth > 32767 || height > 32767 || depth > 4) + return NullPixmap; + datasize = height * paddedWidth * depth; pPixmap = AllocatePixmap(pScreen, datasize); if (!pPixmap) Index: programs/Xserver/cfb/cfbpixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/cfb/cfbpixmap.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- programs/Xserver/cfb/cfbpixmap.c 3 Jul 2005 07:01:15 -0000 1.5 +++ programs/Xserver/cfb/cfbpixmap.c 13 Sep 2005 01:33:19 -0000 1.6 @@ -72,10 +72,13 @@ int depth; { PixmapPtr pPixmap; - int datasize; - int paddedWidth; + size_t datasize; + size_t paddedWidth; paddedWidth = PixmapBytePad(width, depth); + + if (paddedWidth / 4 > 32767 || height > 32767) + return NullPixmap; datasize = height * paddedWidth; pPixmap = AllocatePixmap(pScreen, datasize); if (!pPixmap) Index: programs/Xserver/dix/dispatch.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/dix/dispatch.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- programs/Xserver/dix/dispatch.c 16 Jul 2005 20:52:25 -0000 1.12 +++ programs/Xserver/dix/dispatch.c 13 Sep 2005 01:33:19 -0000 1.13 @@ -1483,6 +1483,23 @@ client->errorValue = 0; return BadValue; } + if (stuff->width > 32767 || stuff->height > 32767) + { + /* It is allowed to try and allocate a pixmap which is larger than + * 32767 in either dimension. However, all of the framebuffer code + * is buggy and does not reliably draw to such big pixmaps, basically + * because the Region data structure operates with signed shorts + * for the rectangles in it. + * + * Furthermore, several places in the X server computes the + * size in bytes of the pixmap and tries to store it in an + * integer. This integer can overflow and cause the allocated size + * to be much smaller. + * + * So, such big pixmaps are rejected here with a BadAlloc + */ + return BadAlloc; + } if (stuff->depth != 1) { pDepth = pDraw->pScreen->allowedDepths; Index: programs/Xserver/dix/pixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/dix/pixmap.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- programs/Xserver/dix/pixmap.c 3 Jul 2005 08:53:38 -0000 1.7 +++ programs/Xserver/dix/pixmap.c 13 Sep 2005 01:33:19 -0000 1.8 @@ -118,6 +118,9 @@ unsigned size; int i; + if (pScreen->totalPixmapSize > ((size_t)-1) - pixDataSize) + return NullPixmap; + pPixmap = (PixmapPtr)xalloc(pScreen->totalPixmapSize + pixDataSize); if (!pPixmap) return NullPixmap; Index: programs/Xserver/fb/fbpixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/fb/fbpixmap.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- programs/Xserver/fb/fbpixmap.c 3 Jul 2005 07:01:23 -0000 1.5 +++ programs/Xserver/fb/fbpixmap.c 13 Sep 2005 01:33:19 -0000 1.6 @@ -36,12 +36,14 @@ fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp) { PixmapPtr pPixmap; - int datasize; - int paddedWidth; + size_t datasize; + size_t paddedWidth; int adjust; int base; paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof (FbBits); + if (paddedWidth / 4 > 32767 || height > 32767) + return NullPixmap; datasize = height * paddedWidth; #ifdef PIXPRIV base = pScreen->totalPixmapSize; Index: programs/Xserver/hw/xfree86/xaa/xaaInit.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/hw/xfree86/xaa/xaaInit.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- programs/Xserver/hw/xfree86/xaa/xaaInit.c 3 Jul 2005 08:53:49 -0000 1.7 +++ programs/Xserver/hw/xfree86/xaa/xaaInit.c 13 Sep 2005 01:33:19 -0000 1.8 @@ -502,6 +502,9 @@ XAAPixmapPtr pPriv; PixmapPtr pPix = NULL; int size = w * h; + + if (w > 32767 || h > 32767) + return NullPixmap; if (!infoRec->offscreenDepthsInitialized) XAAInitializeOffscreenDepths (pScreen); Index: programs/Xserver/hw/xfree86/xf4bpp/ppcPixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/hw/xfree86/xf4bpp/ppcPixmap.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- programs/Xserver/hw/xfree86/xf4bpp/ppcPixmap.c 3 Jul 2005 07:01:41 -0000 1.3 +++ programs/Xserver/hw/xfree86/xf4bpp/ppcPixmap.c 13 Sep 2005 01:33:19 -0000 1.4 @@ -89,7 +89,7 @@ int depth ; { register PixmapPtr pPixmap = (PixmapPtr)NULL; - int size ; + size_t size ; TRACE(("xf4bppCreatePixmap(pScreen=0x%x, width=%d, height=%d, depth=%d)\n", pScreen, width, height, depth)) ; @@ -97,6 +97,10 @@ return (PixmapPtr) NULL ; size = PixmapBytePad(width, depth); + + if (size / 4 > 32767 || height > 32767) + return (PixmapPtr) NULL ; + pPixmap = AllocatePixmap (pScreen, (height * size)); if ( !pPixmap ) Index: programs/Xserver/ilbm/ilbmpixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/ilbm/ilbmpixmap.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- programs/Xserver/ilbm/ilbmpixmap.c 3 Jul 2005 07:01:44 -0000 1.4 +++ programs/Xserver/ilbm/ilbmpixmap.c 13 Sep 2005 01:33:19 -0000 1.5 @@ -79,10 +79,12 @@ int depth; { PixmapPtr pPixmap; - int datasize; - int paddedWidth; + size_t datasize; + size_t paddedWidth; paddedWidth = BitmapBytePad(width); + if (paddedWidth > 32767 || height > 32767 || depth > 4) + return NullPixmap; datasize = height * paddedWidth * depth; pPixmap = AllocatePixmap(pScreen, datasize); if (!pPixmap) Index: programs/Xserver/iplan2p4/iplpixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/iplan2p4/iplpixmap.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- programs/Xserver/iplan2p4/iplpixmap.c 3 Jul 2005 07:01:46 -0000 1.4 +++ programs/Xserver/iplan2p4/iplpixmap.c 13 Sep 2005 01:33:19 -0000 1.5 @@ -78,12 +78,14 @@ int depth; { PixmapPtr pPixmap; - int datasize; - int paddedWidth; + size_t datasize; + size_t paddedWidth; int ipad=INTER_PLANES*2 - 1; paddedWidth = PixmapBytePad(width, depth); paddedWidth = (paddedWidth + ipad) & ~ipad; + if (paddedWidth / 4 > 32767 || height > 32767) + return NullPixmap; datasize = height * paddedWidth; pPixmap = AllocatePixmap(pScreen, datasize); if (!pPixmap) Index: programs/Xserver/mfb/mfbpixmap.c =================================================================== RCS file: /epruveta/repos/xorg/xorg/xc/programs/Xserver/mfb/mfbpixmap.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- programs/Xserver/mfb/mfbpixmap.c 3 Jul 2005 07:01:50 -0000 1.4 +++ programs/Xserver/mfb/mfbpixmap.c 13 Sep 2005 01:33:19 -0000 1.5 @@ -75,12 +75,14 @@ int depth; { PixmapPtr pPixmap; - int datasize; - int paddedWidth; + size_t datasize; + size_t paddedWidth; if (depth != 1) return NullPixmap; paddedWidth = BitmapBytePad(width); + if (paddedWidth / 4 > 32767 || height > 32767) + return NullPixmap; datasize = height * paddedWidth; pPixmap = AllocatePixmap(pScreen, datasize); if (!pPixmap) --Boundary-00=_WMMLDVO9ESMVAqT-- From owner-freebsd-x11@FreeBSD.ORG Sun Sep 18 03:54:04 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24EE716A422 for ; Sun, 18 Sep 2005 03:54:04 +0000 (GMT) (envelope-from robbak@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C04E443D49 for ; Sun, 18 Sep 2005 03:54:02 +0000 (GMT) (envelope-from robbak@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so61660nzd for ; Sat, 17 Sep 2005 20:54:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ufz7lu2VzBIQ1HW562mim6ncoljW/44Y7m8zq5QnEUtKFnwvlJKzQt4u1LS06XsEh+6o0tUgejnSLzhBbmOG4nwZpF1MbavDZgavCqypUUc0oHgVrraSksQEjuVEb1ZOl5pSrb5Ew1a5j1B4O9QzFXe89ocF0hcrBd67X56AdKg= Received: by 10.54.56.75 with SMTP id e75mr413140wra; Sat, 17 Sep 2005 20:54:02 -0700 (PDT) Received: by 10.54.131.8 with HTTP; Sat, 17 Sep 2005 20:54:02 -0700 (PDT) Message-ID: Date: Sun, 18 Sep 2005 03:54:02 +0000 From: Robert Backhaus To: bob self In-Reply-To: <200509180329.58967.dejan.lesjak@ijs.si> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_26500_31995672.1127015642281" References: <432AF297.80203@charter.net> <200509180329.58967.dejan.lesjak@ijs.si> Cc: freebsd-x11@freebsd.org, freebsd-current@freebsd.org, gerald@freebsd.org Subject: Re: can't run wine anymore X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: robbak@gmail.com List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 03:54:04 -0000 ------=_Part_26500_31995672.1127015642281 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 9/18/05, Dejan Lesjak wrote: > On Sunday 18 of September 2005 02:57, Robert Backhaus wrote: > > On 9/16/05, bob self wrote: > > > I'm running 6.0 beta 4 and after doing a nightly portupgrade a couple= of > > > nights ago I can no longer run > > > wine. Six ports upgraded sucessfully, including xorg-server. I get th= is > > > message now when I run wine: > > > > > > X Error of failed request: BadAlloc (insufficient resources for > > > operation) Major opcode of failed request: 53 (X_CreatePixmap) > > > Serial number of failed request: 12785 > > > Current serial number in output stream: 12787 > > > X Error of failed request: BadAlloc (insufficient resources for > > > operation) Major opcode of failed request: 53 (X_CreatePixmap) > > > Serial number of failed request: 12785 > > > Current serial number in output stream: 12787 > > > > > > Does anyone know what this means or what is causing it? > > > > It's in the wine bug list, see the link below. Many people are working > > on it. It seems to be caused by an xorg upgrade. There are many people > > working on a fix, so it shouldn't take long. According to the bug > > report, removing that patch resolves the issue. (It appears to be the > > file "files/patch-CAN-2005-2495". I'll try it soon. I'm cc-ing > > gerald, the wine maintainer, and the x11 maillist. > > > > http://bugs.winehq.org/show_bug.cgi?id=3D3336 >=20 > Can you please try replacing patch-CAN-2005-2495 with the attached one (a= lso > at http://www.ijs.si/~lesi/xorg/patch-CAN-2005-2495-take2). This is the > version that was actually committed to Xorg CVS. >=20 >=20 > Dejan Dejan and I have been working on this, and have got wine working succesfully by replacing patch-CAN-2005-2495 with http://www.ijs.si/~lesi/xorg/patch-CAN-2005-2495-aligned , which is also attatched. the updated patch should be commited to the port shortly. ------=_Part_26500_31995672.1127015642281 Content-Type: application/octet-stream; name="patch-CAN-2005-2495-aligned" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-CAN-2005-2495-aligned" LS0tIHByb2dyYW1zL1hzZXJ2ZXIvYWZiL2FmYnBpeG1hcC5jLm9yaWcJRnJpIEFwciAyMyAyMDo1 OTozOSAyMDA0CisrKyBwcm9ncmFtcy9Yc2VydmVyL2FmYi9hZmJwaXhtYXAuYwlTdW4gU2VwIDE4 IDA0OjU2OjAyIDIwMDUKQEAgLTczLDEwICs3MywxNCBAQAogCWludAkJCQlkZXB0aDsKIHsKIAlQ aXhtYXBQdHIgcFBpeG1hcDsKLQlpbnQgZGF0YXNpemU7Ci0JaW50IHBhZGRlZFdpZHRoOworCXNp emVfdCBkYXRhc2l6ZTsKKwlzaXplX3QgcGFkZGVkV2lkdGg7CiAKIAlwYWRkZWRXaWR0aCA9IEJp dG1hcEJ5dGVQYWQod2lkdGgpOworCisJaWYgKHBhZGRlZFdpZHRoID4gMzI3NjcgfHwgaGVpZ2h0 ID4gMzI3NjcgfHwgZGVwdGggPiA0KQorCSAgICByZXR1cm4gTnVsbFBpeG1hcDsKKwkKIAl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yYW1zL1hzZXJ2ZXIvbWZi L21mYnBpeG1hcC5jCVN1biBTZXAgMTggMDQ6NTY6MDIgMjAwNQpAQCAtNzIsMTIgKzcyLDE0IEBA CiAgICAgaW50CQlkZXB0aDsKIHsKICAgICBQaXhtYXBQdHIgcFBpeG1hcDsKLSAgICBpbnQgZGF0 YXNpemU7Ci0gICAgaW50IHBhZGRlZFdpZHRoOworICAgIHNpemVfdCBkYXRhc2l6ZTsKKyAgICBz aXplX3QgcGFkZGVkV2lkdGg7CiAKICAgICBpZiAoZGVwdGggIT0gMSkKIAlyZXR1cm4gTnVsbFBp eG1hcDsKICAgICBwYWRkZWRXaWR0aCA9IEJpdG1hcEJ5dGVQYWQod2lkdGgpOworICAgIGlmIChw YWRkZWRXaWR0aCAvIDQgPiAzMjc2NyB8fCBoZWlnaHQgPiAzMjc2NykKKwlyZXR1cm4gTnVsbFBp eG1hcDsKICAgICBkYXRhc2l6ZSA9IGhlaWdodCAqIHBhZGRlZFdpZHRoOwogICAgIHBQaXhtYXAg PSBBbGxvY2F0ZVBpeG1hcChwU2NyZWVuLCBkYXRhc2l6ZSk7CiAgICAgaWYgKCFwUGl4bWFwKQo= ------=_Part_26500_31995672.1127015642281-- From owner-freebsd-x11@FreeBSD.ORG Mon Sep 19 11:02:28 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B349416A42F for ; Mon, 19 Sep 2005 11:02:28 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCD8C43D5D for ; Mon, 19 Sep 2005 11:02:27 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8JB2R6V018301 for ; Mon, 19 Sep 2005 11:02:27 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8JB2Qrc018296 for freebsd-x11@freebsd.org; Mon, 19 Sep 2005 11:02:26 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 19 Sep 2005 11:02:26 GMT Message-Id: <200509191102.j8JB2Qrc018296@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-x11@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 19 Sep 2005 11:02:28 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/11/20] ports/32121 x11 XFree86-4-Server: xf86cfg 4.1.0 writes ba f [2004/11/22] ports/74265 x11 XFree86 Version 4.4.0 with KDE 3.1 freeze o [2005/03/25] ports/79231 x11 XORG / FBSD5.4 stuck at 640x480 on HP XE2 o [2005/08/11] ports/84820 x11 x11-servers/xorg-server fails to start w/ f [2005/08/12] ports/84834 x11 Required symbol GlxSetVIsualConfigs from o [2005/08/30] ports/85470 x11 82845GV video mode switching with Xorg o [2005/09/05] ports/85735 x11 Force imake respect CC/CXX 7 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/10/22] ports/73009 x11 5.3-RC1 ports refer to XF86Config - shoul s [2004/11/09] ports/73743 x11 XOrg/XFree xauth add/startx problem o [2005/05/13] ports/80979 x11 x11/xorg-clients: when hostname is not co o [2005/05/24] ports/81428 x11 [PATCH] x11-servers/mga_hal: also install o [2005/08/19] i386/85132 x11 XOrg 6.8.2 won't start on Toshiba Satelli 5 problems total. From owner-freebsd-x11@FreeBSD.ORG Tue Sep 20 14:20:52 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FE4516A41F for ; Tue, 20 Sep 2005 14:20:52 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10D9E43D45 for ; Tue, 20 Sep 2005 14:20:49 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so198947nzd for ; Tue, 20 Sep 2005 07:20:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=GMHva4nliXDyCvL9AtYeNLg57lDHrBOi7lb71XeE5errsM0fFxk7iSPyIuK3U5oV8XaHW/Zcbq2WA2IJQjGNx45GbB8utSwD+tcbiUIPJ7/JE9GH9Z9jmhXfe5PYarIPTDlzrLYfm1USO/uz+NvHQEPmv4OCySyW0+XrMuG4HsI= Received: by 10.54.48.71 with SMTP id v71mr1807944wrv; Tue, 20 Sep 2005 07:20:49 -0700 (PDT) Received: by 10.54.56.25 with HTTP; Tue, 20 Sep 2005 07:20:48 -0700 (PDT) Message-ID: <59e2ee8105092007202c26ff74@mail.gmail.com> Date: Tue, 20 Sep 2005 17:20:48 +0300 From: Rostislav Krasny To: Dejan Lesjak Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: freebsd-x11@freebsd.org Subject: Re: x11-server/xorg-printserver X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rosti.bsd@gmail.com List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 14:20:52 -0000 Hi, I'm testing FreeBSD 6.0-BETA5 with Xorg now. The version of the xorg-printserver is 6.8.2_1. I see an error message on system boot and system shutdown that looks like following: Local package initialization: /usr/X11R6/etc/rc.d/xprint.sh: ## FATAL ERROR: No POSIX-shell found. I've found your correspondence with Rong-En Fan and I think your fix was wrong because this script isn't rc.d compatible and should not be run directly and unconditionally. IMHO the right fix is writing a new rc.d compatible xprint.sh script (like xfs.sh) that will check a "xprint_enable" variable and call the original xprint script with appropriate parameter(s). I think the $1 parameter of the original xprint script should always be "posix_sh_forced". This parameter should fix the "No POSIX-shell found" error. From owner-freebsd-x11@FreeBSD.ORG Tue Sep 20 20:02:37 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47D4F16A41F for ; Tue, 20 Sep 2005 20:02:37 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from mail.ijs.si (mail.ijs.si [193.2.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA24443D46 for ; Tue, 20 Sep 2005 20:02:36 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from localhost (mail.ijs.si [193.2.4.66]) by patsy.ijs.si (Postfix) with ESMTP id EB38B17B87F; Tue, 20 Sep 2005 22:02:34 +0200 (CEST) Received: from patsy.ijs.si ([127.0.0.1]) by localhost (patsy.ijs.si [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 71515-02-8; Tue, 20 Sep 2005 22:02:26 +0200 (CEST) Received: from radagast.ijs.si (radagast.ijs.si [193.2.4.168]) by patsy.ijs.si (Postfix) with ESMTP id CA31217B843; Tue, 20 Sep 2005 22:02:25 +0200 (CEST) Received: from localhost.ijs.si (localhost.ijs.si [127.0.0.1]) by radagast.ijs.si (Postfix) with ESMTP id 684161702B; Tue, 20 Sep 2005 22:02:25 +0200 (CEST) From: Dejan Lesjak To: rosti.bsd@gmail.com Date: Tue, 20 Sep 2005 22:02:23 +0200 User-Agent: KMail/1.8.2 References: <59e2ee8105092007202c26ff74@mail.gmail.com> In-Reply-To: <59e2ee8105092007202c26ff74@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509202202.24764.dejan.lesjak@ijs.si> X-Virus-Scanned: amavisd-new at ijs.si Cc: freebsd-x11@freebsd.org Subject: Re: x11-server/xorg-printserver 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: Tue, 20 Sep 2005 20:02:37 -0000 On Tuesday 20 of September 2005 16:20, Rostislav Krasny wrote: > Hi, > > I'm testing FreeBSD 6.0-BETA5 with Xorg now. The version of the > xorg-printserver is 6.8.2_1. I see an error message on system boot and > system shutdown that looks like following: > > Local package initialization: > /usr/X11R6/etc/rc.d/xprint.sh: ## FATAL ERROR: No POSIX-shell found. > > I've found your correspondence with Rong-En Fan and I think your fix > was wrong because this script isn't rc.d compatible and should not be > run directly and unconditionally. Yes indeed it was wrong. Thanks for reporting! > IMHO the right fix is writing a new > rc.d compatible xprint.sh script (like xfs.sh) that will check a > "xprint_enable" variable and call the original xprint script with > appropriate parameter(s). I think the $1 parameter of the original > xprint script should always be "posix_sh_forced". This parameter > should fix the "No POSIX-shell found" error. For now I modified port so it installs xprint.sh.sample file which should not be automatically executed. But you are right, the proper long term fix is to actually make it work and to do it in rcNG style. I'll eventually try to do that, but feel free to beat me to it :) Dejan