From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 3 07:00:28 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6C19106566C for ; Fri, 3 Feb 2012 07:00:28 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A27998FC1A for ; Fri, 3 Feb 2012 07:00:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1370RDx002386 for ; Fri, 3 Feb 2012 07:00:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1370RsF002385; Fri, 3 Feb 2012 07:00:27 GMT (envelope-from gnats) Resent-Date: Fri, 3 Feb 2012 07:00:27 GMT Resent-Message-Id: <201202030700.q1370RsF002385@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mars G Miro Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AE4D106566C for ; Fri, 3 Feb 2012 06:57:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 79A8A8FC0C for ; Fri, 3 Feb 2012 06:57:52 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q136vqd7039841 for ; Fri, 3 Feb 2012 06:57:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q136vqOB039840; Fri, 3 Feb 2012 06:57:52 GMT (envelope-from nobody) Message-Id: <201202030657.q136vqOB039840@red.freebsd.org> Date: Fri, 3 Feb 2012 06:57:52 GMT From: Mars G Miro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/164729: [PATCH] patch editors/nedit to not crash on file->open / file-save X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 07:00:28 -0000 >Number: 164729 >Category: ports >Synopsis: [PATCH] patch editors/nedit to not crash on file->open / file-save >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 03 07:00:27 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Mars G Miro >Release: FreeBSD-9.0-RELEASE/amd64 >Organization: Organization of Redundant Organizations >Environment: FreeBSD spry.XXXXXXXX.XXX 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: editors/nedit crashes when doing either a file->open or file->save: X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 91 (X_QueryColors) Value in failed request: 0xffb3b3b3 Serial number of failed request: 6525 Current serial number in output stream: 6525 The exact problem was filed/discussed a loong time ago at: https://bugzilla.redhat.com/show_bug.cgi?id=199770 for w/c this patch is shamelessly taken ;-) >How-To-Repeat: Install editors/nedit. Run nedit. Do file->open or file->save. It will crash nedit. Very annoying. >Fix: See patch (shamelessly obtained from RH bugzilla ;-) Patch attached with submission follows: --- util/misc.c.visfix 2004-08-10 00:20:00.000000000 +0200 +++ util/misc.c 2006-08-30 13:06:31.000000000 +0200 @@ -384,6 +384,9 @@ return (*visual == DefaultVisual(display, screen)); } + /* Set "Default" visual to avoid crashes with the detected best ones */ + reqID = DefaultVisual(display, screen)->visualid; + /* Read the visualID and installColormap resources for the application. visualID can be specified either as a number (the visual id as shown by xdpyinfo), as a visual class name, or as Best or Default. */ >Release-Note: >Audit-Trail: >Unformatted: