From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 19 17:50:02 2008 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 7A4241065677 for ; Fri, 19 Dec 2008 17:50:02 +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 429208FC08 for ; Fri, 19 Dec 2008 17:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBJHo2DD099468 for ; Fri, 19 Dec 2008 17:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBJHo2Mn099462; Fri, 19 Dec 2008 17:50:02 GMT (envelope-from gnats) Resent-Date: Fri, 19 Dec 2008 17:50:02 GMT Resent-Message-Id: <200812191750.mBJHo2Mn099462@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, Maxim Dounin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEA291065675 for ; Fri, 19 Dec 2008 17:44:00 +0000 (UTC) (envelope-from mdounin@mdounin.ru) Received: from mdounin.cust.ramtel.ru (mdounin.cust.ramtel.ru [81.19.69.81]) by mx1.freebsd.org (Postfix) with ESMTP id 8D54B8FC17 for ; Fri, 19 Dec 2008 17:44:00 +0000 (UTC) (envelope-from mdounin@mdounin.ru) Received: by mdounin.cust.ramtel.ru (Postfix, from userid 1000) id 52B9317048; Fri, 19 Dec 2008 20:43:58 +0300 (MSK) Message-Id: <20081219174358.52B9317048@mdounin.cust.ramtel.ru> Date: Fri, 19 Dec 2008 20:43:58 +0300 (MSK) From: Maxim Dounin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/129767: [patch] databases/memcached - extra patch for repcached to work on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim Dounin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2008 17:50:02 -0000 >Number: 129767 >Category: ports >Synopsis: [patch] databases/memcached - extra patch for repcached to work on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 19 17:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Maxim Dounin >Release: FreeBSD 7.0-RELEASE-p3 i386 >Organization: >Environment: >Description: With repcached patches memcached segfaults on replication start under amd64. >How-To-Repeat: Start an instance of memcached with repcached patches and place some data into it. Start another instance with replication from the first one. The first one will segfault (under amd64, under i386 everything is fine). >Fix: The following patch (against databases/memcached port) adds missing assoc_key_snap() function prototype and fixes the problem. --- patch-port-memcached.txt begins here --- --- Makefile Fri Dec 19 19:47:34 2008 +0300 +++ Makefile Fri Dec 19 19:56:52 2008 +0300 @@ -39,6 +39,7 @@ PATCH_SITE_SUBDIR= repcached PATCH_SITE_SUBDIR= repcached PATCH_DIST_STRIP+= -p1 PATCHFILES+= repcached-2.1-1.2.6.patch.gz +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-repcached-assoc.h CONFIGURE_ARGS+= --enable-replication --disable-threads .endif --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ files/extra-patch-repcached-assoc.h Fri Dec 19 19:56:52 2008 +0300 @@ -0,0 +1,9 @@ +--- assoc.h.orig 2008-12-19 15:37:20.782290418 +0000 ++++ assoc.h 2008-12-19 15:37:28.223146102 +0000 +@@ -5,3 +5,6 @@ + void assoc_delete(const char *key, const size_t nkey); + void do_assoc_move_next_bucket(void); + uint32_t hash( const void *key, size_t length, const uint32_t initval); ++#ifdef USE_REPLICATION ++char *assoc_key_snap(int *n); ++#endif --- patch-port-memcached.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted: