Closed bayandin closed 5 months ago
Initially spotted on Staging and Production, haven't tried to reproduce it locally.
We have a logic in compute_ctl that checks core dumps and prints stack traces: https://github.com/neondatabase/neon/blob/350865392cd5bb38eb2a7ff6f45b36f11ac8a911/compute_tools/src/compute.rs#L1000-L1010
compute_ctl
I expect, segfaulted postgres to produce a core dump, and compute_ctl prints the stack trace from it.
/proc/sys/kernel/core_pattern -> core /proc/sys/kernel/core_uses_pid -> 1 ulimit -c -> unlimited
But in neonVM, we have:
/proc/sys/kernel/core_pattern -> core /proc/sys/kernel/core_uses_pid -> 0 ulimit -c -> 0
Environment
Initially spotted on Staging and Production, haven't tried to reproduce it locally.
Steps to reproduce
Expected result
We have a logic in
compute_ctl
that checks core dumps and prints stack traces: https://github.com/neondatabase/neon/blob/350865392cd5bb38eb2a7ff6f45b36f11ac8a911/compute_tools/src/compute.rs#L1000-L1010I expect, segfaulted postgres to produce a core dump, and
compute_ctl
prints the stack trace from it.Actual result
compute_ctl
comment, and how it's configured for k8s pods):But in neonVM, we have:
Other logs, links