From nobody@FreeBSD.org  Sun Jun 16 08:10:34 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id CDD2544B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jun 2013 08:10:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id A633D1EB0
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jun 2013 08:10:34 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5G8AXLH059354
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jun 2013 08:10:33 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5G8AXJf059339;
	Sun, 16 Jun 2013 08:10:33 GMT
	(envelope-from nobody)
Message-Id: <201306160810.r5G8AXJf059339@oldred.freebsd.org>
Date: Sun, 16 Jun 2013 08:10:33 GMT
From: "Eugene M. Zheganin" <eugene@zhegan.in>
To: freebsd-gnats-submit@FreeBSD.org
Subject: databases/memcached broken with repcached patch
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179610
>Category:       ports
>Synopsis:       databases/memcached broken with repcached patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    swills
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 16 08:20:01 UTC 2013
>Closed-Date:    Tue Jan 28 21:36:26 UTC 2014
>Last-Modified:  Tue Jan 28 21:36:26 UTC 2014
>Originator:     Eugene M. Zheganin
>Release:        9.1-PRERELEASE
>Organization:
Enaza LLC
>Environment:
FreeBSD dione 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Tue Nov 13 11:20:06 MSK 2012     emz@dione:/usr/obj/usr/src/sys/DIONE  amd64
>Description:
databases/memcached port is broken with the repcached option.
I've got repeatable immediate crash after start with the -x option:

[emz@dione:~/memcached.core]# gdb /usr/local/bin/memcached memcached.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `memcached'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libumem.so.2...done.
Loaded symbols for /lib/libumem.so.2
Reading symbols from /usr/local/lib/libevent-1.4.so.4...done.
Loaded symbols for /usr/local/lib/libevent-1.4.so.4
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000000004170be in item_lock (hv=2382504082) at thread.c:126
126     thread.c: &#1053;&#1077;&#1090; &#1090;&#1072;&#1082;&#1086;&#1075;&#1086; &#1092;&#1072;&#1081;&#1083;&#1072; &#1080;&#1083;&#1080; &#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075;&#1072;.
        in thread.c
[New Thread 801408c00 (LWP 102520/memcached)]
[New Thread 801408800 (LWP 102519/memcached)]
[New Thread 801408400 (LWP 102518/memcached)]
[New Thread 801408000 (LWP 102517/memcached)]
[New Thread 801407c00 (LWP 102516/memcached)]
[New Thread 801407400 (LWP 101934/memcached)]
(gdb) bt
#0  0x00000000004170be in item_lock (hv=2382504082) at thread.c:126
#1  0x0000000000417bdd in item_get (key=0x801a67040 "category88", nkey=10) at thread.c:498
#2  0x000000000041b07d in replication_cmd (c=0x8015bba00, q=0x801a66040) at replication.c:365
#3  0x0000000000411588 in replication_pop () at memcached.c:5893
#4  0x000000000040e0da in drive_machine (c=0x8015bbe00) at memcached.c:4169
#5  0x000000000040e48e in event_handler (fd=17, which=2, arg=0x8015bbe00) at memcached.c:4258
#6  0x0000000800a43928 in event_base_loop () from /usr/local/lib/libevent-1.4.so.4
#7  0x0000000000410988 in main (argc=12, argv=0x7fffffffda20) at memcached.c:5589
>How-To-Repeat:
Install databases/memcached from fresh ports, use it with tghe replication option.
>Fix:
Disable replication, either in the build or don't use it.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->swills 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jun 16 08:20:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179610 
State-Changed-From-To: open->closed 
State-Changed-By: swills 
State-Changed-When: Tue Jan 28 21:36:24 UTC 2014 
State-Changed-Why:  
Repcached seems dead upstream, I've removed it from the port. This 
shouldn't be an issue any more. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179610 
>Unformatted:
