From owner-freebsd-smp Fri Mar 12 12:36:26 1999 Delivered-To: freebsd-smp@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id 313AC15316 for ; Fri, 12 Mar 1999 12:35:55 -0800 (PST) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i119.ztm.euronet.nl [194.134.112.80]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id VAA01604; Fri, 12 Mar 1999 21:35:20 +0100 (MET) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.1) with ESMTP id VAA17362; Fri, 12 Mar 1999 21:35:12 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <36E97A80.8170F280@scc.nl> Date: Fri, 12 Mar 1999 21:35:12 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Luoqi Chen Cc: smp@FreeBSD.ORG Subject: SMP vmspace sharing [was: Re: oas fail under smp, work without] References: <199903121655.LAA29937@lor.watermarkgroup.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, 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