O'Reilly logo

Redis 4.x Cookbook by Zuofei Wang, Pengcheng Huang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

The steps for troubleshooting crash issues are as follows:

  1. Simulate the crash using the DEBUG SEGFAULT command:
$ bin/redis-cli DEBUG SEGFAULT
Error: Server closed the connection
  1. Check the log of the Redis instance after it crashes:
=== REDIS BUG REPORT START: Cut & paste starting from here ===
1710:M 07 Jan 20:58:01.324 # Redis 4.0.1 crashed by signal: 11
1710:M 07 Jan 20:58:01.324 # Crashed running the instruction at: 0x469cd0
1710:M 07 Jan 20:58:01.324 # Accessing address: 0xffffffffffffffff
1710:M 07 Jan 20:58:01.324 # Failed assertion: <no assertion failed> (<no file>:0)
    
------ STACK TRACE ------
EIP:
bin/redis-server 0.0.0.0:6379(debugCommand+0x250)[0x469cd0]
    
Backtrace:
bin/redis-server 0.0.0.0:6379(logStackTrace+0x45)[0x46ab25] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required