From owner-freebsd-smp Fri Mar 12 14:48:53 1999 Delivered-To: freebsd-smp@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id 67AD814D75 for ; Fri, 12 Mar 1999 14:48:50 -0800 (PST) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id RAA02336; Fri, 12 Mar 1999 17:47:59 -0500 (EST) (envelope-from luoqi) Date: Fri, 12 Mar 1999 17:47:59 -0500 (EST) From: Luoqi Chen Message-Id: <199903122247.RAA02336@lor.watermarkgroup.com> To: marcel@scc.nl Subject: Re: SMP vmspace sharing [was: Re: oas fail under smp, work without] Cc: smp@FreeBSD.ORG Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Did you recompile linux module? brk can't be at 0xf0b53b54, that's in kernel address space. I can run linux bash just fine, but truss output didn't show any brk(0) call, so I may be using a different version of bash (the one comes with linux-lib 2.6 port). -lq > > Applying luoqi's patches results in a different behavior for the linux_brk > syscall. This breaks Linux bash. > > a -current system without the patches produces the following ktrace: > > ... > 555 bash CALL getegid > 555 bash RET getegid 1000/0x3e8 > 555 bash CALL linux_brk(0) > 555 bash RET linux_brk 134873088/0x80a0000 > 555 bash CALL linux_brk(0x80a0030) > 555 bash RET linux_brk 134873136/0x80a0030 > 555 bash CALL linux_brk(0x80a1000) > 555 bash RET linux_brk 134877184/0x80a1000 > 555 bash CALL linux_time(0) > 555 bash RET linux_time 921267035/0x36e96b5b > ... > > After applying the patches, the following ktrace is produced: > > ... > 2993 bash CALL getegid > 2993 bash RET getegid 0 > 2993 bash CALL linux_brk(0) > 2993 bash RET linux_brk -256558252/0xf0b53b54 > 2993 bash CALL linux_brk(0xf0b53b84) > 2993 bash RET linux_brk -256558252/0xf0b53b54 > 2993 bash CALL write(0x2,0xefbfb1ac,0x6) > 2993 bash GIO fd 2 wrote 6 bytes > "bash: " > 2993 bash RET write 6 > 2993 bash CALL write(0x2,0xefbfb1c4,0x16) > 2993 bash GIO fd 2 wrote 22 bytes > "Out of virtual memory!" > 2993 bash RET write 22/0x16 > ... > > marcel > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message