Subject: Re: NetBSD Sparc32 SMP crash
To: Martin Husemann <martin@duskware.de>
From: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
List: port-sparc
Date: 05/20/2005 12:07:36
Hello,

On Fri, 20 May 2005 11:12:20 +0200, Martin Husemann wrote:

> On Fri, May 20, 2005 at 09:02:29AM +0000, Geert Hendrickx wrote:
>> I don't have any other SMP machines, but on my UP i386, it also gives a
>> segfault.  Could anyone with a non-sparc SMP machine try this?  It may not be a
>> sparc-specific problem.  
> 
> Can you trigger it with any base system utility? 
> What does mcview do (I suppose lock the file with fcntl() or flock()) to the
> file?

Mmaps it:
  1655 mc       CALL  open(0x80f8bc0,4,0)
  1655 mc       NAMI  "/kern/copyright"
  1655 mc       RET   open 4
  1655 mc       CALL  __fstat13(4,0x80d62fc)
  1655 mc       RET   __fstat13 0
  1655 mc       CALL  fcntl(3,3,0)
  1655 mc       RET   fcntl 2
  1655 mc       CALL  fcntl(3,4,2)
  1655 mc       RET   fcntl 0
  1655 mc       CALL  read(4,0xbfbff33c,4)
  1655 mc       GIO   fd 4 read 4 bytes
       "Copy"
  1655 mc       RET   read 4
  1655 mc       CALL  mmap(0,0xec,1,1,4,0,0,0)
  1655 mc       RET   mmap 1210056704/0x48200000
  1655 mc       PSIG  SIGSEGV SIG_DFL
  1655 mc       NAMI  "/var/tmp/mc.core"

This is on i386, with 2.0_BETA uniprocessor kernel.