Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 1999 21:35:12 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        Luoqi Chen <luoqi@watermarkgroup.com>
Cc:        smp@FreeBSD.ORG
Subject:   SMP vmspace sharing [was: Re: oas fail under smp, work without]
Message-ID:  <36E97A80.8170F280@scc.nl>
References:  <199903121655.LAA29937@lor.watermarkgroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36E97A80.8170F280>