-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Unclear if this is modjs or keydb related, but I am seeing crashes.
I believe it has to do with a high volume of logging - as when I disable my logging function (which calls keydb.log) then the crashes tend to stop happening. I can trigger it fairly reliably if I enable logging and run my script with a large amount of data. If I run the same script with a small volume of calls/data, then it does not crash.
bug report details:
=== KEYDB BUG REPORT START: Cut & paste starting from here ===
1:22:M 09 Nov 2020 16:52:06.950 # KeyDB 6.0.16 crashed by signal: 11
1:22:M 09 Nov 2020 16:52:06.950 # Crashed running the instruction at: 0x7f2ad998232a
1:22:M 09 Nov 2020 16:52:06.950 # Accessing address: (nil)
1:22:M 09 Nov 2020 16:52:06.950 # Failed assertion: <no assertion failed> (<no file>:0)
------ STACK TRACE ------
EIP:
/modjs-modules/modjs.so(v8::internal::RootIndexMap::RootIndexMap(v8::internal::Isolate*)+0x3a) [0x7f2ad998232a]
Backtrace:
keydb-server *:6379(logStackTrace(ucontext_t*)+0x6b) [0x555a80ea492b]
keydb-server *:6379(sigsegvHandler(int, siginfo_t*, void*)+0xc9) [0x555a80ea50c9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0) [0x7f2ae20e08a0]
/modjs-modules/modjs.so(v8::internal::RootIndexMap::RootIndexMap(v8::internal::Isolate*)+0x3a) [0x7f2ad998232a]
/modjs-modules/modjs.so(v8::internal::compiler::JSHeapBroker::JSHeapBroker(v8::internal::Isolate*, v8::internal::Zone*, bool, bool)+0x67) [0x7f2ada15e067]
/modjs-modules/modjs.so(v8::internal::compiler::PipelineData::PipelineData(v8::internal::compiler::ZoneStats*, v8::internal::Isolate*, v8::internal::OptimizedCompilationInfo*, v8::internal::compiler::PipelineStatistics*, bool)+0x1a5) [0x7f2ad9b3a265]
/modjs-modules/modjs.so(v8::internal::compiler::PipelineCompilationJob::PipelineCompilationJob(v8::internal::Isolate*, v8::internal::Handle<v8::internal::SharedFunctionInfo>, v8::internal::Handle<v8::internal::JSFunction>, v8::internal::BailoutId, v8::internal::JavaScriptFrame*)+0x1b3) [0x7f2ad9b39ee3]
/modjs-modules/modjs.so(v8::internal::compiler::Pipeline::NewCompilationJob(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSFunction>, bool, v8::internal::BailoutId, v8::internal::JavaScriptFrame*)+0xa4) [0x7f2ad9b44044]
/modjs-modules/modjs.so(+0x4b8049) [0x7f2ad9612049]
/modjs-modules/modjs.so(v8::internal::Compiler::CompileOptimized(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::ConcurrencyMode)+0x8e) [0x7f2ad9612f9e]
/modjs-modules/modjs.so(v8::internal::Runtime_CompileOptimized_Concurrent(int, unsigned long*, v8::internal::Isolate*)+0x95) [0x7f2ad9e674d5]
/modjs-modules/modjs.so(+0xb17858) [0x7f2ad9c71858]
------ INFO OUTPUT ------
�
# Server
redis_version:6.0.16
redis_git_sha1:63c47a09
redis_git_dirty:1
redis_build_id:f20f71e10920f6e0
redis_mode:standalone
os:Linux 4.19.76-linuxkit x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:7.5.0
process_id:1
run_id:ae5f90e55f15bb107b3c6f5ca6731c0ef6c0c92e
tcp_port:6379
uptime_in_seconds:10
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:11105206
executable:/data/keydb-server
config_file:/etc/keydb/keydb.conf
# Clients
connected_clients:1
client_recent_max_input_buffer:2
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0
current_client_thread:0
thread_0_clients:1
thread_1_clients:0
�
# Memory
used_memory:9673568
used_memory_human:9.23M
used_memory_rss:34697216
used_memory_rss_human:33.09M
used_memory_peak:9673568
used_memory_peak_human:9.23M
used_memory_peak_perc:100.34%
used_memory_overhead:9566170
used_memory_startup:9541208
used_memory_dataset:107398
used_memory_dataset_perc:81.14%
allocator_allocated:10278832
allocator_active:11214848
allocator_resident:13946880
total_system_memory:3142434816
total_system_memory_human:2.93G
used_memory_lua:41984
used_memory_lua_human:41.00K
used_memory_scripts:128
used_memory_scripts_human:128B
number_of_cached_scripts:1
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.09
allocator_frag_bytes:936016
allocator_rss_ratio:1.24
allocator_rss_bytes:2732032
rss_overhead_ratio:2.49
rss_overhead_bytes:20750336
mem_fragmentation_ratio:3.61
mem_fragmentation_bytes:25098216
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:17186
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:1452
rdb_bgsave_in_progress:0
rdb_last_save_time:1604940723
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
module_fork_in_progress:0
module_fork_last_cow_size:0
# Stats
total_connections_received:1
total_commands_processed:996
instantaneous_ops_per_sec:23
total_net_input_bytes:7276
total_net_output_bytes:7109
instantaneous_input_kbps:0.13
instantaneous_output_kbps:0.02
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:0
evicted_keys:0
keyspace_hits:176
keyspace_misses:26
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
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
# Replication
role:master
connected_slaves:0
master_replid:59caeead660634c6dc98213a1cad19123a80ec09
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:0.105267
used_cpu_user:0.133195
used_cpu_sys_children:0.002780
used_cpu_user_children:0.000525
server_threads:2
long_lock_waits:0
# Modules
module:name=modjs,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
# Commandstats
cmdstat_expiremember:calls=20,usec=265,usec_per_call=13.25
cmdstat_RLQ_TICK:calls=11,usec=55026,usec_per_call=5002.36
cmdstat_scard:calls=4,usec=37,usec_per_call=9.25
cmdstat_incr:calls=11,usec=101,usec_per_call=9.18
cmdstat_RLQ_GET_NEXT_JOBS:calls=2,usec=14301,usec_per_call=7150.50
cmdstat_hdel:calls=4,usec=42,usec_per_call=10.50
cmdstat_zadd:calls=142,usec=2391,usec_per_call=16.84
cmdstat_hmset:calls=347,usec=2855,usec_per_call=8.23
cmdstat_zrem:calls=142,usec=1159,usec_per_call=8.16
cmdstat_RLQ_JOB_COMPLETED:calls=4,usec=2634,usec_per_call=658.50
cmdstat_keydb.cron:calls=1,usec=9,usec_per_call=9.00
cmdstat_RLQ_ADD_JOBS:calls=1,usec=8820,usec_per_call=8820.00
cmdstat_hgetall:calls=166,usec=1233,usec_per_call=7.43
cmdstat_zrangebyscore:calls=27,usec=403,usec_per_call=14.93
cmdstat_hget:calls=4,usec=73,usec_per_call=18.25
cmdstat_del:calls=1,usec=5,usec_per_call=5.00
cmdstat_hmget:calls=1,usec=122,usec_per_call=122.00
cmdstat_hincrby:calls=80,usec=655,usec_per_call=8.19
cmdstat_srem:calls=14,usec=143,usec_per_call=10.21
cmdstat_flushall:calls=1,usec=1394,usec_per_call=1394.00
cmdstat_sadd:calls=9,usec=216,usec_per_call=24.00
cmdstat_info:calls=1,usec=67,usec_per_call=67.00
cmdstat_RLQ_INIT:calls=1,usec=681,usec_per_call=681.00
cmdstat_RLQ_DEFINE_LIMIT_TYPE:calls=2,usec=1156,usec_per_call=578.00
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=113,expires=2,avg_ttl=48996
------ CLIENT LIST OUTPUT ------
id=360 addr=172.25.0.1:37754 fd=89 name= age=3 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=36 qbuf-free=32732 obl=0 oll=0 omem=0 events=r cmd=RLQ_JOB_COMPLETED user=default
------ REGISTERS ------
1:22:M 09 Nov 2020 16:52:06.965 #
RAX:00007f2ad080e918 RBX:00007f2ad080e918
RCX:00007f2ac0000000 RDX:0000555a80fc8140
RDI:0000000000000000 RSI:00007f2ad27fab60
RBP:00007f2ad27f8c60 RSP:00007f2ad27f8c20
R8 :0000000000000004 R9 :00000000000002a8
R10:00007f2ad27faab8 R11:0000000000000054
R12:000037be00000000 R13:000037be00000000
R14:00007f2ad087f330 R15:0000000000000000
RIP:00007f2ad998232a EFL:0000000000010202
CSGSFS:002b000000000033
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c2f) -> 00007f2ad08820c8
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c2e) -> 00007f2ad087f300
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c2d) -> 0000000000000000
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c2c) -> 000037be00000000
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c2b) -> 00007f2ad0882170
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c2a) -> 00007f2ad08820c8
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c29) -> 00007f2ada15e067
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c28) -> 00007f2ad27f8ca0
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c27) -> 0000000000000000
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c26) -> 00007f2ac4004b18
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c25) -> 0000000000000000
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c24) -> 000037be00000000
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c23) -> 00007f2ad087f300
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c22) -> 00007f2ad0882040
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c21) -> 00007f2ad99e2ed5
1:22:M 09 Nov 2020 16:52:06.965 # (00007f2ad27f8c20) -> 00007f2ad27f8c40
------ MODULES INFO OUTPUT ------
------ FAST MEMORY TEST ------
1:22:M 09 Nov 2020 16:52:06.965 # Bio thread for job type #0 terminated
1:22:M 09 Nov 2020 16:52:06.965 # Bio thread for job type #1 terminated
1:22:M 09 Nov 2020 16:52:06.966 # Bio thread for job type #2 terminated
*** Preparing to test memory region 37be00000000 (49152 bytes)
*** Preparing to test memory region 37be00040000 (4096 bytes)
*** Preparing to test memory region 37be00080000 (4096 bytes)
*** Preparing to test memory region 37be08080000 (577536 bytes)
*** Preparing to test memory region 37be08140000 (4096 bytes)
*** Preparing to test memory region 37be08180000 (671744 bytes)
*** Preparing to test memory region 37be08240000 (135168 bytes)
*** Preparing to test memory region 37be08300000 (262144 bytes)
*** Preparing to test memory region 555a81211000 (2281472 bytes)
*** Preparing to test memory region 555a814d6000 (700416 bytes)
*** Preparing to test memory region 7f2abc000000 (135168 bytes)
*** Preparing to test memory region 7f2ac4000000 (135168 bytes)
*** Preparing to test memory region 7f2ac8600000 (2097152 bytes)
*** Preparing to test memory region 7f2acb800000 (8388608 bytes)
*** Preparing to test memory region 7f2acc000000 (135168 bytes)
*** Preparing to test memory region 7f2ad0200000 (4194304 bytes)
*** Preparing to test memory region 7f2ad07ff000 (4194304 bytes)
*** Preparing to test memory region 7f2ad0c00000 (8388608 bytes)
*** Preparing to test memory region 7f2ad1400000 (2097152 bytes)
*** Preparing to test memory region 7f2ad17fc000 (8388608 bytes)
*** Preparing to test memory region 7f2ad1ffd000 (8388608 bytes)
*** Preparing to test memory region 7f2ad27fe000 (8388608 bytes)
*** Preparing to test memory region 7f2ad2fff000 (8388608 bytes)
*** Preparing to test memory region 7f2ad3800000 (8388608 bytes)
*** Preparing to test memory region 7f2ad4000000 (135168 bytes)
*** Preparing to test memory region 7f2ad8159000 (8388608 bytes)
*** Preparing to test memory region 7f2ad895a000 (8388608 bytes)
*** Preparing to test memory region 7f2ada89a000 (114688 bytes)
*** Preparing to test memory region 7f2adaabe000 (8388608 bytes)
*** Preparing to test memory region 7f2adb4ca000 (24576 bytes)
*** Preparing to test memory region 7f2adb6e8000 (8192 bytes)
*** Preparing to test memory region 7f2adbb00000 (17825792 bytes)
*** Preparing to test memory region 7f2adcfc1000 (188416 bytes)
*** Preparing to test memory region 7f2add2f7000 (4096 bytes)
*** Preparing to test memory region 7f2add541000 (4096 bytes)
*** Preparing to test memory region 7f2addfcd000 (4096 bytes)
*** Preparing to test memory region 7f2ade4fc000 (4096 bytes)
*** Preparing to test memory region 7f2adee4b000 (4096 bytes)
*** Preparing to test memory region 7f2adf4c1000 (8192 bytes)
*** Preparing to test memory region 7f2adfb03000 (4096 bytes)
*** Preparing to test memory region 7f2ae082a000 (4096 bytes)
*** Preparing to test memory region 7f2ae1224000 (8192 bytes)
*** Preparing to test memory region 7f2ae20ca000 (16384 bytes)
*** Preparing to test memory region 7f2ae22e9000 (16384 bytes)
*** Preparing to test memory region 7f2ae2c28000 (16384 bytes)
*** Preparing to test memory region 7f2ae30f4000 (12288 bytes)
*** Preparing to test memory region 7f2ae3e1e000 (114688 bytes)
*** Preparing to test memory region 7f2ae3e3f000 (4096 bytes)
.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.
Metadata
Metadata
Assignees
Labels
No labels