From 06be815b0c65e0b99a0b98ba4c2fa3909d7ecc80 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 20 Aug 2023 13:41:22 +0100 Subject: Try and enable core dumps --- guix-build-coordinator/coordinator.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guix-build-coordinator/coordinator.scm b/guix-build-coordinator/coordinator.scm index e8fd4f2..3c96d5b 100644 --- a/guix-build-coordinator/coordinator.scm +++ b/guix-build-coordinator/coordinator.scm @@ -397,6 +397,13 @@ (pid-file #f) (trigger-build-allocation? #t) (parallel-hooks '())) + (with-exception-handler + (lambda (exn) + (simple-format #t "failed enabling core dumps: ~A\n" exn)) + (lambda () + (setrlimit 'core #f #f)) + #:unwind? #t) + ;; TODO Work around this causing problems with backtraces ;; https://github.com/wingo/fibers/issues/76 (set-record-type-printer! -- cgit v1.2.3