From owner-freebsd-bugs Wed Mar 7 22:40:16 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 951D737B71B for ; Wed, 7 Mar 2001 22:40:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f286e6C35259; Wed, 7 Mar 2001 22:40:06 -0800 (PST) (envelope-from gnats) Received: from pc3.geta.hatoyama.hitachi.co.jp (amaterasu.hatoyama.hitachi.co.jp [133.145.150.129]) by hub.freebsd.org (Postfix) with ESMTP id E6A3637B71E for ; Wed, 7 Mar 2001 22:33:52 -0800 (PST) (envelope-from nis@pc3.geta.hatoyama.hitachi.co.jp) Received: (from nis@localhost) by pc3.geta.hatoyama.hitachi.co.jp (8.11.1/8.11.1) id f286XnB02074; Thu, 8 Mar 2001 15:33:49 +0900 (JST) (envelope-from nis) Message-Id: <200103080633.f286XnB02074@pc3.geta.hatoyama.hitachi.co.jp> Date: Thu, 8 Mar 2001 15:33:49 +0900 (JST) From: Shingo Nishioka Reply-To: nis@pc3.geta.hatoyama.hitachi.co.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: i386/25603: mmap + fork = panic: vm_object_deallocate: object deallocated too may times: 0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25603 >Category: i386 >Synopsis: mmap + fork = panic: vm_object_deallocate: object deallocated too may times: 0 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 07 22:40:05 PST 2001 >Closed-Date: >Last-Modified: >Originator: Shingo Nishioka >Release: FreeBSD 4.2-RELEASE i386 >Organization: CRL, Hitachi, Ltd. >Environment: FreeBSD 4.2-RELEASE (GENERIC) #0: Mon Nov 20 13:02:55 GMT 2000 >Description: The code blow causes a "panic: vm_object_deallocate: object deallocated too may times: 0" >How-To-Repeat: Compile and run the following code. #include #include #include #include #include #include main() { char *path = "foo.c"; int d; struct stat sb; void *p; size_t len; if ((d = open(path, O_RDONLY))==-1) { perror(path); return 1; } if (fstat(d, &sb)==-1) { perror(path); return 1; } len = sb.st_size; if ((p = mmap(0, len, PROT_READ, MAP_INHERIT, d, 0))==MAP_FAILED) { perror("mmap"); return 1; } fork(); return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message