Allow enabling core dumps from builds #268

Closed
opened 2024-05-05 22:56:18 +00:00 by jade · 0 comments
Owner

Currently Lix doesn't let you enable core dumps from builds to land in systemd-coredump. They are disabled "by default" (except nobody thought to actually put in a setting to retain them):

/* Disable core dumps by default. */
struct rlimit limit = { 0, RLIM_INFINITY };
setrlimit(RLIMIT_CORE, &limit);

It's true that one can change the rlimit from inside the derivation since it is setting the soft limit, but this is inconvenient and sometimes impossible.

The action item on this would be to add a setting that enables core dumps and sets the soft limit to unlimited as well.

Currently Lix doesn't let you enable core dumps from builds to land in systemd-coredump. They are disabled "by default" (except nobody thought to actually put in a setting to retain them): https://git.lix.systems/lix-project/lix/src/commit/9909a175bf1602e7bb4ebfc1c9befeaa56da1fb4/src/libstore/build/local-derivation-goal.cc#L1978-L1980 It's true that one can change the rlimit from inside the derivation since it is setting the soft limit, but this is inconvenient and sometimes impossible. The action item on this would be to add a setting that enables core dumps and sets the soft limit to unlimited as well.
jade added the
ux
label 2024-05-05 22:56:18 +00:00
qyriad added the
Area/store
label 2024-05-06 00:53:09 +00:00
midnightveil was assigned by jade 2024-05-10 06:20:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#268
No description provided.