Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 1999 11:59:28 -0800 (PST)
From:      Jonathan Hanna <pangolin@home.com>
To:        current@freebsd.org
Subject:   lockmgr panic with mmap()
Message-ID:  <19990227195928.SCCF11952.mail.rdc1.bc.wave.home.com@cr1003333-a.crdva1.bc.wave.home.com>

next in thread | raw e-mail | index | archive | help
This message is in MIME format
--_=XFMail.1.3.p0.FreeBSD:990227115927:368=_
Content-Type: text/plain; charset=us-ascii


The attached program sometimes causes a lockmgr panic. I do not think is always
did. I am running 4.0-CURRENT form Feb 19.

The trace is:
        panic lockmgr: locking against self
        lockmgr
        mv_map_growstack
        grow_stack
        trap_pfault
        trap
        calltrap
        subyte
        syscall
        ...
        
A command on a running image such as this usually does it, though I do not know what
conditions are neccessary:

        fincore /usr/local/netscape-4.5/communicator-4.5.bin

Jonathan Hanna <pangolin@home.com>


--_=XFMail.1.3.p0.FreeBSD:990227115927:368=_
Content-Disposition: attachment; filename="fincore.c"
Content-Transfer-Encoding: base64
Content-Description: fincore.c
Content-Type: application/octet-stream; name=fincore.c; SizeOnDisk=1938

CiNpbmNsdWRlIDxzdGRpby5oPgojaW5jbHVkZSA8dW5pc3RkLmg+CiNpbmNsdWRlIDxzdGRsaWIu
aD4KI2luY2x1ZGUgPHN5cy90eXBlcy5oPgojaW5jbHVkZSA8c3lzL21tYW4uaD4KI2luY2x1ZGUg
PGZjbnRsLmg+CiNpbmNsdWRlIDxzeXMvc3RhdC5oPgojaW5jbHVkZSA8bWFjaGluZS9wYXJhbS5o
PgoKLyoKKiogcHJpbnQgcGFnZXMgb2YgZmlsZSBpbiBjb3JlCiovCgp2b2lkIHVzYWdlKGNoYXIg
Km5hbWUpCnsKCXByaW50ZigiVXNhZ2U6ICVzIFstbnNdIGZpbGVzLi4uXG4iLG5hbWUpOwoJcHJp
bnRmKCJcdC1uXHRcdERvIG5vdCBwcmludCBmaWxlbmFtZVxuIik7CglwcmludGYoIlx0LW9cdFx0
T25seSBwcmlud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.3.p0.FreeBSD:990227115927:368=_--
End of MIME message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990227195928.SCCF11952.mail.rdc1.bc.wave.home.com>