Actually, ooms are non-fatal, but the mlockall is.
strace shows:
[pid 521] mlockall(MCL_CURRENT|MCL_FUTURE <unfinished ...> [pid 522] <... getdents resumed> /* 2 entries */, 32768) = 48 [pid 522] getdents(5, /* 0 entries */, 32768) = 0 [pid 522] close(5) = 0 [pid 522] exit_group(0) = ? [pid 521] <... mlockall resumed> ) = -1 ENOMEM (Cannot allocate memory)
Actually, ooms are non-fatal, but the mlockall is.
strace shows:
[pid 521] mlockall( MCL_CURRENT| MCL_FUTURE <unfinished ...>
[pid 522] <... getdents resumed> /* 2 entries */, 32768) = 48
[pid 522] getdents(5, /* 0 entries */, 32768) = 0
[pid 522] close(5) = 0
[pid 522] exit_group(0) = ?
[pid 521] <... mlockall resumed> ) = -1 ENOMEM (Cannot allocate memory)