Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2013 08:10:33 GMT
From:      "Eugene M. Zheganin" <eugene@zhegan.in>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179610: databases/memcached broken with repcached patch
Message-ID:  <201306160810.r5G8AXJf059339@oldred.freebsd.org>
Resent-Message-ID: <201306160820.r5G8K1L6062615@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179610
>Category:       ports
>Synopsis:       databases/memcached broken with repcached patch
>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:   Sun Jun 16 08:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306160810.r5G8AXJf059339>