From owner-freebsd-sparc64@FreeBSD.ORG Sat Dec 18 20:15:49 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01B4F1065697 for ; Sat, 18 Dec 2010 20:15:49 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 6CE018FC13 for ; Sat, 18 Dec 2010 20:15:48 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id oBIKFlx9078131; Sat, 18 Dec 2010 21:15:47 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id oBIKFlGX078130; Sat, 18 Dec 2010 21:15:47 +0100 (CET) (envelope-from marius) Date: Sat, 18 Dec 2010 21:15:46 +0100 From: Marius Strobl To: Mauro Calderara Message-ID: <20101218201546.GA78049@alchemy.franken.de> References: <9992D608-038D-49BE-9E60-C206DB3A2D45@phys.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9992D608-038D-49BE-9E60-C206DB3A2D45@phys.ethz.ch> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: Unbound from ports: __sparc_utrap: fatal illegal instruction X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 20:15:49 -0000 On Fri, Dec 17, 2010 at 01:38:27PM +0100, Mauro Calderara wrote: > Hi everybody > > I'm trying to get a DNS name resolver running on a sparc64 FreeBSD 8.1 > within a jail. IIRC the base BIND works fine on sprac64. > > After having failed with powerdns-recursor (doesn't even compile) I > tried unbound from /usr/ports/dns/unbound. That one compiles, but it > dies with the following error: > > /usr/local/etc/rc.d/unbound onestart > Starting unbound. > __sparc_utrap: fatal illegal instruction > __sparc_utrap: fatal illegal instruction > Bus error (core dumped) > > /var/log/messages contains: > > pid 36192 (unbound), uid 0: exited on signal 10 (core dumped) > > The error message seems to come from lib/libc/sparc64/sys/ > __sparc_utrap.c. The main question is whether this is more of a > FreeBSD/sparc64 issue or whether that's a software problem. If it is a > FreeBSD/sparc64 problem: what should I try? The error kind of suggests > that the binary contains illegal instructions, which would be a > compiler issue but I can't tell. > > Any hints? > There are also a few other cases in which a program gets killed with SIGILL, f.e. when the stack overflows due to an infinite recursion in the program. Actually, such bugs are more likely to hit than compiler or OS bugs. I'd suggest to build unbound with debugging symbols and to obtain a backtrace in order to get an idea what the actual problem could be. Marius