From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 6 10:40:31 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E05116A50A for ; Tue, 6 Jun 2006 10:40:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B11AB43D55 for ; Tue, 6 Jun 2006 10:40:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k56AeTp7013634 for ; Tue, 6 Jun 2006 10:40:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k56AeT3R013633; Tue, 6 Jun 2006 10:40:29 GMT (envelope-from gnats) Resent-Date: Tue, 6 Jun 2006 10:40:29 GMT Resent-Message-Id: <200606061040.k56AeT3R013633@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, Yoshiaki Kasahara Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55AE016AF3F for ; Tue, 6 Jun 2006 10:35:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B1B143D48 for ; Tue, 6 Jun 2006 10:35:56 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k56AZts0078207 for ; Tue, 6 Jun 2006 10:35:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k56AZtFH078206; Tue, 6 Jun 2006 10:35:55 GMT (envelope-from nobody) Message-Id: <200606061035.k56AZtFH078206@www.freebsd.org> Date: Tue, 6 Jun 2006 10:35:55 GMT From: Yoshiaki Kasahara To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/98590: [FIX] ports rxvt-devel on amd64 crashes inside rxvt_selection_send() 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: Tue, 06 Jun 2006 10:40:32 -0000 >Number: 98590 >Category: ports >Synopsis: [FIX] ports rxvt-devel on amd64 crashes inside rxvt_selection_send() >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: Tue Jun 06 10:40:28 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Yoshiaki Kasahara >Release: FreeBSD 6.1-STABLE amd64 >Organization: Kyushu University >Environment: FreeBSD elvenbow.cc.kyushu-u.ac.jp 6.1-STABLE FreeBSD 6.1-STABLE #0: Mon May 8 16:54:22 JST 2006 root@elvenbow.cc.kyushu-u.ac.jp:/usr/obj/usr/src/sys/ELVENBOW amd64 >Description: I experienced repeatable crashes of x11/rxvt-devel with sysutils/synergy on amd64, saying "rxvt: XError: Request 18 . 0, Error: 2". It always happened when a selection was active on the rxvt and the mouse pointer moved off from the X display to the synergy client display. Here is the cause: (screen.c line 3549~ inside rxvt_selection_send()) } else if (rq->target == r->h->xa[XA_TIMESTAMP] && r->selection.text) { XChangeProperty(r->Xdisplay, rq->requestor, rq->property, XA_INTEGER, (8 * sizeof(Time)), PropModeReplace, (unsigned char *)&r->h->selection_time, 1); On amd64, sizeof(Time) is 8, but 64 is invalid for XChangeProperty(), and it generates BadValue error. It should be 32 instead, which means "long". >How-To-Repeat: Configure a synergy client and a synergy server. Run rxvt-devel on the server side. Select some text on the rxvt by a mouse. Move the pointer over to the client side. (I couldn't find more convenient way to invoke rxvt_selection_send) >Fix: Change (8 * sizeof(Time)) to 32 (more appropriate macro available?). >Release-Note: >Audit-Trail: >Unformatted: