neondatabase / autoscaling

Postgres vertical autoscaling in k8s
Apache License 2.0
156 stars 21 forks source link

Bug: no coredumps generated if Postgres segfaults #784

Closed bayandin closed 5 months ago

bayandin commented 8 months ago

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-L1010

I expect, segfaulted postgres to produce a core dump, and compute_ctl prints the stack trace from it.

Actual result

But in neonVM, we have:

/proc/sys/kernel/core_pattern -> core
/proc/sys/kernel/core_uses_pid -> 0
ulimit -c -> 0

Other logs, links

stradig commented 7 months ago