[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: Show backtraces when using parallel fibers and resource pools
From: |
Christopher Baines |
Subject: |
06/13: Show backtraces when using parallel fibers and resource pools |
Date: |
Fri, 19 Jan 2024 04:57:47 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 46b4c87e92a1470198e6c9c6cb1d7e3556f3a3a7
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Jan 18 14:40:05 2024 +0000
Show backtraces when using parallel fibers and resource pools
---
guix-data-service/utils.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/guix-data-service/utils.scm b/guix-data-service/utils.scm
index e1c6d84..09f47f8 100644
--- a/guix-data-service/utils.scm
+++ b/guix-data-service/utils.scm
@@ -387,7 +387,11 @@ available. Return the resource once PROC has returned."
(lambda ()
(call-with-values
(lambda ()
- (proc resource))
+ (with-throw-handler #t
+ (lambda ()
+ (proc resource))
+ (lambda _
+ (backtrace))))
(lambda vals
(put-message pool `(return ,resource))
(apply values vals))))
@@ -433,7 +437,12 @@ available. Return the resource once PROC has returned."
(lambda (exn)
(put-message reply (cons 'exception exn)))
(lambda ()
- (call-with-values thunk
+ (call-with-values
+ (lambda ()
+ (with-throw-handler #t
+ thunk
+ (lambda _
+ (backtrace))))
(lambda vals
(put-message reply vals))))
#:unwind? #t))
- 09/13: Split and instrument parts of inferior-packages->package-metadata-ids, (continued)
- 09/13: Split and instrument parts of inferior-packages->package-metadata-ids, Christopher Baines, 2024/01/19
- 08/13: Rewrite part of insert-missing-data-and-return-all-ids to avoid filter, Christopher Baines, 2024/01/19
- 11/13: Fixup tests, Christopher Baines, 2024/01/19
- 13/13: Try to fix issues with derivations being GC'ed, Christopher Baines, 2024/01/19
- 10/13: Add meaningful parallelism to processing jobs, Christopher Baines, 2024/01/19
- 03/13: Add back inferior heap size reporting, Christopher Baines, 2024/01/19
- 05/13: Make it possible to destroy a resource pool, Christopher Baines, 2024/01/19
- 02/13: Use delete-duplicates/sort! in inferior-packages->license-set-ids, Christopher Baines, 2024/01/19
- 01/13: Use delete-duplicates/sort! in insert-missing-data-and-return-all-ids, Christopher Baines, 2024/01/19
- 12/13: Remove drain? #t from process job, Christopher Baines, 2024/01/19
- 06/13: Show backtraces when using parallel fibers and resource pools,
Christopher Baines <=