Redis DEBUG SEGFAULT performs an invalid memory access that crashes Redis. It is used to simulate bugs during the development.
Following is the basic syntax of Redis DEBUG SEGFAULT command.
redis 127.0.0.1:6379> DEBUG SEGFAULT
redis 127.0.0.1:6379> DEBUG SEGFAULT Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected>