• Oran Agra's avatar
    Fix crash report killed by message (#8683) · b45b0d81
    Oran Agra authored
    We sometimes see the crash report saying we were killed by a random
    process even in cases where the crash was spontanius in redis.
    for instance, crashes found by the corrupt-dump test.
    
    It looks like this si_pid is sometimes left uninitialized, and a good
    way to tell if the crash originated in redis or trigged by outside is to
    look at si_code, real signal codes are always > 0, and ones generated by
    kill are have si_code of 0 or below.
    b45b0d81
debug.c 74.4 KB