From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [Fwd: stack overflow "cause" found] Date: Wed, 26 Jul 2006 17:49:15 -0400 Message-ID: <44C7E35B.6010800@redhat.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010808090603070300030006" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------010808090603070300030006 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Ian Pratt wrote: >>> Xen really should not be doing this. We could either uninline some of >>> these functions, or try gcc -O2 or gcc -Os. >> OK, with -Os it doesn't quite build due to the built-ins not being >> inlined. With -O2 the stack usage changes dramatically... > > It would be nice if -O2 worked. Quite a scary change give the amount of inline asm though... Not only does -O2 seem to work, but without it we get stack overflows and things suddenly stop working. I've been beating up my x86-64 system with a few VT and paravirt guests for over an hour now, and it no longer crashes. Without -O2, I can make it crash within minutes... -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan --------------010808090603070300030006 Content-Type: text/plain; name="O2" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="O2" LS0tIHhlbi9SdWxlcy5tay5ub29wCTIwMDYtMDctMjYgMTc6NDQ6MDIuMDAwMDAwMDAwIC0w NDAwCisrKyB4ZW4vUnVsZXMubWsJMjAwNi0wNy0yNiAxNzo0NDoxNi4wMDAwMDAwMDAgLTA0 MDAKQEAgLTUyLDcgKzUyLDcgQEAKIEFMTF9PQkpTLSQoQUNNX1NFQ1VSSVRZKSArPSAkKEJB U0VESVIpL2FjbS9idWlsdF9pbi5vCiBBTExfT0JKUy15ICAgICAgICAgICAgICAgKz0gJChC QVNFRElSKS9hcmNoLyQoVEFSR0VUX0FSQ0gpL2J1aWx0X2luLm8KIAotQ0ZMQUdTLXkgICAg ICAgICAgICAgICArPSAtZyAtRF9fWEVOX18KK0NGTEFHUy15ICAgICAgICAgICAgICAgKz0g LWcgLURfX1hFTl9fIC1PMgogQ0ZMQUdTLSQoQUNNX1NFQ1VSSVRZKSArPSAtREFDTV9TRUNV UklUWQogQ0ZMQUdTLSQodmVyYm9zZSkgICAgICArPSAtRFZFUkJPU0UKIENGTEFHUy0kKGNy YXNoX2RlYnVnKSAgKz0gLURDUkFTSF9ERUJVRwo= --------------010808090603070300030006 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------010808090603070300030006--