From kaho@easy.es.tuat.ac.jp  Sun Sep  7 20:29:54 2003
Return-Path: <kaho@easy.es.tuat.ac.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6B57116A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  7 Sep 2003 20:29:54 -0700 (PDT)
Received: from easy.es.tuat.ac.jp (easy.es.tuat.ac.jp [165.93.221.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BE46143FB1
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  7 Sep 2003 20:29:52 -0700 (PDT)
	(envelope-from kaho@easy.es.tuat.ac.jp)
Received: from easy.es.tuat.ac.jp (localhost [IPv6:::1])
	by easy.es.tuat.ac.jp (8.12.9/8.12.9) with ESMTP id h883TmUG000794
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 8 Sep 2003 12:29:48 +0900 (JST)
	(envelope-from kaho@easy.es.tuat.ac.jp)
Received: (from kaho@localhost)
	by easy.es.tuat.ac.jp (8.12.9/8.12.9/Submit) id h883Tluh000793;
	Mon, 8 Sep 2003 12:29:47 +0900 (JST)
	(envelope-from kaho)
Message-Id: <200309080329.h883Tluh000793@easy.es.tuat.ac.jp>
Date: Mon, 8 Sep 2003 12:29:47 +0900 (JST)
From: Kaho Toshikazu <kaho@easy.es.tuat.ac.jp>
Reply-To: Kaho Toshikazu <kaho@easy.es.tuat.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: panic at writting DVD-RAM after ATAng
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56583
>Category:       kern
>Synopsis:       panic at writting DVD-RAM after ATAng
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    thomas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 07 20:30:13 PDT 2003
>Closed-Date:    Wed Feb 11 08:28:03 PST 2004
>Last-Modified:  Wed Feb 11 08:30:22 PST 2004
>Originator:     Kaho Toshikazu
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
TUAT
>Environment:
System: FreeBSD easy.es.tuat.ac.jp 5.1-CURRENT FreeBSD 5.1-CURRENT #6: Mon Sep 8 11:19:15 JST 2003 kaho@easy.es.tuat.ac.jp:/usr/src/sys/i386/compile/EASY i386


	
>Description:
 I am using DVD-RAM with ATAPICAM. there is not any problem
to execute disklabel, newfs and mount /dev/cd0.
But I will write a file to the DVD-RAM, then kernel panics.
Before ATAng, I can write files, but now cannot write.

backtarace is here:

#0  doadump () at ../../../kern/kern_shutdown.c:240
#1  0xc0228c89 in boot (howto=260) at ../../../kern/kern_shutdown.c:372
#2  0xc0228f8d in panic () at ../../../kern/kern_shutdown.c:550
#3  0xc015ca35 in db_panic () at ../../../ddb/db_command.c:450
#4  0xc015c9cc in db_command (last_cmdp=0xc03f2900, cmd_table=0x0, 
    aux_cmd_tablep=0xc03a7554, aux_cmd_tablep_end=0xc03a7558)
    at ../../../ddb/db_command.c:346
#5  0xc015caa4 in db_command_loop () at ../../../ddb/db_command.c:472
#6  0xc015f12d in db_trap (type=3, code=0) at ../../../ddb/db_trap.c:73
#7  0xc0340d51 in kdb_trap (type=3, code=0, regs=0xe53759b0)
    at ../../../i386/i386/db_interface.c:171
#8  0xc0350050 in trap (frame=
      {tf_fs = -449380328, tf_es = -1071382512, tf_ds = 16, tf_edi = 1, tf_esi = -1069952145, tf_ebp = -449357324, tf_isp = -449357348, tf_ebx = 0, tf_edx = 0, tf_ecx = 0, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1070329919, tf_cs = 8, tf_eflags = 662, tf_esp = -449357280, tf_ss = -449357292})
    at ../../../i386/i386/trap.c:577
#9  0xc0342288 in calltrap () at {standard input}:102
#10 0xc0228eef in panic (fmt=0xc039d36f "ufs_dirbad: bad dir")
    at ../../../kern/kern_shutdown.c:534
#11 0xc0304ec1 in ufs_dirbad (ip=0x0, offset=0, how=0xc039d329 "mangled entry")
    at ../../../ufs/ufs/ufs_lookup.c:633
#12 0xc03044d6 in ufs_lookup (ap=0xe5375b38)
    at ../../../ufs/ufs/ufs_lookup.c:296
#13 0xc030af93 in ufs_vnoperate (ap=0x0) at ../../../ufs/ufs/ufs_vnops.c:2792
#14 0xc026a701 in vfs_cache_lookup (ap=0x0) at vnode_if.h:82
#15 0xc030af93 in ufs_vnoperate (ap=0x0) at ../../../ufs/ufs/ufs_vnops.c:2792
#16 0xc026ecdb in lookup (ndp=0xe5375c30) at vnode_if.h:52
#17 0xc026e77d in namei (ndp=0xe5375c30) at ../../../kern/vfs_lookup.c:183
#18 0xc027aa52 in stat (td=0xc61a6be0, uap=0xe5375d14)
    at ../../../kern/vfs_syscalls.c:1719
#19 0xc0350833 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134689024, tf_esi = 7, tf_ebp = -1077937736, tf_isp = -449356428, tf_ebx = 134599279, tf_edx = 134599286, tf_ecx = 134684690, tf_eax = 188, tf_trapno = 12, tf_err = 2, tf_eip = 134523587, tf_cs = 31, tf_eflags = 658, tf_esp = -1077937924, tf_ss = 47})
    at ../../../i386/i386/trap.c:1005
#20 0xc03422dd in Xint0x80_syscall () at {standard input}:144

>How-To-Repeat:
Use ATAPI type DVD drive with ATAPICAM drivers. Write a file
to DVD-RAM media after disklabel, newfs, mount. 

>Fix:
sorry, I do not know how to correct it.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Oct 11 01:16:52 PDT 2003 
Responsible-Changed-Why:  
Assign to ATA maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56583 
Responsible-Changed-From-To: sos->thomas 
Responsible-Changed-By: sos 
Responsible-Changed-When: Sat Oct 25 12:26:42 PDT 2003 
Responsible-Changed-Why:  
Using DVD-RAM works with atapi-cd. 
atapicam problems is thomas's area. 


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

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Kaho Toshikazu <kaho@easy.es.tuat.ac.jp>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/56583: panic at writting DVD-RAM after ATAng
Date: Wed, 11 Feb 2004 11:24:23 +0100

 * Kaho Toshikazu, 2003-09-08 :
 
 > >How-To-Repeat:
 > Use ATAPI type DVD drive with ATAPICAM drivers. Write a file
 > to DVD-RAM media after disklabel, newfs, mount. 
 
 Is this still happening? If so please describe the exact tools and
 command used to trigger the panic.
 
 Thanks,
 Thomas.
 
 -- 
     Thomas.Quinot@Cuivre.FR.EU.ORG
State-Changed-From-To: open->closed 
State-Changed-By: thomas 
State-Changed-When: Wed Feb 11 08:27:07 PST 2004 
State-Changed-Why:  
Submitter reports that the problem cannot be reproduced with recent sources. 

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

From: Kaho Toshikazu <kaho@easy.es.tuat.ac.jp>
To: Thomas Quinot <thomas@FreeBSD.ORG>
Cc: bug-followup@FreeBSD.ORG
Subject: Re: kern/56583: panic at writting DVD-RAM after ATAng
Date: Thu, 12 Feb 2004 01:21:08 +0900

   Thank you for your reply.
 
 > Is this still happening? If so please describe the exact tools and
 > command used to trigger the panic.
 
   I don't remember when it was vanished.
 Now I can use DVD-RAM via /dev/cd0a
 and write DVD-RW by dvd+rw-tools via /dev/cd0.
 
   Please close PR.
 
 -- 
 kaho@easy.es.tuat.ac.jp
>Unformatted:
