Skip to content

Geo module commands crash redis server #9

@jvalentine

Description

@jvalentine

Hi

I've followed all the instructions, regarding installing redis, then using dynamic redis, and then loading the module via redis-cli but the redis server is crashing everytime I run a geo command.

I've tested the poong module, to check it's not an issue with the redis / module install. I've checked INFO modules and can see both poong and geo have been loaded. Normal and poong redis commands run perfectly fine, but all geo commands crash the server, see logs below.

I've used both the master branch and 0.5.2 tag to check incase was a bug in the master code, but it makes no difference.

I've tried setting maxmemory to 1024mb and unlimited max memory incase it was a memory issue, though there is 4gb avaliable on the box.

Have you seen this issue before or know what could be causing it? This Geo module does what I need perfectly, but just can't get past this obstacle.

Thanks

JV

`=== REDIS BUG REPORT START: Cut & paste starting from here ===
[31750] 10 Mar 11:06:51.186 # Redis 2.8.19-dynamic-0.5.2 crashed by signal: 4
[31750] 10 Mar 11:06:51.186 # Failed assertion: (:0)
[31750] 10 Mar 11:06:51.186 # --- STACK TRACE
redis-server *:6379(logStackTrace+0x43)[0x44c993]
/home/jonv/repos/krmt/geo.so(geoEncodeCommand+0xbc)[0x7f54649f262c]
/lib64/libpthread.so.0(+0xf710)[0x7f546ce0f710]
/home/jonv/repos/krmt/geo.so(geoEncodeCommand+0xbc)[0x7f54649f262c]
redis-server *:6379(call+0x72)[0x41de02]
redis-server *:6379(processCommand+0x3a5)[0x41e3e5]
redis-server *:6379(processInputBuffer+0x4f)[0x42a25f]
redis-server *:6379(readQueryFromClient+0xc2)[0x42a392]
redis-server *:6379(aeProcessEvents+0x13c)[0x4187dc]
redis-server *:6379(aeMain+0x2b)[0x418a9b]
redis-server *:6379(main+0x2bd)[0x421bed]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f546ca8ad5d]
redis-server *:6379[0x417df9]
[31750] 10 Mar 11:06:51.186 # --- INFO OUTPUT
[31750] 10 Mar 11:06:51.187 # # Server
redis_version:2.8.19-dynamic-0.5.2
redis_git_sha1:aae37b1b
redis_git_dirty:1
redis_build_id:ba883de8ab369c87
redis_mode:standalone
os:Linux 2.6.32-504.8.1.el6.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.7
process_id:31750
run_id:bd1b09be21921c42816ec1a970b1f60d301b8040
tcp_port:6379
uptime_in_seconds:183
uptime_in_days:0
hz:10
lru_clock:16699467
config_file:/home/jonv/redis.conf
loaded_modules:2

Clients

connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

Memory

used_memory:516072
used_memory_human:503.98K
used_memory_rss:2355200
used_memory_peak:516072
used_memory_peak_human:503.98K
used_memory_lua:35840
mem_fragmentation_ratio:4.56
mem_allocator:jemalloc-3.6.0

Persistence

loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1425985428
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok

Stats

total_connections_received:8
total_commands_processed:7
instantaneous_ops_per_sec:0
total_net_input_bytes:327
total_net_output_bytes:3390
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0

Replication

role:master
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

CPU

used_cpu_sys:0.17
used_cpu_user:0.05
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

Commandstats

cmdstat_info:calls=2,usec=138,usec_per_call=69.00
cmdstat_config:calls=3,usec=3162,usec_per_call=1054.00
cmdstat_poong:calls=1,usec=7,usec_per_call=7.00
cmdstat_pinger:calls=1,usec=3,usec_per_call=3.00

Modules

module_sh.matt.test.pong:filename=/home/jonv/repos/krmt/poong.so,compiled_against=2.8.19-dynamic-0.5.2,module_version=0.0001,first_loaded=1425985437,last_loaded=1425985437,commands=poong,pooooong,pooong,pinger
module_sh.matt.geo:filename=/home/jonv/repos/krmt/geo.so,compiled_against=2.8.19-dynamic-0.5.2,module_version=0.3,first_loaded=1425985589,last_loaded=1425985589,commands=geoadd,georadius,georadiusbymember,geoencode,geodecode
module_:filename=,compiled_against=2.8.19-dynamic-0.5.2,module_version=2.8.19-dynamic-0.5.2,first_loaded=0,last_loaded=0,commands=get,set,setnx,setex,psetex,append,strlen,del,exists,setbit,getbit,setrange,getrange,substr,incr,decr,mget,rpush,lpush,rpushx,lpushx,linsert,rpop,lpop,brpop,brpoplpush,blpop,llen,lindex,lset,lrange,ltrim,lrem,rpoplpush,sadd,srem,smove,sismember,scard,spop,srandmember,sinter,sinterstore,sunion,sunionstore,sdiff,sdiffstore,smembers,sscan,zadd,zincrby,zrem,zremrangebyscore,zremrangebyrank,zremrangebylex,zunionstore,zinterstore,zrange,zrangebyscore,zrevrangebyscore,zrangebylex,zrevrangebylex,zcount,zlexcount,zrevrange,zcard,zscore,zrank,zrevrank,zscan,hset,hsetnx,hget,hmset,hmget,hincrby,hincrbyfloat,hdel,hlen,hkeys,hvals,hgetall,hexists,hscan,incrby,decrby,incrbyfloat,getset,mset,msetnx,randomkey,select,move,rename,renamenx,expire,expireat,pexpire,pexpireat,keys,scan,dbsize,auth,ping,echo,save,bgsave,bgrewriteaof,shutdown,lastsave,type,multi,exec,discard,sync,psync,replconf,flushdb,flushall,sort,info,monitor,ttl,pttl,persist,slaveof,role,debug,config,subscribe,unsubscribe,psubscribe,punsubscribe,publish,pubsub,watch,unwatch,restore,migrate,dump,object,client,eval,evalsha,slowlog,script,time,bitop,bitcount,bitpos,command,pfselftest,pfadd,pfcount,pfmerge,pfdebug,latency

Keyspace

hash_init_value: 1425572137

[31750] 10 Mar 11:06:51.187 # --- CLIENT LIST OUTPUT
[31750] 10 Mar 11:06:51.187 # id=9 addr=127.0.0.1:40705 fd=6 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=geoencode

[31750] 10 Mar 11:06:51.187 # --- CURRENT CLIENT INFO
[31750] 10 Mar 11:06:51.187 # client: id=9 addr=127.0.0.1:40705 fd=6 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=geoencode
[31750] 10 Mar 11:06:51.187 # argv[0]: 'geoencode'
[31750] 10 Mar 11:06:51.187 # argv[1]: '0'
[31750] 10 Mar 11:06:51.187 # argv[2]: '0'
[31750] 10 Mar 11:06:51.187 # --- REGISTERS
[31750] 10 Mar 11:06:51.187 #
RAX:00007f5464bfda70 RBX:00007f5466135000
RCX:00007fffeae5e917 RDX:0000000000000001
RDI:00007f5466135000 RSI:0000000000000000
RBP:0000000000000000 RSP:00007fffeae43350
R8 :0000000000000001 R9 :000000000000000d
R10:0000000000000000 R11:0000000000000246
R12:0000000000000000 R13:0000000000004000
R14:0000000000000003 R15:000510ed25cf3fb1
RIP:00007f54649f262c EFL:0000000000010297
CSGSFS:000000000000e033
[31750] 10 Mar 11:06:51.187 # (00007fffeae4335f) -> 000000000041bbae
[31750] 10 Mar 11:06:51.187 # (00007fffeae4335e) -> 00007f5466012080
[31750] 10 Mar 11:06:51.187 # (00007fffeae4335d) -> 000000000041b329
[31750] 10 Mar 11:06:51.187 # (00007fffeae4335c) -> 0000000000000003
[31750] 10 Mar 11:06:51.187 # (00007fffeae4335b) -> 00007f546613a026
[31750] 10 Mar 11:06:51.187 # (00007fffeae4335a) -> 000000000000000a
[31750] 10 Mar 11:06:51.187 # (00007fffeae43359) -> 00007f5466135000
[31750] 10 Mar 11:06:51.187 # (00007fffeae43358) -> 0000000000000000
[31750] 10 Mar 11:06:51.187 # (00007fffeae43357) -> 0000000000419387
[31750] 10 Mar 11:06:51.187 # (00007fffeae43356) -> 00007fffeae4348c
[31750] 10 Mar 11:06:51.187 # (00007fffeae43355) -> 0000000000000000
[31750] 10 Mar 11:06:51.188 # (00007fffeae43354) -> 00007fffeae43301
[31750] 10 Mar 11:06:51.188 # (00007fffeae43353) -> 0000000000000000
[31750] 10 Mar 11:06:51.188 # (00007fffeae43352) -> 00007fffeae43450
[31750] 10 Mar 11:06:51.188 # (00007fffeae43351) -> 0000000000491d4b
[31750] 10 Mar 11:06:51.188 # (00007fffeae43350) -> 0000000000000000
[31750] 10 Mar 11:06:51.188 # --- FAST MEMORY TEST
[31750] 10 Mar 11:06:51.188 # Bio thread for job type #0 terminated
[31750] 10 Mar 11:06:51.188 # Bio thread for job type #1 terminated
[31750] 10 Mar 11:06:51.596 # Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.
[31750] 10 Mar 11:06:51.596 #
=== REDIS BUG REPORT END. Make sure to include from START to END. ===`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions