From owner-freebsd-arm@FreeBSD.ORG Sat Dec 16 19:29:16 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B4D416A4A7 for ; Sat, 16 Dec 2006 19:29:16 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id D947C43CA1 for ; Sat, 16 Dec 2006 19:29:06 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kBGJT1sF027957; Sat, 16 Dec 2006 20:29:01 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kBGJSrJT000615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Dec 2006 20:28:53 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kBGJSrTe092795; Sat, 16 Dec 2006 20:28:53 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kBGJSrqt092794; Sat, 16 Dec 2006 20:28:53 +0100 (CET) (envelope-from ticso) Date: Sat, 16 Dec 2006 20:28:52 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061216192852.GP75351@cicely12.cicely.de> References: <20061216130957.GL75351@cicely12.cicely.de> <20061216.113427.-490997164.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061216.113427.-490997164.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: Bus error with ppp X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2006 19:29:16 -0000 On Sat, Dec 16, 2006 at 11:34:27AM -0700, M. Warner Losh wrote: > In message: <20061216130957.GL75351@cicely12.cicely.de> > Bernd Walter writes: > : I have no clue where to start debugging now. > > The following are issues for arm that are differences with x86: > o unaligned access (which I think generates a SEGV, not BUS) So unaligned access from userland are not corrected. Ok - on alpha SIGBUS is send in case you disable correction. > o Different packing and alignment of data structures causing > mismatches between x86 and arm representations (x86 may > match external ones, while arm doesn't w/o __packed). Interesting point - I often forget about this. > o Characters are unsigned on arm and signed on i386. > > You might want to try a ppp with symbols to see where it is dying. #0 0x0002fd64 in ?? () Doesn't sound like a valid code address. Maybe single step tracing... Will recompile ppp with symbols and without optimization. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de