From: Ian Campbell Subject: Re: The segmentfault when using xl create domU Date: Wed, 16 Apr 2014 10:21:19 +0100 Message-ID: <1397640079.24638.134.camel@kazak.uk.xensource.com> References: <25f20e60.4a87.145633bba97.Coremail.duqi_2009@163.com> <1397552021.24638.13.camel@kazak.uk.xensource.com> <78496d24.5d.14564c71cc0.Coremail.duqi_2009@163.com> <534D3E54.9060008@linaro.org> <534DAD89.1040604@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <534DAD89.1040604@samsung.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Huang Cc: "Stefano Stabellini (Xen mainlister)" , duqi , Julien Grall , =?UTF-8?Q?=E5=AE=AB=E6=99=93=E5=88=A9?= , hdegoede , "bjzhang@suse.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org 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