From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 12 21:34:36 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3482D1065689 for ; Sun, 12 Oct 2008 21:34:36 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id DED588FC0A for ; Sun, 12 Oct 2008 21:34:35 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so406177qwb.7 for ; Sun, 12 Oct 2008 14:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Mh4eT8PgKCrgxpuBN/Y2MZj3L91GS+Oy7UQs9pDTKZg=; b=BIRF1hVAvbC3vV+XsddvFDoKza/PCuG1QSHUWNbeLYm/OCOlewrjMlUuEJnKja2KiX dlGeK5Ip8KAF16RlR8VJNAooBvxDm8NYIs+aeWhjBl+IWpDHIMWOiEFg+xDERQyLQjt3 ywKKYMDua+IwWhUNLLjACtNAcq2utXIWW6+VY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WVOw4xUWclqSds0wTP2Bunnn1oHn83AMT22h0F1lMkiZaNWXf1x7qwM2VO54D2XKER hpO/GzLjQYqSP9HSuZbeQQ4nP++SOamxuVu4EwT+4GIQMVzXXh6pSpLcx+ZmBFTb7bhA Mn/+mWfZyAH1Ao7K4xgZZ4FF9hJM9CtgMNs9I= Received: by 10.214.114.16 with SMTP id m16mr4059192qac.41.1223847274952; Sun, 12 Oct 2008 14:34:34 -0700 (PDT) Received: by 10.214.116.19 with HTTP; Sun, 12 Oct 2008 14:34:34 -0700 (PDT) Message-ID: <47d0403c0810121434r3a84bf4bj3b04b5184b6f097a@mail.gmail.com> Date: Sun, 12 Oct 2008 17:34:34 -0400 From: "Ben Kaduk" To: "Boris Samorodov" In-Reply-To: <81099402@bs1.sp34.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47d0403c0810121319k28f2badbm87fa3d93cb45b1be@mail.gmail.com> <81099402@bs1.sp34.ru> Cc: freebsd-emulation@freebsd.org Subject: Re: edwin scheme/emacs SEGV's in X; not on console X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2008 21:34:36 -0000 On Sun, Oct 12, 2008 at 5:06 PM, Boris Samorodov wrote: > "Ben Kaduk" writes: > >> Hi all, >> >> I'm taking a classical mechanics class that uses an scmutils package >> on top of mit-scheme. >> Attempting to build this software on FreeBSD natively has been ... >> painful, so I'm looking >> at using the linuxulator to run an already-compiled version. >> >> I'm running FreeBSD-CURRENT from the September snapshot, and I installed >> linux_base-f8 and linux-xorg-libs. >> I then downloaded this tarball: >> http://groups.csail.mit.edu/mac/users/gjs/6946/scmutils-tarballs/scmutils-20080929-ix86-ubuntu-gutsy.tar.gz >> and unpacked it in /usr/local . >> I needed to brandelf -t Linux >> /usr/local/scmutils/mit-scheme/bin/mit-scheme-native >> and change /usr/local/bin/mechanics to have #!/usr/compat/linux/bin/bash >> instead of #!/bin/bash, but then the program runs just fine in console mode. >> (edwin is an emacs18, and it has a module on top of it to run a scheme >> interpreter >> using their mechanics library.) >> >> However, when I run the program in X11, whenever I try to evaluate a command >> (C-x, even), I get the message: >> Internal error: Hardware trap SIGSEGV. >> I can try to ktrace the call to scheme, but kdump segfaults on the ktrace.out. >> >> Is there anything obvious that I should look at? > > You should use devel/linux_kdump instead of the native one. > Ah, thanks. The (8M) linux_kdump output is here: http://stuff.mit.edu/afs/sipb.mit.edu/user/kaduk/freebsd/prolix/mechanics.dump.txt though I am not getting much useful out of it ... -Ben Kaduk