rust-lang / infra-team

Coordination repository for the Rust infra team
https://www.rust-lang.org/governance/teams/infra
Apache License 2.0
18 stars 9 forks source link

Make core dumps accessible to the user on dev-desktop #133

Open bjorn3 opened 1 month ago

bjorn3 commented 1 month ago

They are currently being routed to apport rather than directly saved to the disk. Apport-cli doesn't allow access to the core dumps at all. It always reports "No pending crash reports.".

bjorn3 commented 1 month ago

This can be done by changing the kernel.core_pattern sysctl to eg core (write core dumps in the working directory of the crashed program) or /tmp/core.%p (write core dumps to /tmp) See https://man7.org/linux/man-pages/man5/core.5.html for more details under the "Naming of core dump files" section.

MarcoIeni commented 4 weeks ago

Hi! Writing core dumps in the current working directory seems the more "discoverable" option for users imo 👍

Do you want to send a PR to https://github.com/rust-lang/simpleinfra ?