Date: Fri, 12 Mar 1999 17:47:59 -0500 (EST) From: Luoqi Chen <luoqi@watermarkgroup.com> To: marcel@scc.nl Cc: smp@FreeBSD.ORG Subject: Re: SMP vmspace sharing [was: Re: oas fail under smp, work without] Message-ID: <199903122247.RAA02336@lor.watermarkgroup.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903122247.RAA02336>