From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 11:54:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67D10106567C for ; Wed, 13 Aug 2008 11:54:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id DFA688FC2E for ; Wed, 13 Aug 2008 11:54:17 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7DBsDLO066510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2008 14:54:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7DBsDgM083115; Wed, 13 Aug 2008 14:54:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m7DBsD9k083113; Wed, 13 Aug 2008 14:54:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 13 Aug 2008 14:54:13 +0300 From: Kostik Belousov To: Alexander Leidinger Message-ID: <20080813115413.GF1803@deviant.kiev.zoral.com.ua> References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nYySOmuH/HDX6pKp" Content-Disposition: inline In-Reply-To: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation 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: Wed, 13 Aug 2008 11:54:18 -0000 --nYySOmuH/HDX6pKp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 13, 2008 at 01:28:22PM +0200, Alexander Leidinger wrote: > Quoting "Nate Eldredge" (from Tue, 12 Aug =20 > 2008 23:52:35 -0700 (PDT)): >=20 > >Hi folks, > > > >I recently tried to run a Linux binary of Maple (commercial math =20 > >software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine =20 > >rebooted. I tried it again while watching the console, and no panic =20 > >message appeared to be produced. Does anyone have any ideas on how =20 > >to debug problems of this nature? I realize I may not be able to =20 > >get Maple to work, but in any case the system should not die like =20 > >this, so I can at least try to fix that bug. > > > >Incidentally, is it possible to run kdb with a USB keyboard? =20 > >Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I =20 > >can do nothing except hit the power button. I do have =20 > >hint.atkbd.0.flags=3D"0x1" in /boot/device.hints. Unfortunately I =20 > >don't have a PS/2 keyboard on hand, though I can try and get a hold =20 > >of one if all else fails. >=20 > A guess out of my cristallball: > That's one of the cases which happen if you run a linux program =20 > without branding it as a linux program first. People tend to think it =20 > is not needed, but in some rare circumstances it just causes what you =20 > see, a reboot. So go and identify all binaries (IMPORTANT: but not the = =20 > libraries!), e.g. with the file(1), and use "brandelf -t Linux" on =20 > those programs. That would be an enormous local hole, assuming an native FreeBSD binary may cause system crash. I actually doubt that non-branded elf binary ever start, due to unsatisfied dynamic dependencies. --nYySOmuH/HDX6pKp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiiy2QACgkQC3+MBN1Mb4hrUgCeJyW8mgXvva6//Algcihi9h45 Ft4An0NwMrb+hwrfWctHzS4523iI6I6i =yFxy -----END PGP SIGNATURE----- --nYySOmuH/HDX6pKp--