Skip to contentSkip to conversation

xl: libxl_domain_info: getting domain info list: Bad address

DISCUSSION Julien Grall 4 participants 9 messages Sep 10, 2015 – Sep 11, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

Riku reported me an error on their CI loop while run Xen on the Arndale:

Starting /usr/sbin/xenstored...
Setting domain 0 name, domid and JSON config...
libxl: error: libxl.c:675:libxl_domain_info: getting domain info list: Bad address
libxl: error: libxl_dom.c:1869:libxl__userdata_path: unable to find domain info for domain 0: Bad address cannot store stub json config for Dom0
Starting xenconsoled...
Starting QEMU as disk backend for dom0
/etc/init.d/xencommons: line 102: qemu-system-i386: command not found
libxl: error: libxl.c:656:libxl_list_domain: getting domain info list: Bad address libxl_list_domain failed.

The full log can be found here: https://paste.debian.net/311187

I've looked at the osstest log and was able to find the same errors very often on the arndale. Although, it seems that the tests are still passing. For instance [1].

Does anyone have an idea what could go wrong?

Regards,

[1] http://logs.test-lab.xenproject.org/osstest/logs/61618/test-armhf-armhf-xl-arndale/info.html

Signature · 1 line
Julien Grall
#1 lore raw

Hi,

Quoted 15 lines · Julien Grall

Hi,

Riku reported me an error on their CI loop while run Xen on the Arndale:

Starting /usr/sbin/xenstored...
Setting domain 0 name, domid and JSON config...
libxl: error: libxl.c:675:libxl_domain_info: getting domain info list: Bad address
libxl: error: libxl_dom.c:1869:libxl__userdata_path: unable to find domain info for domain 0: Bad address cannot store stub json config for Dom0
Starting xenconsoled...
Starting QEMU as disk backend for dom0
/etc/init.d/xencommons: line 102: qemu-system-i386: command not found
libxl: error: libxl.c:656:libxl_list_domain: getting domain info list: Bad address libxl_list_domain failed.

Quoted 5 lines

The full log can be found here: https://paste.debian.net/311187

I've looked at the osstest log and was able to find the same errors very often on the arndale. Although, it seems that the tests are still passing. For instance [1].

Hi,

It looks like the errors started Sep 4th, while Sep 3rd was still OK. The Xen binary was same for both test runs, only the kernel (which follows mainline) was changed.

Failing kernel was 807249d3ada1ff28a47c4054ca4edd479421b671 While last succeeding was 1e1a4e8f439113b7820bc7150569f685e1cc2b43

This range includes merge of ARM development updates from Russell King for 4.3, which probably contains the change that breaks Xen.

Riku

#3 lore raw
In reply to Julien Grall
Quoted 4 lines · Julien Grall

Hi,

Riku reported me an error on their CI loop while run Xen on the Arndale:

Quoted 13 lines

Starting /usr/sbin/xenstored...
Setting domain 0 name, domid and JSON config...
libxl: error: libxl.c:675:libxl_domain_info: getting domain info list:
Bad address
libxl: error: libxl_dom.c:1869:libxl__userdata_path: unable to find domain info for domain 0: Bad address
cannot store stub json config for Dom0
Starting xenconsoled...
Starting QEMU as disk backend for dom0 /etc/init.d/xencommons: line 102: qemu-system-i386: command not found
libxl: error: libxl.c:656:libxl_list_domain: getting domain info list:
Bad address
libxl_list_domain failed.

FWIW this caused this recent test failure of linux-next:
http://logs.test-lab.xenproject.org/osstest/logs/61690/test-armhf-armhf-xl-arndale/info.html
I don't know for how long it has been failing, but may or may not be bisectable by the automated bisector.

Quoted 5 lines

The full log can be found here: https://paste.debian.net/311187

I've looked at the osstest log and was able to find the same errors very often on the arndale. Although, it seems that the tests are still passing. For instance [1].

I don't see this message in any of the test logs.

It does appear in the serial logs, but with at "Sep 9 00:47:23" and "Sep
9 01:47:29" while this test was running from "2015-09-09 08:01:32 Z" until
just after "2015-09-09 15:16:16 Z".

This is because the serial logs are not rotated for each new job and they aren't trimmed to only the relevant time span, so they can (and almost always do) contain stuff from previous tests. You generally need to scroll to the end.

There are two related potential improvements which could be made to osstest here. First would be to arrange for the serial logs to be trimmed to the relevant time span the second would be a new ts-logs-audit step which runs after ts-logs-capture and checks for anything amis (e.g. segfaults in the kernel logs).

Obviously if you do the second without the first the code would need to be careful to only look at relevant lines in serial.log (other logs should be ok).

Ian.

#4 lore raw

Hi Ian,

Quoted 19 lines · Ian Campbell
Quoted 4 lines · Julien Grall

Hi,

Riku reported me an error on their CI loop while run Xen on the Arndale:

Quoted 13 lines

Starting /usr/sbin/xenstored...
Setting domain 0 name, domid and JSON config...
libxl: error: libxl.c:675:libxl_domain_info: getting domain info list:
Bad address
libxl: error: libxl_dom.c:1869:libxl__userdata_path: unable to find domain info for domain 0: Bad address
cannot store stub json config for Dom0
Starting xenconsoled...
Starting QEMU as disk backend for dom0 /etc/init.d/xencommons: line 102: qemu-system-i386: command not found
libxl: error: libxl.c:656:libxl_list_domain: getting domain info list:
Bad address
libxl_list_domain failed.

Quoted 4 lines

FWIW this caused this recent test failure of linux-next:
http://logs.test-lab.xenproject.org/osstest/logs/61690/test-armhf-armhf-xl-arndale/info.html
I don't know for how long it has been failing, but may or may not be bisectable by the automated bisector.

It's causing the issue on Linux next since the end of august:
http://logs.test-lab.xenproject.org/osstest/results/history/test-armhf-armhf-xl-arndale/linux-next.html

The same problem appears in linux-linus from the 8th of september:
http://logs.test-lab.xenproject.org/osstest/results/history/test-armhf-
armhf-xl-arndale/linux-linus.html

Maybe the last job can be bisect from v4.2 tag?

Quoted 9 lines
Quoted 6 lines

The full log can be found here: https://paste.debian.net/311187

I've looked at the osstest log and was able to find the same errors very often on the arndale. Although, it seems that the tests are still passing. For instance [1].

I don't see this message in any of the test logs.

Quoted 8 lines

It does appear in the serial logs, but with at "Sep 9 00:47:23" and "Sep
9 01:47:29" while this test was running from "2015-09-09 08:01:32 Z" until
just after "2015-09-09 15:16:16 Z".

This is because the serial logs are not rotated for each new job and they aren't trimmed to only the relevant time span, so they can (and almost always do) contain stuff from previous tests. You generally need to scroll to the end.

Damn, I though the serial logs was only containing the serial messages for the current job.

I was doing some grep in the logs to see when it first appears. Sorry for the confusion

Regards,

Signature · 1 line
Julien Grall
#5 lore raw
Quoted 35 lines · Julien Grall

Hi Ian,

Quoted 22 lines · Ian Campbell
Quoted 5 lines · Julien Grall

Hi,

Riku reported me an error on their CI loop while run Xen on the Arndale:

Quoted 15 lines

Starting /usr/sbin/xenstored...
Setting domain 0 name, domid and JSON config...
libxl: error: libxl.c:675:libxl_domain_info: getting domain info list:
Bad address
libxl: error: libxl_dom.c:1869:libxl__userdata_path: unable to find domain info for domain 0: Bad address
cannot store stub json config for Dom0
Starting xenconsoled...
Starting QEMU as disk backend for dom0 /etc/init.d/xencommons: line 102: qemu-system-i386: command not found
libxl: error: libxl.c:656:libxl_list_domain: getting domain info list:
Bad address
libxl_list_domain failed.

Quoted 5 lines

FWIW this caused this recent test failure of linux-next:
http://logs.test-lab.xenproject.org/osstest/logs/61690/test-armhf-armhf
-xl-arndale/info.html
I don't know for how long it has been failing, but may or may not be bisectable by the automated bisector.

It's causing the issue on Linux next since the end of august:
http://logs.test-lab.xenproject.org/osstest/results/history/test-armhf-ar
mhf-xl-arndale/linux-next.html

Quoted 5 lines

The same problem appears in linux-linus from the 8th of september:
http://logs.test-lab.xenproject.org/osstest/results/history/test-armhf-
armhf-xl-arndale/linux-linus.html

Maybe the last job can be bisect from v4.2 tag?

It looks like it tried and got some really weird error:
http://logs.test-lab.xenproject.org/osstest/results/bisect/linux-linus/test-armhf-armhf-xl-arndale.leak-check--basis%288%29.html

Revision graph generation failed!
Error message:
dot -Tps
-o/home/logs/results/bisect/linux-linus/test-armhf-armhf-xl-arndale.leak-check--basis(8).ps

/home/logs/results/bisect/linux-linus/test-armhf-armhf-xl-arndale.leak-check--basis(8).dot:
512 at Osstest.pm line 357.

It worked for me manually, I wonder if the issue is lack of escaping for the ()'s?

Ian?

Quoted 33 lines
Quoted 18 lines
Quoted 9 lines

The full log can be found here: https://paste.debian.net/311187

I've looked at the osstest log and was able to find the same errors very often
on the arndale. Although, it seems that the tests are still passing. For
instance [1].

I don't see this message in any of the test logs.

It does appear in the serial logs, but with at "Sep 9 00:47:23" and "Sep
9 01:47:29" while this test was running from "2015-09-09 08:01:32 Z"
until
just after "2015-09-09 15:16:16 Z".

Quoted 6 lines

This is because the serial logs are not rotated for each new job and they
aren't trimmed to only the relevant time span, so they can (and almost always do) contain stuff from previous tests. You generally need to scroll
to the end.

Damn, I though the serial logs was only containing the serial messages for the current job.

I was doing some grep in the logs to see when it first appears. Sorry for the confusion

Regards,

#2 lore raw
In reply to Riku Voipio
Quoted 6 lines · Riku Voipio

It looks like the errors started Sep 4th, while Sep 3rd was still OK. The Xen binary was same for both test runs, only the kernel (which follows mainline) was changed.

Failing kernel was 807249d3ada1ff28a47c4054ca4edd479421b671 While last succeeding was 1e1a4e8f439113b7820bc7150569f685e1cc2b43

Thank you for narrowing down.

Quoted 2 lines

This range includes merge of ARM development updates from Russell King for 4.3, which probably contains the change that breaks Xen.

I've been able to reproduce it on midway so it's not related to the Arndale board.

Although, I don't see anything obvious in the log which could break Xen.

I will try a manual bisection to see if I can fingered a specific commit.

Signature · 1 line
Julien Grall
#8 lore raw
In reply to Julien Grall
Quoted 15 lines · Julien Grall

Hi,

Riku reported me an error on their CI loop while run Xen on the Arndale:

Starting /usr/sbin/xenstored...
Setting domain 0 name, domid and JSON config...
libxl: error: libxl.c:675:libxl_domain_info: getting domain info list: Bad address
libxl: error: libxl_dom.c:1869:libxl__userdata_path: unable to find domain info for domain 0: Bad address cannot store stub json config for Dom0
Starting xenconsoled...
Starting QEMU as disk backend for dom0
/etc/init.d/xencommons: line 102: qemu-system-i386: command not found
libxl: error: libxl.c:656:libxl_list_domain: getting domain info list: Bad address libxl_list_domain failed.

Quoted 7 lines

The full log can be found here: https://paste.debian.net/311187

I've looked at the osstest log and was able to find the same errors very often on the arndale. Although, it seems that the tests are still passing. For instance [1].

Does anyone have an idea what could go wrong?

FIY, it was an issue in Linux. Patch has been posted [1]

[1] https://lkml.org/lkml/2015/9/11/373

Signature · 1 line
Julien Grall
#6 lore raw
In reply to Ian Campbell

Ian Campbell writes ("Re: xl: libxl_domain_info: getting domain info list: Bad address"):

Quoted 2 lines

It worked for me manually, I wonder if the issue is lack of escaping for the ()'s?

Yes.

Ian.

Quoted 1 line

From 29e08dfa3a5c5a5aeb51fd01c67345e20cbb33c5 Mon Sep 17 00:00:00 2001

From: Ian Jackson <[email protected]>
Date: Fri, 11 Sep 2015 16:27:08 +0100
Subject: [OSSTEST PATCH] cs-bisection-step: Cope with graph-out (testids)
containing ( ) etc.

cr-try-bisect launders / in the testid but relies on other characters being handled appropriately by cs-bisection-step. So for example it can pass

graph-out=/home/logs/results/bisect/linux-linus/test-armhf-armhf-xl-arndale.leak-check--basis(8)

But cs-bisection step foolishly assumed that the --graph-out argument did not contain any shell metacharacters. Fix this.

Specifically:

* Change invocations of perl's open to use the 3-argument form
* Change invocations of system to pass individual arguments rather than constructing a shell script fragment and relying on the shell to split it up.
* In particular, in the png processing pipeline, use the "sh -ec <script> x <arg>..." technique to pass the input and output filenames in a way that does not expose them to the shell's parser. To avoid making this code more tangled than it already is, also break out the construction of what is now $scriptlet.
* Escape metacharacters in the URIs we put in the html output.

---
 cs-bisection-step |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)
cs-bisection-step +14 -9
index b676044..ebecda4 100755
@@ -32,6 +32,7 @@ use Data::Dumper;
 no warnings qw(recursion);
 use HTML::Entities;
 use Osstest::Executive;
+use URI::Escape;
 
 our @blessings= qw(real real-bisect);
 our @revtuplegenargs= ();
@@ -945,7 +946,7 @@ sub odot ($) { print DOT $_[0] or die $!; }
 sub writegraph () {
     return unless length $graphfile;
 
-    open DOT, "> $graphfile.dot" or die "$graphfile.dot $!";
+    open DOT, ">", "$graphfile.dot" or die "$graphfile.dot $!";
     
     odot(<<END);
 digraph "$job $testid" {
@@ -1005,8 +1006,9 @@ END
 
     my $href= $graphfile;
     $href =~ s,.*/,,;
+    $href = uri_escape($href, '^-._+,=0-9a-zA-Z');
 
-    open HTML, "> $graphfile.html" or die "$graphfile.html $!";
+    open HTML, ">", "$graphfile.html" or die "$graphfile.html $!";
     print HTML <<END
 <html><head><title>bisection $branch $job $testid</title></head>
 <body>
@@ -1021,17 +1023,20 @@ END
 
     if (eval {
         foreach my $fmt (qw(ps png)) {
-            system_checked("dot -T$fmt -o$graphfile.$fmt $graphfile.dot");
+            system_checked("dot", "-T$fmt", "-o$graphfile.$fmt",
+			   "$graphfile.dot");
         }
         1;
     }) {
 	my $gsize = $c{BisectionRevisonGraphSize};
-        system_checked("pngtopnm <$graphfile.png".
-		       " | pnmscale -xysize ".
-		       ($gsize =~ m/^(\d+)x(\d+)$/ ? "$1 $2" :
-			$gsize =~ m/^(\d+)$/ ? "$1 $1" :
-			die "$gsize ?").
-		       " | pnmtopng >$graphfile.mini.png");
+	my $scriptlet = 'pngtopnm <$1';
+	$scriptlet .= " | pnmscale -xysize ";
+	$scriptlet .= $gsize =~ m/^(\d+)x(\d+)$/ ? "$1 $2" :
+	              $gsize =~ m/^(\d+)$/ ? "$1 $1" :
+		      die "$gsize ?";
+	$scriptlet .= ' | pnmtopng >$2';
+        system_checked(qw(sh -ec), $scriptlet, 'x',
+	               "$graphfile.png", "$graphfile.mini.png");
         print HTML <<END or die $!;
 <h2>Revision graph overview</h2>
 <img src="$href.mini.png">
Signature · 1 line
1.7.10.4
Acked-by
#7 lore raw
Quoted 29 lines · Ian Jackson

From 29e08dfa3a5c5a5aeb51fd01c67345e20cbb33c5 Mon Sep 17 00:00:00 2001
From: Ian Jackson <[email protected]>
Date: Fri, 11 Sep 2015 16:27:08 +0100
Subject: [OSSTEST PATCH] cs-bisection-step: Cope with graph-out (testids)
containing ( ) etc.

cr-try-bisect launders / in the testid but relies on other characters being handled appropriately by cs-bisection-step. So for example it can pass

graph-out=/home/logs/results/bisect/linux-linus/test-armhf-armhf-xl
-arndale.leak-check--basis(8)

But cs-bisection step foolishly assumed that the --graph-out argument did not contain any shell metacharacters. Fix this.

Specifically:

* Change invocations of perl's open to use the 3-argument form
* Change invocations of system to pass individual arguments rather than constructing a shell script fragment and relying on the shell to split it up.
* In particular, in the png processing pipeline, use the "sh -ec <script> x <arg>..." technique to pass the input and output filenames in a way that does not expose them to the shell's parser. To avoid making this code more tangled than it already is, also break out the construction of what is now $scriptlet.
* Escape metacharacters in the URIs we put in the html output.

Quoted 1 line