Automatically grab and save core dumps if any are generated
authorSteve McIntyre <steve@einval.com>
Fri, 26 Oct 2018 15:34:13 +0000 (16:34 +0100)
committerSteve McIntyre <steve@einval.com>
Fri, 26 Oct 2018 15:34:13 +0000 (16:34 +0100)
build-config/sbuild/sbuild.conf

index 9f91a87..c2211b1 100644 (file)
@@ -558,7 +558,7 @@ $external_commands = {
                         'chroot-setup-commands' => [],
                         'chroot-update-failed-commands' => [],
                         'finished-build-commands' => [],
-                        'post-build-commands' => [],
+                        'post-build-commands' => ['%SBUILD_CHROOT_EXEC sh -c "cd %b && find . -type f -name core | xargs tar cf - " | cat > %d-core.tar; if [ ! -s %d-core.tar ]; then rm -f %d-core.tar; else gzip -9 %d-core.tar; fi'],
                         'pre-build-commands' => [],
                         'starting-build-commands' => ['ulimit -c'],
 };