What steps will reproduce the problem?
1. Install & run
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.7/lib:/usr/local/lib
memcachedb -p21201 -d -r -u raru -H /home/raru/dev/local/tmp/memcahedb/test -N
-v
2. Test with telnet
telnet localhost 21201
set test 0 0 4
get test
What is the expected output? What do you see instead?
Set seems to work.
But instead of getting "test" value I get a SEGFAULT and memcachedb process
dies.
What version of the product are you using? On what operating system?
raru@P16661:~/dev/local/tmp/memcahedb/test$ uname -a
Linux P16661 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:19:35 UTC 2013 i686
i686 i686 GNU/Linux
berkeleydb -> db-4.7.25
libevent -> libevent-2.0.21-stable
memcachedb -> memcachedb-1.2.0
Please provide any additional information below.
Program received signal SIGSEGV, Segmentation fault.
0xb7e956e1 in __ham_get_h_ffactor () from
/usr/local/BerkeleyDB.4.7/lib/libdb-4.7.so
(gdb) back
#0 0xb7e956e1 in __ham_get_h_ffactor () from
/usr/local/BerkeleyDB.4.7/lib/libdb-4.7.so
#1 0x0804ea5f in item_get (key=0x8070214 "test", nkey=4) at item.c:232
#2 0x0804c5f8 in process_get_command (tokens=<optimized out>, c=<optimized
out>, ntokens=<optimized out>) at memcachedb.c:1004
#3 process_command (command=<optimized out>, c=0x8070120) at memcachedb.c:1387
#4 try_read_command (c=0x8070120) at memcachedb.c:1470
#5 drive_machine (c=<optimized out>) at memcachedb.c:1737
#6 event_handler (fd=32, which=2, arg=0x8070120) at memcachedb.c:1926
#7 0xb7e073fa in event_process_active_single_queue (activeq=0x8059318,
base=<optimized out>) at event.c:1350
#8 event_process_active (base=<optimized out>) at event.c:1420
#9 event_base_loop (base=0x8059008, flags=flags@entry=0) at event.c:1621
#10 0x0804a5a4 in main (argc=9, argv=0xbfffefe4) at memcachedb.c:2706
(gdb)
Original issue reported on code.google.com by leroux....@gmail.com on 15 May 2014 at 9:56
Original issue reported on code.google.com by
leroux....@gmail.com
on 15 May 2014 at 9:56