All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: osstest service owner <osstest-admin@xenproject.org>,
	Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [osstest test] 60149: regressions - FAIL
Date: Fri, 31 Jul 2015 10:54:09 +0100	[thread overview]
Message-ID: <1438336449.30740.37.camel@citrix.com> (raw)
In-Reply-To: <1438336042.30740.34.camel@citrix.com>

On Fri, 2015-07-31 at 10:47 +0100, Ian Campbell wrote:
> 2015-07-30 23:02:32 Z runvar store:
> > redhat_cfgpath=/etc/xen/redhat.guest.osstest.cfg
> > 2015-07-30 23:02:32 Z executing scp ... /home/logs/logs/60149/test
> > -amd64
> > -i386-qemuu-rhel6hvm-amd/pinot1--redhat.guest.osstest.cfg 
> > root@172.16.144.35:/etc/xen/redhat.guest.osstest.cfg
> > 2015-07-30 23:02:33 Z executing ssh ... root@172.16.144.35        
> >  (echo 
> > xenvnc; echo xenvnc) | vncpasswd redhat.vncpw
> > 2015-07-30 23:02:33 Z executing ssh ... root@172.16.144.35 readlink 
> > /dev/pinot1/redhat.guest.osstest-disk
> > 2015-07-30 23:02:33 Z executing ssh ... root@172.16.144.35 lvdisplay -
> > -colon /dev/pinot1/redhat.guest.osstest-disk
> > Can't call method "create" on unblessed reference at 
> > Osstest/TestSupport.pm line 1436.
> 
> I can't explain this one yet.
> 
> Calling a method on an undefined value results in a different message,
> "Can't call method "create" on an undefined value", so somehow
> toolstack($ho) is an actual reference, but an unblessed one. I haven't
> figured out how that can have happened yet.

$ cat t.pl
#!/usr/bin/perl -w

use strict;

my $foo = {};

my $baz = $foo->{Bar}->{Name} =~ m/123/ ? "A" : "B";

print "$baz\n";
$foo->{Bar}->create();
$ ./t.pl
Use of uninitialized value in pattern match (m//) at /home/ianc/t.pl line 7.
B
Can't call method "create" on unblessed reference at /home/ianc/t.pl line 10.

Whereas with:
    my $baz = $foo->{Bar} =~ m/123/ ? "A" : "B";
the error is:
    Can't call method "create" on an undefined value at /home/ianc/t.pl line 10.

IOW something about:
    $foo->{Bar}->{Name} =~ m/123/ ? "A" : "B";
causes $foo->{Bar} to be initialised.

IOW I think the fix to more_prepareguest_hvm is going to fix this too.

I'll fold that in, drop the patch which does make test and force push to
osstest's pretest, then I'll kill the current flight.

Ian.

  reply	other threads:[~2015-07-31  9:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <osstest-60149-mainreport@xen.org>
2015-07-31  6:40 ` [osstest test] 60149: regressions - FAIL Ian Campbell
2015-07-31  8:49   ` Ian Campbell
2015-07-31  8:50     ` Wei Liu
2015-07-31  9:47   ` Ian Campbell
2015-07-31  9:54     ` Ian Campbell [this message]
2015-07-31 10:15       ` Ian Campbell
2015-07-31  9:54     ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1438336449.30740.37.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=osstest-admin@xenproject.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.