From owner-freebsd-emulation Wed Feb 19 20:56:33 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EDB037B409 for ; Wed, 19 Feb 2003 20:56:32 -0800 (PST) Received: from hotmail.com (WLL-30-pppoe144.t-net.net.ve [200.31.144.144]) by mx1.FreeBSD.org (Postfix) with SMTP id 0C9BB43F85 for ; Wed, 19 Feb 2003 20:56:31 -0800 (PST) (envelope-from utech626@ultratechweb.com) From: "Неизвестная земля" To: "Спец. предложение" Subject: Незабываемые туры в Заполярье Content-Type: text/html; charset="koi8-r" Message-Id: <20030220045631.0C9BB43F85@mx1.FreeBSD.org> Date: Wed, 19 Feb 2003 20:56:31 -0800 (PST) Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Незабываемые туры в Заполярье - http://koresh.ru/terra/tour.shtml


Извиняемся за возможные предоставленные неудобства.
Если Вы хотите исключить свой e-mail адрес из рассылки, пожалуйста, удалите его здесь:
To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Feb 21 10: 8: 8 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2D1037B401; Fri, 21 Feb 2003 10:08:06 -0800 (PST) Received: from hub.org (hub.org [64.49.215.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32A5C43F3F; Fri, 21 Feb 2003 10:08:06 -0800 (PST) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [64.49.215.141]) by hub.org (Postfix) with ESMTP id 612D58AA48C; Fri, 21 Feb 2003 14:08:05 -0400 (AST) Date: Fri, 21 Feb 2003 14:08:05 -0400 (AST) From: "Marc G. Fournier" To: freebsd-stable@freebsd.org Cc: freebsd-emulation@freebsd.org Subject: Raising KVA_PAGES breaks linux emulation? Message-ID: <20030221140043.Y68094@hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Morning all ... I've just increased my KVA_PAGES to 512, based on recommendations, and fixed the issue with libc_r, based on a patch I received ... the system as a whole is working working quite well now, but, linux emulation no longer appears to be working ... linux is loaded: 4 1 0x87beb000 15000 linux.ko and libraries are installed: venus# ls -lt /compat/linux/lib/libpthread* lrwxr-xr-x 1 root wheel 17 Dec 31 20:31 /compat/linux/lib/libpthread.so.0 -> libpthread-0.9.so -rwxr-xr-x 1 root wheel 559279 Oct 10 11:49 /compat/linux/lib/libpthread-0.9.so but if I try and run the linux javac, it gives me: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Error 14 if I try to run /compat/linux/sbin/ldconfig (as in /etc/rc when linux_enable is YES), I get: venus# /compat/linux/sbin/ldconfig /compat/linux/sbin/ldconfig: Can't open configuration file /etc/ld.so.conf: Bad address /compat/linux/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Bad address did raising KVA_PAGES break the linux emulation / libraries, or is this something else I'm missing? As a side note, on another server that I raised KVA_PAGES to 512 on, I tried doing a 'make install' of linux_base, and each time I ran it (did it a couple of times, just to confirm that it was that that was causing the crash), the server would crash, but I was unable to get core to dump ... I had thought maybe it was a problem with that server, but now I'm suspecting it might be the linux emulation itself ... Server code is relatively up to date: 4.7-STABLE #32: Fri Feb 14 12:58:45 CST 2003 Thoughts? Suggestions? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Feb 21 18:10:54 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12CA937B401; Fri, 21 Feb 2003 18:10:51 -0800 (PST) Received: from mobile.hub.org (u173n136.eastlink.ca [24.224.173.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id D569743F85; Fri, 21 Feb 2003 18:10:49 -0800 (PST) (envelope-from scrappy@hub.org) Received: by mobile.hub.org (Postfix, from userid 1000) id 42BF73F62; Fri, 21 Feb 2003 22:10:48 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mobile.hub.org (Postfix) with ESMTP id 3DCF83E73; Fri, 21 Feb 2003 22:10:48 -0400 (AST) Date: Fri, 21 Feb 2003 22:10:47 -0400 (AST) From: The Hermit Hacker X-X-Sender: scrappy@localhost To: freebsd-stable@freebsd.org Cc: freebsd-emulation@freebsd.org Subject: Re: Raising KVA_PAGES breaks linux emulation? In-Reply-To: <20030221140043.Y68094@hub.org> Message-ID: <20030221220648.T59175@localhost> References: <20030221140043.Y68094@hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 'K, just to confirm this, I just tried it on my other machine with KVA_PAGES set to 512 ... just blew up, but looks like I'm going to get a core ... it blows up at the same spot: ===> Installing for linux_base-7.1_2 kern.fallback_elf_brand: -1 -> 3 glibc-common-2.2.4-31.i386.rpm glibc-2.2.4-31.i386.rpm redhat-release-7.1-1.noarch.rpm setup-2.4.7-1.noarch.rpm filesystem-2.0.7-1.noarch.rpm basesystem-7.0-2.noarch.rpm termcap-11.0.1-8.noarch.rpm db1-1.85-5.i386.rpm db3-3.1.17-7.i386.rpm gdbm-1.8.0-5.i386.rpm glib-1.2.9-1.i386.rpm libtermcap-2.0.8-26.i386.rpm bash-2.04-21.i386.rpm The system is running relatively recent source code, with KVA_PAGES set to 512, and the following patch applied to libc_r that I got from Tor: Index: uthread/uthread_init.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_init.c,v retrieving revision 1.23.2.10 diff -u -r1.23.2.10 uthread_init.c --- uthread/uthread_init.c 22 Oct 2002 14:44:03 -0000 1.23.2.10 +++ uthread/uthread_init.c 14 Feb 2003 21:18:22 -0000 @@ -245,6 +245,11 @@ len = sizeof (int); if (sysctl(mib, 2, &_usrstack, &len, NULL, 0) == -1) _usrstack = (void *)USRSTACK; + else + _next_stack = (void *) ((char *)_usrstack + - PTHREAD_STACK_INITIAL + - PTHREAD_STACK_DEFAULT + - (2 * PTHREAD_STACK_GUARD)); /* * Create a red zone below the main stack. All other stacks are * constrained to a maximum size by the paramters passed to Will post gdb output as soon as core is finished dumping ... On Fri, 21 Feb 2003, Marc G. Fournier wrote: > > Morning all ... > > I've just increased my KVA_PAGES to 512, based on recommendations, and > fixed the issue with libc_r, based on a patch I received ... the system as > a whole is working working quite well now, but, linux emulation no longer > appears to be working ... > > linux is loaded: > > 4 1 0x87beb000 15000 linux.ko > > and libraries are installed: > > venus# ls -lt /compat/linux/lib/libpthread* > lrwxr-xr-x 1 root wheel 17 Dec 31 20:31 /compat/linux/lib/libpthread.so.0 -> libpthread-0.9.so > -rwxr-xr-x 1 root wheel 559279 Oct 10 11:49 /compat/linux/lib/libpthread-0.9.so > > but if I try and run the linux javac, it gives me: > > error while loading shared libraries: libpthread.so.0: cannot open shared object file: Error 14 > > if I try to run /compat/linux/sbin/ldconfig (as in /etc/rc when > linux_enable is YES), I get: > > venus# /compat/linux/sbin/ldconfig > /compat/linux/sbin/ldconfig: Can't open configuration file /etc/ld.so.conf: Bad address > /compat/linux/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Bad address > > did raising KVA_PAGES break the linux emulation / libraries, or is this > something else I'm missing? > > As a side note, on another server that I raised KVA_PAGES to 512 on, I > tried doing a 'make install' of linux_base, and each time I ran it (did it > a couple of times, just to confirm that it was that that was causing the > crash), the server would crash, but I was unable to get core to dump ... I > had thought maybe it was a problem with that server, but now I'm > suspecting it might be the linux emulation itself ... > > Server code is relatively up to date: > > 4.7-STABLE #32: Fri Feb 14 12:58:45 CST 2003 > > Thoughts? Suggestions? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Feb 21 18:31:52 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1FDE37B401; Fri, 21 Feb 2003 18:31:48 -0800 (PST) Received: from mobile.hub.org (u173n136.eastlink.ca [24.224.173.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7D9B43F75; Fri, 21 Feb 2003 18:31:47 -0800 (PST) (envelope-from scrappy@hub.org) Received: by mobile.hub.org (Postfix, from userid 1000) id E89ED3F62; Fri, 21 Feb 2003 22:31:46 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mobile.hub.org (Postfix) with ESMTP id DE8803E73; Fri, 21 Feb 2003 22:31:46 -0400 (AST) Date: Fri, 21 Feb 2003 22:31:46 -0400 (AST) From: The Hermit Hacker X-X-Sender: scrappy@localhost To: freebsd-stable@freebsd.org Cc: freebsd-emulation@freebsd.org Subject: Re: Raising KVA_PAGES breaks linux emulation? In-Reply-To: <20030221220648.T59175@localhost> Message-ID: <20030221222943.O59175@localhost> References: <20030221140043.Y68094@hub.org> <20030221220648.T59175@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org And the core dump provides no information: #0 0x87c0b256 in ?? () (kgdb) where #0 0x87c0b256 in ?? () #1 0x8014e46c in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:223 #2 0x8014eb91 in panic (fmt=0x8022fcf9 "%s") at /usr/src/sys/kern/kern_shutdown.c:595 #3 0x801ffb69 in trap_fatal (frame=0xb07c3e50, eva=3217030872) at /usr/src/sys/i386/i386/trap.c:974 #4 0x801ff7d5 in trap_pfault (frame=0xb07c3e50, usermode=0, eva=3217030872) at /usr/src/sys/i386/i386/trap.c:867 #5 0x801ff333 in trap (frame={tf_fs = -2075394024, tf_es = 16, tf_ds = 16, tf_edi = -1077936424, tf_esi = -1334034672, tf_ebp = -1334034788, tf_isp = -1334034820, tf_ebx = -1077936432, tf_edx = -2017468000, tf_ecx = -1077936408, tf_eax = 0, tf_trapno = 12, tf_err = 2, tf_eip = -2017490092, tf_cs = 8, tf_eflags = 66118, tf_esp = -1077936432, tf_ss = -1334034672}) at /usr/src/sys/i386/i386/trap.c:466 #6 0x87bf8b54 in ?? () #7 0x87bf8c58 in ?? () #8 0x87bf8dd7 in ?? () #9 0x87bf8ecd in ?? () #10 0x801ffea5 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 17, tf_esi = 8, tf_ebp = 2143287320, tf_isp = -1334034476, tf_ebx = 17, tf_edx = 2143287008, tf_ecx = 2143287152, tf_eax = 174, tf_trapno = 12, tf_err = 2, tf_eip = 672200619, tf_cs = 31, tf_eflags = 514, tf_esp = 2143286988, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1175 #11 0x801ed1eb in Xint0x80_syscall () #12 0x807c660 in ?? () #13 0x807a375 in ?? () #14 0x805a78c in ?? () #15 0x80591c8 in ?? () #16 0x280fd336 in ?? () (kgdb) up 5 #5 0x801ff333 in trap (frame={tf_fs = -2075394024, tf_es = 16, tf_ds = 16, tf_edi = -1077936424, tf_esi = -1334034672, tf_ebp = -1334034788, tf_isp = -1334034820, tf_ebx = -1077936432, tf_edx = -2017468000, tf_ecx = -1077936408, tf_eax = 0, tf_trapno = 12, tf_err = 2, tf_eip = -2017490092, tf_cs = 8, tf_eflags = 66118, tf_esp = -1077936432, tf_ss = -1334034672}) at /usr/src/sys/i386/i386/trap.c:466 466 (void) trap_pfault(&frame, FALSE, eva); (kgdb) frame frame->tf_ebp frame->tf_eip #0 0x87bf8b54 in ?? () (kgdb) On Fri, 21 Feb 2003, The Hermit Hacker wrote: > > 'K, just to confirm this, I just tried it on my other machine with > KVA_PAGES set to 512 ... just blew up, but looks like I'm going to get a > core ... it blows up at the same spot: > > ===> Installing for linux_base-7.1_2 > kern.fallback_elf_brand: -1 -> 3 > glibc-common-2.2.4-31.i386.rpm > glibc-2.2.4-31.i386.rpm > redhat-release-7.1-1.noarch.rpm > setup-2.4.7-1.noarch.rpm > filesystem-2.0.7-1.noarch.rpm > basesystem-7.0-2.noarch.rpm > termcap-11.0.1-8.noarch.rpm > db1-1.85-5.i386.rpm > db3-3.1.17-7.i386.rpm > gdbm-1.8.0-5.i386.rpm > glib-1.2.9-1.i386.rpm > libtermcap-2.0.8-26.i386.rpm > bash-2.04-21.i386.rpm > > > The system is running relatively recent source code, with KVA_PAGES set to > 512, and the following patch applied to libc_r that I got from Tor: > > Index: uthread/uthread_init.c > =================================================================== > RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_init.c,v > retrieving revision 1.23.2.10 > diff -u -r1.23.2.10 uthread_init.c > --- uthread/uthread_init.c 22 Oct 2002 14:44:03 -0000 1.23.2.10 > +++ uthread/uthread_init.c 14 Feb 2003 21:18:22 -0000 > @@ -245,6 +245,11 @@ > len = sizeof (int); > if (sysctl(mib, 2, &_usrstack, &len, NULL, 0) == -1) > _usrstack = (void *)USRSTACK; > + else > + _next_stack = (void *) ((char *)_usrstack > + - PTHREAD_STACK_INITIAL > + - PTHREAD_STACK_DEFAULT > + - (2 * PTHREAD_STACK_GUARD)); > /* > * Create a red zone below the main stack. All other stacks are > * constrained to a maximum size by the paramters passed to > > > Will post gdb output as soon as core is finished dumping ... > > > On Fri, 21 Feb 2003, Marc G. Fournier wrote: > > > > > Morning all ... > > > > I've just increased my KVA_PAGES to 512, based on recommendations, and > > fixed the issue with libc_r, based on a patch I received ... the system as > > a whole is working working quite well now, but, linux emulation no longer > > appears to be working ... > > > > linux is loaded: > > > > 4 1 0x87beb000 15000 linux.ko > > > > and libraries are installed: > > > > venus# ls -lt /compat/linux/lib/libpthread* > > lrwxr-xr-x 1 root wheel 17 Dec 31 20:31 /compat/linux/lib/libpthread.so.0 -> libpthread-0.9.so > > -rwxr-xr-x 1 root wheel 559279 Oct 10 11:49 /compat/linux/lib/libpthread-0.9.so > > > > but if I try and run the linux javac, it gives me: > > > > error while loading shared libraries: libpthread.so.0: cannot open shared object file: Error 14 > > > > if I try to run /compat/linux/sbin/ldconfig (as in /etc/rc when > > linux_enable is YES), I get: > > > > venus# /compat/linux/sbin/ldconfig > > /compat/linux/sbin/ldconfig: Can't open configuration file /etc/ld.so.conf: Bad address > > /compat/linux/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Bad address > > > > did raising KVA_PAGES break the linux emulation / libraries, or is this > > something else I'm missing? > > > > As a side note, on another server that I raised KVA_PAGES to 512 on, I > > tried doing a 'make install' of linux_base, and each time I ran it (did it > > a couple of times, just to confirm that it was that that was causing the > > crash), the server would crash, but I was unable to get core to dump ... I > > had thought maybe it was a problem with that server, but now I'm > > suspecting it might be the linux emulation itself ... > > > > Server code is relatively up to date: > > > > 4.7-STABLE #32: Fri Feb 14 12:58:45 CST 2003 > > > > Thoughts? Suggestions? > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-emulation" in the body of the message > > > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy > Systems Administrator @ hub.org > primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Feb 21 19:57:35 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42B5737B401; Fri, 21 Feb 2003 19:57:34 -0800 (PST) Received: from bricore.com (adsl-64-168-71-68.dsl.snfc21.pacbell.net [64.168.71.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F2CD43FB1; Fri, 21 Feb 2003 19:57:33 -0800 (PST) (envelope-from lchen@briontech.com) Received: from luoqi (luoqi.bricore.com [192.168.1.63]) by bricore.com (8.12.6/8.12.6) with SMTP id h1M3vPFA021404; Fri, 21 Feb 2003 19:57:25 -0800 (PST) (envelope-from lchen@briontech.com) From: "Luoqi Chen" To: "The Hermit Hacker" , Cc: Subject: RE: Raising KVA_PAGES breaks linux emulation? Date: Fri, 21 Feb 2003 20:00:22 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030221222943.O59175@localhost> X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > And the core dump provides no information: > > #0 0x87c0b256 in ?? () > (kgdb) where > #0 0x87c0b256 in ?? () > #1 0x8014e46c in boot (howto=256) at > /usr/src/sys/kern/kern_shutdown.c:223 > #2 0x8014eb91 in panic (fmt=0x8022fcf9 "%s") at > /usr/src/sys/kern/kern_shutdown.c:595 > #3 0x801ffb69 in trap_fatal (frame=0xb07c3e50, eva=3217030872) ^^^^^^^^^^ eva = 0xbfbffed8, this was user stack for KVA_PAGES=256. Did you recompile your linux.ko module? -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Feb 21 20:13:40 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DB1E37B401; Fri, 21 Feb 2003 20:13:39 -0800 (PST) Received: from mobile.hub.org (u173n136.eastlink.ca [24.224.173.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9AA143FA3; Fri, 21 Feb 2003 20:13:38 -0800 (PST) (envelope-from scrappy@hub.org) Received: by mobile.hub.org (Postfix, from userid 1000) id 75FBB3F73; Sat, 22 Feb 2003 00:13:37 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mobile.hub.org (Postfix) with ESMTP id 706F03F68; Sat, 22 Feb 2003 00:13:37 -0400 (AST) Date: Sat, 22 Feb 2003 00:13:37 -0400 (AST) From: The Hermit Hacker X-X-Sender: scrappy@localhost To: Luoqi Chen Cc: freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG Subject: RE: Raising KVA_PAGES breaks linux emulation? In-Reply-To: Message-ID: <20030222000715.K59175@localhost> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 21 Feb 2003, Luoqi Chen wrote: > > And the core dump provides no information: > > > > #0 0x87c0b256 in ?? () > > (kgdb) where > > #0 0x87c0b256 in ?? () > > #1 0x8014e46c in boot (howto=256) at > > /usr/src/sys/kern/kern_shutdown.c:223 > > #2 0x8014eb91 in panic (fmt=0x8022fcf9 "%s") at > > /usr/src/sys/kern/kern_shutdown.c:595 > > #3 0x801ffb69 in trap_fatal (frame=0xb07c3e50, eva=3217030872) > ^^^^^^^^^^ > eva = 0xbfbffed8, this was user stack for KVA_PAGES=256. Did you > recompile your linux.ko module? venus# ls -lt /kernel /modules/linux.ko -r-xr-xr-x 1 root wheel 1080642 Feb 14 13:39 /modules/linux.ko -r-xr-xr-x 1 root wheel 1723783 Feb 14 13:39 /kernel venus# strings /kernel | grep ^___options ___options KVA_PAGES=512 Now, when I did this the first time, I got a bunch of thread issues, so Tor sent me a patch (included in previous email) to fix it in libc_r ... does the linux module make use of KVA_PAGES as defined in the kernel config file, or do I have to change KVA_PAGES in /sys/i386/include/pmap.h for the modules to recognize the change? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Feb 22 9:35:48 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 041D837B401; Sat, 22 Feb 2003 09:35:48 -0800 (PST) Received: from bricore.com (adsl-64-168-71-68.dsl.snfc21.pacbell.net [64.168.71.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F63C43F85; Sat, 22 Feb 2003 09:35:47 -0800 (PST) (envelope-from lchen@briontech.com) Received: from luoqi (luoqi.bricore.com [192.168.1.63]) by bricore.com (8.12.6/8.12.6) with SMTP id h1MHZdFA026604; Sat, 22 Feb 2003 09:35:39 -0800 (PST) (envelope-from lchen@briontech.com) From: "Luoqi Chen" To: "The Hermit Hacker" Cc: , , Subject: RE: Raising KVA_PAGES breaks linux emulation? Date: Sat, 22 Feb 2003 09:38:41 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030222000715.K59175@localhost> X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Now, when I did this the first time, I got a bunch of thread issues, so > Tor sent me a patch (included in previous email) to fix it in libc_r ... > does the linux module make use of KVA_PAGES as defined in the kernel > config file, or do I have to change KVA_PAGES in /sys/i386/include/pmap.h > for the modules to recognize the change? > KVA_PAGES if defined in config goes to opt_global.h and I don't think module builds uses this file. You may put it in make.conf if you don't want to mess with pmap.h -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Feb 22 11:31: 1 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A80537B401; Sat, 22 Feb 2003 11:31:00 -0800 (PST) Received: from hub.org (hub.org [64.49.215.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id C419543FAF; Sat, 22 Feb 2003 11:30:59 -0800 (PST) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [64.49.215.141]) by hub.org (Postfix) with ESMTP id A5C428B463F; Sat, 22 Feb 2003 15:30:57 -0400 (AST) Date: Sat, 22 Feb 2003 15:30:57 -0400 (AST) From: "Marc G. Fournier" To: Luoqi Chen Cc: freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG Subject: RE: Raising KVA_PAGES breaks linux emulation? In-Reply-To: Message-ID: <20030222152602.C61064@hub.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 22 Feb 2003, Luoqi Chen wrote: > > Now, when I did this the first time, I got a bunch of thread issues, so > > Tor sent me a patch (included in previous email) to fix it in libc_r ... > > does the linux module make use of KVA_PAGES as defined in the kernel > > config file, or do I have to change KVA_PAGES in /sys/i386/include/pmap.h > > for the modules to recognize the change? > > > KVA_PAGES if defined in config goes to opt_global.h and I don't think > module builds uses this file. You may put it in make.conf if you don't > want to mess with pmap.h Okay, is there any good documentation on raising KVA_PAGES? The only thing I've found is in LINT, and it mentioned nothing about setting it anywhere but in the kernel config :( For instance, since setting KVA_PAGES in the kernel config doesn't cover everything, and, as I've experienced so far, causes some serious problems, would it be better to suggest that someone sets it in make.conf? From a quick perusal of /etc/defaults/make.conf, my guess is that I'd have to set: COPTFLAGS= -O -pipe -DKVA_PAGES=512 -and- CFLAGS= -O -pipe -DKVA_PAGES=512 Will that cover it all, or is there a problem with doing it that way? Or is there a better way of doing this? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Feb 22 11:53:32 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CA4537B405; Sat, 22 Feb 2003 11:53:31 -0800 (PST) Received: from bricore.com (adsl-64-168-71-68.dsl.snfc21.pacbell.net [64.168.71.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C10A43FB1; Sat, 22 Feb 2003 11:53:30 -0800 (PST) (envelope-from lchen@briontech.com) Received: from luoqi (luoqi.bricore.com [192.168.1.63]) by bricore.com (8.12.6/8.12.6) with SMTP id h1MJrHFA027119; Sat, 22 Feb 2003 11:53:18 -0800 (PST) (envelope-from lchen@briontech.com) From: "Luoqi Chen" To: "Marc G. Fournier" Cc: , , Subject: RE: Raising KVA_PAGES breaks linux emulation? Date: Sat, 22 Feb 2003 11:56:20 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030222152602.C61064@hub.org> X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > For instance, since setting KVA_PAGES in the kernel config doesn't cover > everything, and, as I've experienced so far, causes some serious problems, > would it be better to suggest that someone sets it in make.conf? From a > quick perusal of /etc/defaults/make.conf, my guess is that I'd have to > set: > > COPTFLAGS= -O -pipe -DKVA_PAGES=512 > -and- > CFLAGS= -O -pipe -DKVA_PAGES=512 > > Will that cover it all, or is there a problem with doing it that way? Or > is there a better way of doing this? > Module builds seem to use CFLAGS (while kernel builds use COPTFLAGS). A better way is to have kernel Makefile passing opt_global.h to the modules. The best solution for this particular problem would probably be changing USRSTACK to a global variable instead of a #define. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Feb 22 11:56:49 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E24A737B406; Sat, 22 Feb 2003 11:56:46 -0800 (PST) Received: from hub.org (hub.org [64.49.215.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F5EE43F3F; Sat, 22 Feb 2003 11:56:46 -0800 (PST) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [64.49.215.141]) by hub.org (Postfix) with ESMTP id 9977A8B6B0B; Sat, 22 Feb 2003 15:56:44 -0400 (AST) Date: Sat, 22 Feb 2003 15:56:44 -0400 (AST) From: "Marc G. Fournier" To: Luoqi Chen Cc: freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG Subject: RE: Raising KVA_PAGES breaks linux emulation? In-Reply-To: Message-ID: <20030222155404.F61064@hub.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 22 Feb 2003, Luoqi Chen wrote: > > For instance, since setting KVA_PAGES in the kernel config doesn't cover > > everything, and, as I've experienced so far, causes some serious problems, > > would it be better to suggest that someone sets it in make.conf? From a > > quick perusal of /etc/defaults/make.conf, my guess is that I'd have to > > set: > > > > COPTFLAGS= -O -pipe -DKVA_PAGES=512 > > -and- > > CFLAGS= -O -pipe -DKVA_PAGES=512 > > > > Will that cover it all, or is there a problem with doing it that way? Or > > is there a better way of doing this? > > > Module builds seem to use CFLAGS (while kernel builds use COPTFLAGS). Right, and, as was found out, this doesn't just affect kernel+modules, but libc_r as well ... anything else it might affect? :( > A better way is to have kernel Makefile passing opt_global.h to the > modules. The best solution for this particular problem would probably > be changing USRSTACK to a global variable instead of a #define. I realize we're in a freeze for 4.8-RELEASE, but sicne KVA_PAGES is documented, and its use does break things, any chance on getting this fixed before the RELEASE? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Feb 22 19:20:51 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2641C37B405 for ; Sat, 22 Feb 2003 19:20:50 -0800 (PST) Received: from web10003.mail.yahoo.com (web10003.mail.yahoo.com [216.136.130.39]) by mx1.FreeBSD.org (Postfix) with SMTP id 986F643F85 for ; Sat, 22 Feb 2003 19:20:49 -0800 (PST) (envelope-from kstailey@yahoo.com) Message-ID: <20030223032049.47767.qmail@web10003.mail.yahoo.com> Received: from [66.92.164.43] by web10003.mail.yahoo.com via HTTP; Sat, 22 Feb 2003 19:20:49 PST Date: Sat, 22 Feb 2003 19:20:49 -0800 (PST) From: Kenneth Stailey Subject: Need FTP or web site hosting for large file To: ports@freebsd.org Cc: freebsd-emulation@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I am looking for someone who can help me by hosting a 45MB file on a FTP or web site. The file is a bzip2'ed image of a DEC RP06 hard disk with a copy of MIT Incompatible Timesharing System in it. The disk image is used by the KLH10 PDP-10 mainframe emulator port in the FreeBSD ports tree. Thanks, Ken __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Feb 22 23: 3:42 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8692337B401; Sat, 22 Feb 2003 23:03:41 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id D190743FB1; Sat, 22 Feb 2003 23:03:40 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h1N73X3W001359; Sat, 22 Feb 2003 23:03:33 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h1N73TLQ001358; Sat, 22 Feb 2003 23:03:29 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Sat, 22 Feb 2003 23:03:29 -0800 From: David Schultz To: "Marc G. Fournier" Cc: Luoqi Chen , freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG Subject: Re: Raising KVA_PAGES breaks linux emulation? Message-ID: <20030223070329.GB1053@HAL9000.homeunix.com> Mail-Followup-To: "Marc G. Fournier" , Luoqi Chen , freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG References: <20030222155404.F61064@hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030222155404.F61064@hub.org> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thus spake Marc G. Fournier : > On Sat, 22 Feb 2003, Luoqi Chen wrote: > > Module builds seem to use CFLAGS (while kernel builds use COPTFLAGS). > > Right, and, as was found out, this doesn't just affect kernel+modules, but > libc_r as well ... anything else it might affect? :( > > > A better way is to have kernel Makefile passing opt_global.h to the > > modules. The best solution for this particular problem would probably > > be changing USRSTACK to a global variable instead of a #define. > > I realize we're in a freeze for 4.8-RELEASE, but sicne KVA_PAGES is > documented, and its use does break things, any chance on getting this > fixed before the RELEASE? For libc_r, we can do better than documenting the problem: we can fix it! All we have to do is ask the kernel for the value of KVA_PAGES via sysctl instead of relying on the static value. Most of the work is already done, so the fix is a 2-line patch. I'm going to run it by the libc_r maintainer ASAP if he hasn't dealt with it already, but I don't know about getting the fix into 4.8-RELEASE. I don't know what modules in general or the linuxolator specifically need KVA_PAGES for, but it may be possible to have them extract the information from a global symbol in the kernel proper, instead of using a compile-time constant. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message