You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Andy Kurth (JIRA)" <ji...@apache.org> on 2015/12/11 15:32:10 UTC
[jira] [Created] (VCL-922) Windows.pm logoff_users may generate
undefined array reference errors
Andy Kurth created VCL-922:
------------------------------
Summary: Windows.pm logoff_users may generate undefined array reference errors
Key: VCL-922
URL: https://issues.apache.org/jira/browse/VCL-922
Project: VCL
Issue Type: Bug
Components: vcld (backend)
Affects Versions: 2.4.2
Reporter: Andy Kurth
Assignee: Andy Kurth
Fix For: 2.5
The following error may be generated from {{Windows.pm::logoff_users}}:
{noformat}|vcld:die_handler|659| ---- CRITICAL ----
|vcld:die_handler|659| 2015-12-11 00:33:55|vcld:die_handler|659|Can't use an undefined value as an ARRAY reference at /usr/local/vcl/bin/../lib/VCL/Module/OS/Windows.pm line 1700.
|vcld:die_handler|659| ( 0) vcld, die_handler (line: 659)
|vcld:die_handler|659| (-1) Windows.pm, logoff_users (line: 1699)
|vcld:die_handler|659| (-2) Windows.pm, pre_capture (line: 294)
|vcld:die_handler|659| (-3) Version_6.pm, pre_capture (line: 179)
|vcld:die_handler|659| (-4) 7.pm, pre_capture (line: 100)
|vcld:die_handler|659| (-5) VMware.pm, capture (line: 755)
|vcld:die_handler|659| (-6) image.pm, process (line: 179)
|vcld:die_handler|659| (-7) vcld, make_new_child (line: 587)
|vcld:die_handler|659| (-8) vcld, main (line: 348){noformat}
This code can potentially use $logoff_output without checking if it is defined:
{code}
my ($logoff_exit_status, $logoff_output) = $self->execute("$system32_path/logoff.exe $session_identifier /V");
if ($logoff_exit_status == 0) {
notify($ERRORS{'OK'}, 0, "logged off session: $session_identifier, output:\n" . join("\n", @$logoff_output));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)