From owner-freebsd-stable Wed Mar 6 15:57:44 2002 Delivered-To: freebsd-stable@freebsd.org Received: from smarthost-1.mail.telinco.net (smarthost-1.mail.telinco.net [212.1.128.90]) by hub.freebsd.org (Postfix) with ESMTP id C7C3237B405 for ; Wed, 6 Mar 2002 15:57:40 -0800 (PST) Received: from ppp-2-142.5800-11.telinco.net ([212.1.153.142] helo=basilisk.locus) by smarthost-1.mail.telinco.net with esmtp (Exim 3.22 #1) id 16ilHu-000GcR-00 for freebsd-stable@FreeBSD.ORG; Wed, 06 Mar 2002 23:57:38 +0000 Received: (from harry@localhost) by basilisk.locus (8.11.6/8.11.6) id g26NvOT00582; Wed, 6 Mar 2002 23:57:24 GMT (envelope-from harry@basilisk.locus) To: freebsd-stable@FreeBSD.ORG Subject: Re: reproducable panic with python References: <867koq7gp7.fsf@basilisk.locus> From: Harry Newton Organization: GAUDEAMUS X-Op.135: Muss es sein ? Es muss sein X-Attribution: HN X-GnuPG-Fingerprint: 497E C8CD 0553 5EB4 1AE3 3BF5 D041 39E0 35E4 7F8B Date: 06 Mar 2002 23:57:24 +0000 In-Reply-To: <867koq7gp7.fsf@basilisk.locus> Message-ID: <86y9h55jx7.fsf@basilisk.locus> Lines: 41 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> Harry Newton wrote: > With this: > > #!/usr/local/bin/python2.2 > > import mmap > m = mmap.mmap(-1,256,mmap.MAP_ANON) > > m = 1 > > I can panic the kernel. Actually, all you need is: #!/usr/local/bin/python2.2 import mmap m = mmap.mmap(-1,256,mmap.MAP_ANON) and if you want a version that doesn't cause a panic, #!/usr/local/bin/python2.2 import mmap m = mmap.mmap(-1,256,mmap.MAP_ANON) m.close() where the close method closes the file associated with the memory map ( which doesn't really exist with MAP_ANONYMOUS ). Looking at the back-trace, I reckon that the mmap.close method calls msync(2), which is where the fatal call to vm_map_clean is. - Harry -- Harry Newton harry_newton at telinco.co.uk www.gaudeamus.telinco.co.uk/html/gpg.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message