forked from lix-project/hydra
Log segfaults from the evaluator
This commit is contained in:
parent
152c392198
commit
c96e427ec0
|
@ -735,7 +735,10 @@ sub evalJobs {
|
||||||
|
|
||||||
(my $res, my $jobsXml, my $stderr) = captureStdoutStderr(10800,
|
(my $res, my $jobsXml, my $stderr) = captureStdoutStderr(10800,
|
||||||
$evaluator, $nixExprFullPath, "--gc-roots-dir", getGCRootsDir, "-j", 1, inputsToArgs($inputInfo, $exprType));
|
$evaluator, $nixExprFullPath, "--gc-roots-dir", getGCRootsDir, "-j", 1, inputsToArgs($inputInfo, $exprType));
|
||||||
die "cannot evaluate the Nix expression containing the jobs:\n$stderr" if $res;
|
if ($res) {
|
||||||
|
die "$evaluator returned " . ($res & 127 ? "signal $res" : "exit code " . ($res >> 8))
|
||||||
|
. ":\n" . ($stderr ? $stderr : "(no output)\n");
|
||||||
|
}
|
||||||
|
|
||||||
print STDERR "$stderr";
|
print STDERR "$stderr";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue