From owner-freebsd-emulation@FreeBSD.ORG Mon Jan 3 14:26:26 2011 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 B6B86106566C for ; Mon, 3 Jan 2011 14:26:26 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4DD6A8FC0C for ; Mon, 3 Jan 2011 14:26:25 +0000 (UTC) Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id p03EQOfS011104; Mon, 3 Jan 2011 15:26:24 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id p03EQOeG024687; Mon, 3 Jan 2011 15:26:24 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.4/8.14.4) id p03EQOl1081031; Date: Mon, 3 Jan 2011 15:26:24 +0100 From: Andre Albsmeier To: Alexander Leidinger Message-ID: <20110103142624.GA51543@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110102115021.00000c8b@unknown> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix 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: Mon, 03 Jan 2011 14:26:26 -0000 On Sun, 02-Jan-2011 at 11:50:21 +0100, Alexander Leidinger wrote: > On Sat, 1 Jan 2011 23:46:29 +0100 Andre Albsmeier > wrote: > > > On Fri, 31-Dec-2010 at 14:48:00 +0100, Alexander Leidinger wrote: > > > On Thu, 30 Dec 2010 08:51:24 +0100 Andre Albsmeier > > > wrote: > > > > > > > I try to get the Linux version of SIMetrix (a very nice circuit > > > > simulator) running. Everything looks fine: It starts, the GUI > > > > comes up, you can draw schematics and so on. But when it comes > > > > to simulation, the (SIMetrix-)console says: > > > > > > > > *** Fatal error, out of memory *** > > > > Could not allocate shared heap > > > > Exception occurred while executing script command Run > > > > > > Is there something in the dmesg output? In case it tries to execute > > > an unsupported ioctl/syscall it should show up there. If not I > > > suggest to give 8.x a try, it has an improved linuxulator. > > > > Bad luck. I just started the PC-BSD 8.1 live system and > > the error there is exactly the same... > > Then there is only ktrace + linux_kdump (use the package) or dtrace > left. OK, that's what I found out so far: SIMetrix calls shm_open() (people over there are really helpful as I explained to them what I tried to do).. I can find this: 40654 SimIntro 1294053922.366978 CALL compat.accept(0x48eecee7,0xbfbf8830) 40654 SimIntro 1294053922.366983 NAMI "/compat/linux/dev/shm/" 40654 SimIntro 1294053922.366993 NAMI "/dev/shm/" 40654 SimIntro 1294053922.367017 RET compat.accept JUSTRETURN 40654 SimIntro 1294053922.367025 CALL open(0x48eecec9,O_RDONLY,0x1b6) 40654 SimIntro 1294053922.367029 NAMI "/compat/linux/proc/mounts" 40654 SimIntro 1294053922.367048 NAMI "/compat/linux" 40654 SimIntro 1294053922.367059 NAMI "/compat/linux/proc/mounts" ... reading in mounts ... Judging from a comment in Linux' shm_open.c: /* Open shared memory object. This implementation assumes the shmfs implementation introduced in the late 2.3.x kernel series to be available. Normally the filesystem will be mounted at /dev/shm but we fall back on searching for the actual mount point should opening such a file fail. */ the mount stuff found in kdump's output is where the code tries to find the shmfs which fails of course. Now I have to sit back and think what to do... -Andre -- Linux is no OS. It's a core dump which boots by accident.