From nobody@FreeBSD.org  Tue Jul 26 02:06:53 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6611616A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2005 02:06:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 37BCE43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2005 02:06:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j6Q26rVU047769
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2005 02:06:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6Q26qii047766;
	Tue, 26 Jul 2005 02:06:52 GMT
	(envelope-from nobody)
Message-Id: <200507260206.j6Q26qii047766@www.freebsd.org>
Date: Tue, 26 Jul 2005 02:06:52 GMT
From: "Russell J. Yount" <rjy@cmu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation 5.0.0 build-13124
X-Send-Pr-Version: www-2.3

>Number:         84102
>Category:       kern
>Synopsis:       FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation 5.0.0 build-13124
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnn
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 26 02:10:16 GMT 2005
>Closed-Date:    Mon Jun 26 11:12:24 GMT 2006
>Last-Modified:  Mon Jun 26 11:12:24 GMT 2006
>Originator:     Russell J. Yount
>Release:        FreeBSD 6.0 Beta 1
>Organization:
Carnegie Mellon University
>Environment:
>Description:
Standard install fails in VMWARE 5 Workstation with
Panic: Duplicate free of item 0xc1c21000 from zone 0xc144adc0(g_bio)
cpuid = 0
KDB: enter: panic
[thread pid 2 tid 100034 ]
Stopped at       kdb_enter+0x2b: nop
db>

db>where
Tracing pid 3 tid 100034 td 0xc1943600
kdb_enter(c0854b84) at kdb_enter+0x2b
panic(x086f563,c1c21000,c144adc0,c084f668,c086f547) at panic+0x127
ima_dbg_free(c144adc0,0,c1c21000) at uma_dgb_free_0x110
{ note: the above text was manually copied, there may be a typo in it }




>How-To-Repeat:
Create new VMWARE machine for freebsd using vmware defaults.
Start a standard install using defaults for disk partitions.
Select all for installation packages.
System will panic shortly after "extracting base into / directory"
is displayed.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Jan Mikkelsen" <janm@transactionware.com>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: kern/84102: FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation 5.0.0 build-13124
Date: Tue, 16 Aug 2005 16:50:38 +1000

 I see this too: Vmware 3.2.1, FreeBSD 6.0 Beta 2.
 
 Full stack trace:
 
 panic: Duplicate free of item 0xc1b0c4a4 from zone 0xc143f000(g_bio)
 
 cpuid = 0
 KDB: enter: panic
 [thread pid 3 tid 100021 ]
 Stopped at      kdb_enter+0x2b: nop
 db> where
 Tracing pid 3 tid 100021 td 0xc1833300
 kdb_enter(c0856274) at kdb_enter+0x2b
 panic(c0870cfb,c1b0c4a4,c143f000,c0850ced,c0870cdf) at panic+0x127
 uma_dbg_free(c143f000,0,c1b0c4a4) at uma_dbg_free+0x110
 uma_zfree_arg(c143f000,c1b0c4a4,0) at uma_zfree_arg+0x66
 g_destroy_bio(c1b0c4a4) at g_destroy_bio+0x13
 g_vfs_done(c1b0c4a4) at g_vfs_done+0x5a
 biodone(c1b0c4a4,ca0bccc4,0,c0850cb0,1e4) at biodone+0x57
 g_io_schedule_up(c1833300) at g_io_schedule_up+0xb5
 g_up_procbody(0,ca0bcd38,0,c05fed08,0) at g_up_procbody+0x5a
 fork_exit(c05fed08,0,ca0bcd38) at fork_exit+0xa0
 fork_trampoline() at fork_trampoline+0x8
 --- trap 0x1, eip = 0, esp = 0xca0bcd6c, ebp = 0 ---
 
 
Responsible-Changed-From-To: freebsd-bugs->gnn 
Responsible-Changed-By: pjd 
Responsible-Changed-When: Mon Aug 22 01:41:59 GMT 2005 
Responsible-Changed-Why:  
gnn@ want to take a look at this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84102 

From: Antony Mawer <ant@mawer.org>
To: bug-followup@FreeBSD.org;, rjy@cmu.edu
Cc:  
Subject: Re: kern/84102: FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation
 5.0.0 build-13124
Date: Fri, 02 Sep 2005 12:52:31 +1000

 I'm also seeing the same panic and stack trace under VMware Workstation
 5. I can probably provide remote access to a machine (remote desktop,
 VNC?) if that would aid in debugging...
 

From: Andrew Turner <andrew@fubar.geek.nz>
To: bug-followup@FreeBSD.org,  rjy@cmu.edu
Cc:  
Subject: Re: kern/84102: FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation
 5.0.0 build-13124
Date: Sat, 03 Sep 2005 17:19:50 +1200

 I found this happens during heavy reads from a cd9660 file system, eg. 
 reading the ports.tgz file from a release ISO will panic it.
 
 A workaround I used for the BSD Installer images is to remove PREEMPTION 
 from the kernel, see http://perforce.freebsd.org/chv.cgi?CH=81383.

From: Peter Edwards <peter.edwards@vordel.com>
To: bug-followup@FreeBSD.org,  rjy@cmu.edu
Cc:  
Subject: Re: kern/84102: FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation
 5.0.0 build-13124
Date: Wed, 05 Oct 2005 14:46:54 +0100

 This is a multi-part message in MIME format.
 --------------020804000904070106060008
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Text and patch from mail I just sent to -current.
 I'd be interested to know if this fixes the reported issue.
 
 > acd_geom_start() implements request limiting by breaking up a large
 > request in the passed bio into a sequence of smaller ones.  As each
 > request is created,  acd_strategy is invoked to start the IO.
 >
 > However, I think this IO can complete while still issuing the child
 > requests, leading to the parent being retired early. (ie, when a child
 > operation completes, it checks if its the last operation to complete,
 > and, if so, retires the parent: see g_std_done.)
 >
 > The attached patch makes my qemu box much more reliable (I could crash
 > a qemu hosted system 100% with a "tar fc" of the 6.0-BETA bootonly ISO
 > without the patch, and it's gone through many iterations fine with it)
 
 
 
 
 
 This e-mail is business-confidential and may be privileged. If you are not
 the intended recipient, please notify us immediately and delete it. If the
 email does not relate to Vordel's business then it is neither from nor
 authorized by Vordel. Thank you.
 
 --------------020804000904070106060008
 Content-Type: text/plain;
  name="ata-geom.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="ata-geom.txt"
 
 Index: sys/dev/ata/atapi-cd.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/dev/ata/atapi-cd.c,v
 retrieving revision 1.179.2.1
 diff -u -r1.179.2.1 atapi-cd.c
 --- sys/dev/ata/atapi-cd.c	25 Aug 2005 16:21:05 -0000	1.179.2.1
 +++ sys/dev/ata/atapi-cd.c	5 Oct 2005 12:01:33 -0000
 @@ -760,7 +760,7 @@
      }
      else {
  	u_int pos, size = cdp->iomax - cdp->iomax % bp->bio_to->sectorsize;
 -	struct bio *bp2;
 +	struct bio *bp2, *first, *cur, **next = &first;
  
  	for (pos = 0; pos < bp->bio_length; pos += size) {
  	    if (!(bp2 = g_clone_bio(bp))) {
 @@ -773,7 +773,13 @@
  	    bp2->bio_data += pos;
  	    bp2->bio_length = MIN(size, bp->bio_length - pos);
  	    bp2->bio_pblkno = bp2->bio_offset / bp2->bio_to->sectorsize;
 -	    acd_strategy(bp2);
 +	    *next = bp2;
 +	    next = (struct bio **)&bp2->bio_driver1;
 +	}
 +	*next = 0;
 +	while ((cur = first) != 0) {
 +	    first = (struct bio *)cur->bio_driver1;
 +	    acd_strategy(cur);
  	}
      }
  }
 
 --------------020804000904070106060008--
 

From: Jung-uk Kim <jkim@FreeBSD.org>
To: bug-followup@FreeBSD.org, rjy@cmu.edu
Cc:  
Subject: Re: kern/84102: FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation 5.0.0 build-13124
Date: Wed, 5 Oct 2005 13:47:45 -0400

 I tested the patch with VMWare Workstation 5 eval.  It works like a 
 charm.
 
 Thanks!
 
 Jung-uk Kim

Adding to audit trail from misfiled PR kern/87373:

Date: Thu, 13 Oct 2005 08:30:38 -0700
From: Eric Hanchrow <offby1@blarg.net>
kern/84102

 I am seeing FreeBSD 6.0 RC1 panic in about the same way: I follow the
 same repro steps as in the bug report, and get a panic at about the
 same place.  Unfortunately I don't know how to debug the kernel; all I
 can say is that it prints this on the screen:
 
         Panic: page fault
         Uptime: 56s
         Cannot dump.  No dump device defined.
 
 This is with VMware Workstation e.x.p build 16325.
 -- 
 But users will not now with glad cries glom on to a language that
 gives them no more than what Scheme or Pascal gave them.
         -- Guy Steele, http://www.sun.com/research/jtech/pubs/98-oopsla-growing.ps

From: Markus Oestreicher <m.oe@x-trader.de>
To: bug-followup@FreeBSD.org
Cc: rjy@cmu.edu
Subject: Re: kern/84102: FreeBSD 6.0 BETA 1 install Panic's in VMWARE Workstation
 5.0.0 build-13124
Date: Tue, 18 Oct 2005 00:32:55 +0200

 I experienced this too. Here it was FreeBSD 6-RC1 running under
 Microsoft Virtual Server 2005.
 
 It seems to be fixed in the latest 6-STABLE snapshot from Oct 13.
 Using this version the installation worked fine.
 
 So this seems to be solved for 6.0-RELEASE.
 
 Markus
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: gnn 
State-Changed-When: Mon Jun 26 11:11:56 UTC 2006 
State-Changed-Why:  
Closing as this was fixed long back. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84102 
>Unformatted:
