Crash report
Paste the complete crash log between the quotes below. Please include a few lines from the log preceding the crash report to provide some context.
16341:M 15 Aug 2020 05:19:07.731 # Server initialized
16341:M 15 Aug 2020 05:19:07.732 * Module 'trie123az' loaded from /usr/local/src/redis-tries/module/trie.so
16341:M 15 Aug 2020 05:19:07.732 * Ready to accept connections
=== REDIS BUG REPORT START: Cut & paste starting from here ===
16341:M 15 Aug 2020 05:33:26.783 # Redis 5.0.8 crashed by signal: 11
16341:M 15 Aug 2020 05:33:26.783 # Crashed running the instruction at: 0x7fc39d6b93a4
16341:M 15 Aug 2020 05:33:26.783 # Accessing address: 0x7fcb9b701618
16341:M 15 Aug 2020 05:33:26.783 # Failed assertion: <no assertion failed> (<no file>:0)
------ STACK TRACE ------
EIP:
/usr/local/src/redis-tries/module/trie.so(trie_add_node+0x14)[0x7fc39d6b93a4]
Backtrace:
/usr/local/bin/redis-server 127.0.0.1:6379(logStackTrace+0x29)[0x4701b9]
/usr/local/bin/redis-server 127.0.0.1:6379(sigsegvHandler+0xac)[0x47085c]
/lib64/libpthread.so.0(+0xf630)[0x7fc3a4ad6630]
/usr/local/src/redis-tries/module/trie.so(trie_add_node+0x14)[0x7fc39d6b93a4]
------ INFO OUTPUT ------
# Server
redis_version:5.0.8
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:7d89825d1a1f2db1
redis_mode:standalone
os:Linux 3.10.0-1127.18.2.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:4.8.5
process_id:16341
run_id:3fde029818d6994aa2691c773071fe02a32b6c72
tcp_port:6379
uptime_in_seconds:859
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:3623286
executable:/usr/local/bin/redis-server
config_file:/etc/redis/redis.conf
# Clients
connected_clients:3
client_recent_max_input_buffer:2
client_recent_max_output_buffer:0
blocked_clients:0
# Memory
used_memory:16001472
used_memory_human:15.26M
used_memory_rss:19988480
used_memory_rss_human:19.06M
used_memory_peak:20335312
used_memory_peak_human:19.39M
used_memory_peak_perc:78.69%
used_memory_overhead:1205938
used_memory_startup:791720
used_memory_dataset:14795534
used_memory_dataset_perc:97.28%
allocator_allocated:16192016
allocator_active:16687104
allocator_resident:21729280
total_system_memory:67340763136
total_system_memory_human:62.72G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.03
allocator_frag_bytes:495088
allocator_rss_ratio:1.30
allocator_rss_bytes:5042176
rss_overhead_ratio:0.92
rss_overhead_bytes:-1740800
mem_fragmentation_ratio:1.25
mem_fragmentation_bytes:3966392
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:83538
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
# Persistence
loading:0
rdb_changes_since_last_save:7385
rdb_bgsave_in_progress:0
rdb_last_save_time:1597457947
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
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
aof_last_cow_size:0
# Stats
total_connections_received:353
total_commands_processed:37640
instantaneous_ops_per_sec:83
total_net_input_bytes:76932929
total_net_output_bytes:257381422
instantaneous_input_kbps:23.63
instantaneous_output_kbps:93.33
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:73
expired_stale_perc:0.00
expired_time_cap_reached_count:0
evicted_keys:0
keyspace_hits:22925
keyspace_misses:7965
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
# Replication
role:master
connected_slaves:0
master_replid:1c102131a7b00afc4eb1920e87868f2e16361539
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0
# CPU
used_cpu_sys:3.463769
used_cpu_user:1.631606
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000
# Commandstats
cmdstat_zadd:calls=343,usec=8750,usec_per_call=25.51
cmdstat_del:calls=252,usec=931,usec_per_call=3.69
cmdstat_ping:calls=352,usec=493,usec_per_call=1.40
cmdstat_set:calls=8031,usec=35749,usec_per_call=4.45
cmdstat_command:calls=1,usec=1789,usec_per_call=1789.00
cmdstat_zremrangebyscore:calls=5,usec=60,usec_per_call=12.00
cmdstat_setex:calls=625,usec=3525,usec_per_call=5.64
cmdstat_info:calls=346,usec=32745,usec_per_call=94.64
cmdstat_auth:calls=3,usec=3,usec_per_call=1.00
cmdstat_mget:calls=2190,usec=14412,usec_per_call=6.58
cmdstat_get:calls=25490,usec=226374,usec_per_call=8.88
cmdstat_trie.contains:calls=2,usec=69,usec_per_call=34.50
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=5981,expires=738,avg_ttl=164797893
------ CLIENT LIST OUTPUT ------
id=253 addr=127.0.0.1:59440 fd=7 name= age=275 idle=77 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=trie.contains
id=354 addr=127.0.0.1:60352 fd=8 name= age=1 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=mget
id=355 addr=127.0.0.1:60356 fd=9 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=49 qbuf-free=32719 obl=0 oll=0 omem=0 events=r cmd=trie.insert
------ CURRENT CLIENT INFO ------
id=355 addr=127.0.0.1:60356 fd=9 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=49 qbuf-free=32719 obl=0 oll=0 omem=0 events=r cmd=trie.insert
argv[0]: 'TRIE.INSERT'
argv[1]: 'ro5'
argv[2]: 'a fortióri'
16341:M 15 Aug 2020 05:33:26.784 # key 'ro5' found in DB containing the following object:
16341:M 15 Aug 2020 05:33:26.784 # Object type: 5
16341:M 15 Aug 2020 05:33:26.784 # Object encoding: 0
16341:M 15 Aug 2020 05:33:26.784 # Object refcount: 1
------ REGISTERS ------
16341:M 15 Aug 2020 05:33:26.784 #
RAX:00007fc39b701800 RBX:00007fcb9b701618
RCX:0000000000000069 RDX:00000000ffffffc3
RDI:00007fc39bc9d728 RSI:00000000ffffffc3
RBP:00007fc39bc9d728 RSP:00007ffeb3c31bd0
R8 :00007fc39b716400 R9 :000000000000037b
R10:000000000000000f R11:0000000000000000
R12:ffffffffffffffc3 R13:00007fc39bc9d610
R14:0000000000000000 R15:0000000000000008
RIP:00007fc39d6b93a4 EFL:0000000000010206
CSGSFS:0000000000000033
16341:M 15 Aug 2020 05:33:26.784 # (00007ffeb3c31bdf) -> 00007fc39b6f2a80
16341:M 15 Aug 2020 05:33:26.784 # (00007ffeb3c31bde) -> 0000000000000000
16341:M 15 Aug 2020 05:33:26.784 # (00007ffeb3c31bdd) -> 0000000000000000
16341:M 15 Aug 2020 05:33:26.784 # (00007ffeb3c31bdc) -> 00007ffe0000002c
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bdb) -> 000000000000000b
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bda) -> 00007fc3a5601730
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd9) -> 00000000b3c31c47
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd8) -> 00007fc3a4216600
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd7) -> 00007ffeb3c31c70
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd6) -> 0000000000000000
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd5) -> 00007fc39d6b95c0
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd4) -> 0000000000000008
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd3) -> 0000000000000008
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd2) -> 00007fc3a4209008
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd1) -> 00007fc39d6b9438
16341:M 15 Aug 2020 05:33:26.785 # (00007ffeb3c31bd0) -> 00000000012968d7
------ FAST MEMORY TEST ------
16341:M 15 Aug 2020 05:33:26.785 # Bio thread for job type #0 terminated
16341:M 15 Aug 2020 05:33:26.785 # Bio thread for job type #1 terminated
16341:M 15 Aug 2020 05:33:26.786 # Bio thread for job type #2 terminated
*** Preparing to test memory region 79c000 (2248704 bytes)
*** Preparing to test memory region 128d000 (135168 bytes)
*** Preparing to test memory region 7fc399034000 (48758784 bytes)
*** Preparing to test memory region 7fc39beb5000 (8388608 bytes)
*** Preparing to test memory region 7fc39c6b6000 (8388608 bytes)
*** Preparing to test memory region 7fc39ceb7000 (8388608 bytes)
*** Preparing to test memory region 7fc3a3e00000 (8388608 bytes)
*** Preparing to test memory region 7fc3a4ac2000 (20480 bytes)
*** Preparing to test memory region 7fc3a4cdf000 (16384 bytes)
*** Preparing to test memory region 7fc3a5601000 (20480 bytes)
*** Preparing to test memory region 7fc3a5610000 (8192 bytes)
*** Preparing to test memory region 7fc3a5614000 (4096 bytes)
.O.O.O.O.O.O.O.O.O.O.O.O
Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.
------ DUMPING CODE AROUND EIP ------
Symbol: trie_add_node (base: 0x7fc39d6b9390)
Module: /usr/local/src/redis-tries/module/trie.so (base 0x7fc39d6b7000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x7fc39d6b9390 -D -b binary -m i386:x86-64 /tmp/dump.bin
------
16341:M 15 Aug 2020 05:33:27.287 # dump of function (hexdump of 148 bytes):
4885ff537428488b4708400fbef689f2488d1cd048833b00740631c05bc3669089f7e8c9feffff48890331c05bc3488d0dde280000488d3554200000488d3d95200000ba80000000e823feffff0f1f0041544885ff554889fd530f849a000000803e004889f3745a0f1f8400000000004889dfe828feffff31d285c089c67e180fb604134c8b45204883c20139d6480fbec84188
=== REDIS BUG REPORT END. Make sure to include from START to END. ===
Aditional information
- OS distribution and version Centos7, Redis 5.0.8, phpredis 5.3.1
- Steps to reproduce (if any)
tried this command in PHP $redis->rawCommand("TRIE.INSERT", $key, $word)
other commands via rawCommand such as set are working fine
Comment From: itamarhaber
Hello @rvencu
Thanks for submitting the crash report. It appears this crash isn't caused by Redis itself, but rather due to a module (trie) that you're using. Please seek assistance from that module's authors/maintainers/community.
Closing this as it isn't related to Redis server.
Comment From: oranagra
@rvencu maybe if you upload your binary I can look up in which line it crashed and make sure this bug was fixed already. or you can translate the crash address yourself...