You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/12/11 15:40:10 UTC

[jira] [Commented] (VCL-922) Windows.pm logoff_users may generate undefined array reference errors

    [ https://issues.apache.org/jira/browse/VCL-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15052840#comment-15052840 ] 

ASF subversion and git services commented on VCL-922:
-----------------------------------------------------

Commit 1719433 from arkurth@apache.org in branch 'vcl/trunk'
[ https://svn.apache.org/r1719433 ]

VCL-922
Added "if defined" check to Windows.pm::logoff_users to prevent "Can't use an undefined value as an ARRAY reference" errors.

> 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)