[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] The segmentfault when using xl create domU



It's a compiler bug. For some reasons gcc doesn't generate the right assembly
when -O1 is specified on the command line. Which version of gcc do you 
use(4.7.*?)?
Which distribution are you using? 
Can you also call disas the crash and copy the output?

Gcc 4.8 doesn't seem to be affected.

Hello, 

Thank you very much for your answer!
I replace the gcc 4.7.2 with the gcc 4.8.1 and everything works. 

On the other hand, when I used gcc 4.7.2, I have made the below changes like 
here:

diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 730f6e1..7c8a5cc 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -668,7 +668,8 @@ libxl_vminfo * libxl_list_vm(libxl_ctx *ctx, int *nb_vm_out)
     GC_INIT(ctx);
     libxl_vminfo *ptr = NULL;
     int idx, i, ret;
-    xc_domaininfo_t info[1024];
+    //xc_domaininfo_t info[1024];
+    xc_domaininfo_t info[16];
 
     ret = xc_domain_getinfolist(ctx->xch, 1, ARRAY_SIZE(info), info);
     if (ret < 0) {

As a result , it also works. I'm not sure if this is useful to you . 

Many thanks again.

duqi.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.