rust-lang / infra-team

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

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

Open bjorn3 opened 3 months ago

bjorn3 commented 3 months 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 3 months 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 2 months 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 ?

clubby789 commented 1 month ago

Relevant: https://github.com/rust-lang/simpleinfra/pull/618