From b10865c5d4167d2efaaa3ecd4af34428f756f266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Sat, 2 May 2026 17:09:54 -0300 Subject: [PATCH] Keep plugin bug label for XS crashes without $@ The else branch handles a rare case where XS libraries (Sys::Virt, Net::SNMP) crash without setting $@. This IS a plugin bug, so keep that label and the debug hint. Only the common case (die with $@) gets the clean passthrough. --- xCAT-server/sbin/xcatd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index e10faa926..0d995fcf1 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -2091,7 +2091,8 @@ sub plugin_command { chomp(my $eval_err = $@); $error = "$modname: $eval_err"; } else { - $error = "$modname: unexpected error (pid $$, $$progname)"; + # XS libraries (Sys::Virt, Net::SNMP) can crash without setting $@ + $error = "$modname plugin bug (pid $$): died without setting an error. Run xcatd -f to debug"; } if (scalar(@nodes)) { $error .= " [nodes: " . join(",", @nodes) . "]";