Skip to content

[CRASH] redis-start command fails on Apple M1 chip #8144

@deepeshhmehta

Description

@deepeshhmehta

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.

deepeshmehta@Deepeshs-Air ~ % arch -x86_64 redis-server
19976:C 06 Dec 2020 20:19:34.947 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19976:C 06 Dec 2020 20:19:34.947 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=19976, just started
19976:C 06 Dec 2020 20:19:34.947 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
19976:M 06 Dec 2020 20:19:34.949 * Increased maximum number of open files to 10032 (it was originally set to 256).



=== REDIS BUG REPORT START: Cut & paste starting from here ===
19976:M 06 Dec 2020 20:19:34.951 # Redis 6.0.9 crashed by signal: 11, si_code: 2
19976:M 06 Dec 2020 20:19:34.951 # Crashed running the instruction at: 0x7fff20451430
19976:M 06 Dec 2020 20:19:34.951 # Accessing address: 0x309e03000
19976:M 06 Dec 2020 20:19:34.951 # Killed by PID: 0, UID: 0
19976:M 06 Dec 2020 20:19:34.951 # Failed assertion: <no assertion failed> (<no file>:0)

------ STACK TRACE ------
EIP:
0   libsystem_platform.dylib            0x00007fff20451430 _platform_memset$VARIANT$Rosetta + 108

Backtrace:
0   redis-server                        0x0000000102d7abb7 logStackTrace + 110
1   redis-server                        0x0000000102d7afd5 sigsegvHandler + 271
2   libsystem_platform.dylib            0x00007fff2044ed7d _sigtramp + 29
3   libsystem_malloc.dylib              0x00007fff202347aa tiny_free_no_lock + 1116
4   redis-server                        0x0000000102dcb0c3 luaD_call + 97
5   ???                                 0x0000000032aaaba2 0x0 + 850045858

------ INFO OUTPUT ------
# Server
redis_version:6.0.9
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:ec508acaad782189
redis_mode:standalone
os:Darwin 20.1.0 x86_64
arch_bits:64
multiplexing_api:kqueue
atomicvar_api:atomic-builtin
gcc_version:4.2.1
process_id:19976
run_id:fa31ad16e34ab8d9a05671c7fc952793a755d6d2
tcp_port:6379
uptime_in_seconds:0
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:13468454
executable:/Users/deepeshmehta/redis-server
config_file:
io_threads_active:0

# Clients
connected_clients:0
client_recent_max_input_buffer:0
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0

# Memory
used_memory:1019296
used_memory_human:995.41K
used_memory_rss:0
used_memory_rss_human:0B
used_memory_peak:1019296
used_memory_peak_human:995.41K
used_memory_peak_perc:inf%
used_memory_overhead:0
used_memory_startup:0
used_memory_dataset:1019296
used_memory_dataset_perc:100.00%
allocator_allocated:0
allocator_active:0
allocator_resident:0
total_system_memory:8589934592
total_system_memory_human:8.00G
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:nan
allocator_frag_bytes:0
allocator_rss_ratio:nan
allocator_rss_bytes:0
rss_overhead_ratio:nan
rss_overhead_bytes:0
mem_fragmentation_ratio:nan
mem_fragmentation_bytes:0
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:0
mem_aof_buffer:0
mem_allocator:libc
active_defrag_running:0
lazyfree_pending_objects:0

# Persistence
loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1607303974
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:0
total_commands_processed:0
instantaneous_ops_per_sec:0
total_net_input_bytes:0
total_net_output_bytes:0
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
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
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
total_reads_processed:0
total_writes_processed:0
io_threaded_reads_processed:0
io_threaded_writes_processed:0

# Replication
role:master
connected_slaves:0
master_replid:5b711d973bc9bf978fd16ed53e5352462ab04934
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.010534
used_cpu_user:0.019080
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000

# Modules

# Commandstats

# Cluster
cluster_enabled:0

# Keyspace

------ CLIENT LIST OUTPUT ------

------ REGISTERS ------
19976:M 06 Dec 2020 20:19:34.952 # 
RAX:0000000309e02cc0 RBX:0000000000000013
RCX:0000000309e03000 RDX:00007f954ce0290e
RDI:0000000309e02c68 RSI:0000000000000000
RBP:0000000309e02a90 RSP:0000000309e028a8
R8 :0000000000000000 R9 :0000000309e02960
R10:0000000102de67b3 R11:ffffffffffffffff
R12:0000000309e02b30 R13:00000000000000ff
R14:0000000102de7127 R15:0000000102e17740
RIP:00007fff20451430 EFL:0000000000000202
CS :000000000000002b FS:0000000000000000  GS:0000000000000000
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b7) -> 000000010b8cca00
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b6) -> 0000000000000006
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b5) -> 0000000000000000
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b4) -> 0000000000002800
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b3) -> 0000000000000000
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b2) -> 00007fff20232020
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b1) -> 0000000102df5bca
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028b0) -> 0000000102d894d6
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028af) -> 0000000309e02a20
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028ae) -> 00007f9856c00000
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028ad) -> 0000000102de8d38
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028ac) -> 00000000000018eb
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028ab) -> 0000000102de3bcd
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028aa) -> 0000000309e02c68
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028a9) -> 00007f9856c5a2c0
19976:M 06 Dec 2020 20:19:34.952 # (0000000309e028a8) -> 0000000102d99ebb

------ MODULES INFO OUTPUT ------

------ DUMPING CODE AROUND EIP ------
Symbol: _platform_memset$VARIANT$Rosetta (base: 0x7fff204513c4)
Module: /usr/lib/system/libsystem_platform.dylib (base 0x7fff2044b000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x7fff204513c4 -D -b binary -m i386:x86-64 /tmp/dump.bin
------
19976:M 06 Dec 2020 20:19:34.953 # dump of function (hexdump of 236 bytes):
81e6ff00000048b90101010101010101480faff14889f94883fa400f82360100004881fa008000000f82a00000000faef0480fc337480fc37708480fc37710480fc37718480fc37720480fc37728480fc37730480fc37738488d4f404883e1c04801fa488d41404829c27631480fc331480fc37108480fc37110480fc37118480fc37120480fc37128480fc37130480fc371384883c1404883ea4077cf4801d1480fc331480fc37108480fc37110480fc37118480fc37120480fc37128480fc37130480fc371380faef84889f8c3488937488977084889771048897718488977204889772848897730488977

=== REDIS BUG REPORT END. Make sure to include from START to END. ===

Aditional information

image'
2. Macbook Air M1 chip

  1. https://redis.io/topics/quickstart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions