Message ID | 534DAD89.1040604@samsung.com |
---|---|
State | New |
Headers | show |
On Tue, 2014-04-15 at 17:07 -0500, Wei Huang wrote: > > 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. > > > > FYI, I got this output from 4.7 with Linaro Ubuntu raring (gcc 4.7.3). > >[...] > I saw the same thing on my system and ack'ed that this is compiler > related. My compiler is 4.7.3. I was able to fix it with the following hack: Are you also using the Linaro compiler by any chance? I've added warnings to http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling and http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions#Building_Xen_on_ARM
On 04/16/2014 04:21 AM, Ian Campbell wrote: > On Tue, 2014-04-15 at 17:07 -0500, Wei Huang wrote: >>> 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. >>> >>> FYI, I got this output from 4.7 with Linaro Ubuntu raring (gcc 4.7.3). >>> [...] >> I saw the same thing on my system and ack'ed that this is compiler >> related. My compiler is 4.7.3. I was able to fix it with the following hack: > > Are you also using the Linaro compiler by any chance? I think so. Here is the GCC --version info: arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 > > I've added warnings to > http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling > and > http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions#Building_Xen_on_ARM > >
On 04/16/2014 04:50 PM, Wei Huang wrote: > On 04/16/2014 04:21 AM, Ian Campbell wrote: >> On Tue, 2014-04-15 at 17:07 -0500, Wei Huang wrote: >>>> 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. >>>> >>>> FYI, I got this output from 4.7 with Linaro Ubuntu raring (gcc 4.7.3). >>>> [...] >>> I saw the same thing on my system and ack'ed that this is compiler >>> related. My compiler is 4.7.3. I was able to fix it with the >>> following hack: >> >> Are you also using the Linaro compiler by any chance? > I think so. Here is the GCC --version info: > arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 Linaro as shipped a new version of GCC 4.7 (based on 4.7.4) a couple of days ago. They don't plan to release another version of 4.7. So I don't think it's useful to report the bug. Unless it's also happen with upstream GCC. Regards,
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 730f6e1..14eac6b 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -667,7 +667,8 @@ libxl_vminfo * libxl_list_vm(libxl_ctx *ctx, int *nb_vm_out) { GC_INIT(ctx); libxl_vminfo *ptr = NULL; - int idx, i, ret; + volatile int idx, i; + int ret; xc_domaininfo_t info[1024];