From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 12 21:04:29 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 A549F1065686 for ; Sun, 12 Oct 2008 21:04:29 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 5B2F68FC1F for ; Sun, 12 Oct 2008 21:04:29 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1Kp871-000EQh-97; Mon, 13 Oct 2008 01:04:27 +0400 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Kp88j-0000T7-Gj; Mon, 13 Oct 2008 01:06:13 +0400 To: "Ben Kaduk" References: <47d0403c0810121319k28f2badbm87fa3d93cb45b1be@mail.gmail.com> From: Boris Samorodov Date: Mon, 13 Oct 2008 01:06:13 +0400 In-Reply-To: <47d0403c0810121319k28f2badbm87fa3d93cb45b1be@mail.gmail.com> (Ben Kaduk's message of "Sun\, 12 Oct 2008 16\:19\:30 -0400") Message-ID: <81099402@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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:04:29 -0000 "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. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve