From owner-freebsd-fs Sun Nov 21 11:25:10 1999 Delivered-To: freebsd-fs@freebsd.org Received: from excalibur.lps.ens.fr (excalibur.lps.ens.fr [129.199.120.3]) by hub.freebsd.org (Postfix) with ESMTP id 5812F1591A for ; Sun, 21 Nov 1999 11:24:29 -0800 (PST) (envelope-from Thierry.Besancon@lps.ens.fr) Received: from (besancon@localhost) by excalibur.lps.ens.fr (8.9.3/jtpda-5.3.1) id UAA16636 ; Sun, 21 Nov 1999 20:24:17 +0100 (MET) To: "Mark W. Krentel" Cc: freebsd-fs@FreeBSD.ORG Subject: Re: running linux binaries from ext2fs partition References: <199911202017.PAA03794@dreamscape.com> Cc: besancon@lps.ens.fr From: Thierry.Besancon@lps.ens.fr Date: 21 Nov 1999 20:24:15 +0100 In-Reply-To: "Mark W. Krentel"'s message of Sat, 20 Nov 1999 15:17:58 -0500 (EST) Message-ID: Lines: 85 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dixit "Mark W. Krentel" (le Sat, 20 Nov 1999 15:17:58 -0500 (EST)) : >> >> Is it possible to run linux (or freebsd) binaries directly from a >> local ext2fs partition? >> >> ... >> >> While we're on the subject, on what filesystem types is it ok to run >> binaries? Local freebsd (UFS), NFS, and cdrom should all work, right? >> Are there others? >> Hello I don't know the answer to the last question but here's what I found. I setup X terminals using FreeBSD 3.3-RELEASE. /tmp is a MFS : Filesystem 1K-blocks Used Avail Capacity Mounted on 129.199.120.250:/ 127023 31651 85211 27% / mfs:29 959 668 215 76% /conf/etc /conf/etc 959 668 215 76% /etc 129.199.120.250:/usr 190543 153042 22258 87% /usr 129.199.120.250:/usr/local 2846396 1958786 659899 75% /usr/local mfs:61 3935 1431 2190 40% /var /var/tmp 3935 1431 2190 40% /tmp mfs:91 1511 47 1344 3% /dev The X terminal runs without any swap. /etc/rc.sysctl confirms it as well : sysctl -w vm.swap_enabled=0 Whenever I run an executable residing in the mfs /tmp, it justs hangs the kernel : # cp /bin/ls /tmp # df /tmp/. Filesystem 1K-blocks Used Avail Capacity Mounted on /var/tmp 3935 1432 2189 40% /tmp # /tmp/ls (workstation freezes) Here's the panic : Fatal trap 12 : page fault while in kernel mode fault virtual address = 0x3e fault code = supervisor read, page not present instruction pointer = 0x8:0xc022bf14 stack pointer = 0x10:0xc4546bc8 frame pointer = 0x10:0xc4546ca4 code segment = base 0x0, list 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 precessor eflags = interrupt disabled, resume, IOPL = 0 current process = 355 (csh) interrupt mask = net tty bio cam kernel : type 12 trap, code = 0 Stopped at ffs_vptofh+0xfe0: cmpw $0x2,0x3e(%edx) and the trace : db> trace ffs_vptofh(c4546d5c,c4514300,1000,0,c4546cf4) at ffs_vptofh+0xfe0 end(c4546d5c) at 0xc087c485 vnode_pager_freepage(c4559a2c,c4546db8,1,0,c4546df8) at vnode_pager_freepage+0x556 vm_pager_get_pages(c4559a2c,c4546db8,1,0,c4546f18) at vm_pager_get_pages+0x1f exec_map_first_page(c4546e94,c44c55a8,c02fe464,0,4) at exec_map_first_page+0xba execve(c44c55a0,c4546f94,80922e0,80940000,8085000) at execve+0x19e syscall(27,27,8085000,8094000,bfbffbb0) at syscall+0x187 Xint0x80_syscall() at Xint0x80_syscall+0x2c (not too deep) Given I have no swap (vm.swap_enabled=0), it is not easy to supply vmcore. But I can provide any help as I can reproduce the crash at will. If someone has a clue on how to fix that... Thierry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message