From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 9 11:18:20 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 232A416A41F for ; Tue, 9 Aug 2005 11:18:20 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail05.syd.optusnet.com.au (mail05.syd.optusnet.com.au [211.29.132.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A4BA43D45 for ; Tue, 9 Aug 2005 11:18:19 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail05.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j79BHvXm002843 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 9 Aug 2005 21:18:00 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j79BHuSR012693; Tue, 9 Aug 2005 21:17:57 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j79BHtGA012692; Tue, 9 Aug 2005 21:17:55 +1000 (EST) (envelope-from pjeremy) Date: Tue, 9 Aug 2005 21:17:54 +1000 From: Peter Jeremy To: Dirk GOUDERS Message-ID: <20050809111754.GG9970@cirb503493.alcatel.com.au> References: <20050806114935.GB7708@cirb503493.alcatel.com.au> <200508061221.j76CLexZ008206@sora.hank.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508061221.j76CLexZ008206@sora.hank.home> User-Agent: Mutt/1.4.2i Cc: hackers@freebsd.org Subject: Re: Finding an illegal instruction in gnucash/guile X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2005 11:18:20 -0000 On Sat, 2005-Aug-06 14:21:40 +0200, Dirk GOUDERS wrote: > > > gdb claims the problem is in libguile. I've tried rebuilding it with > > different CPU and optimisation options (in case I've triggered a gcc > > bug) but the SIGILL remains. > > > > I've had a look through google and not found anything relevant. > > > > Does anyone have any suggestions other than rebuilding the ports from > > scratch with different CPUTYPE and/or CFLAGS? (I'm currently using > > CPUTYPE=athlon-xp and CFLAGS=-O -g). > >I had a similar (if not the same) problem on a 4.11-STABLE machine. >Actually, I am running gnucash on two different 4.11-STABLE machines >-- on one, it worked, on the other, where I installed it some days ago >it didn't. > >Then, I cvsup'ed both machines and the first port I installed on both >was gnucash (the only difference betweeen the two machines was the >order the ports were installed) and now, it works on both machines. Tried that with no effect. I've added some debugging lines to the kernel and found that the SIGILL is triggered in sendsig() when the copyout of a sigframe to the user stack fails. Poking further, it appears that one of the threads is blowing its stack. Manually unwinding the stack suggests that gdb was right and there's very heavy recursion in scm_deval(). Since the thread stack sizes were increased about 6 months ago (at least in -current), this suggests something wrong in one of the ports. -- Peter Jeremy