From owner-freebsd-current@FreeBSD.ORG Sun Nov 8 11:43:34 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F262C106566B for ; Sun, 8 Nov 2009 11:43:33 +0000 (UTC) (envelope-from ubm.freebsd@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 846AB8FC1C for ; Sun, 8 Nov 2009 11:43:32 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so972037fga.13 for ; Sun, 08 Nov 2009 03:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=TDLJOO2grM34i6HlRKHDREkF5hyry9JKXM3OGNcJBLY=; b=GydWdkwfvHYqwwepucwMoYgP2BXGmAMX826uJRNSaUMOXtouwtC1TQHlJBfVt446P6 WpWoy/yZOOhsKYsyQDaS8v7Hi6fzv+Xe3ibUjma99iWPx6+fBaKGPkxPzsq5LishgaUz 9khtTTnFonwEwdQVtPTL8yWTYp59WGeXpGXpE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=x91+Si0oRCYOH+TkyT6Agga4BhEzNJSfcjHeRl0PkO+Y+g+BsTkHOr95fcK/+QVU/l cDYajMyn4aVU3f1RGTUGO3yhoUqNUmznk/VvHk+6wNP5aFo1LdUFmlZU6Zk95REKkIhZ 6FQxj1dKvY8KeSWj2ruYAsm2q4lrtcng3IAd8= Received: by 10.86.230.30 with SMTP id c30mr7269593fgh.68.1257680612097; Sun, 08 Nov 2009 03:43:32 -0800 (PST) Received: from greatsheep.chaos.base (e181056162.adsl.alicedsl.de [85.181.56.162]) by mx.google.com with ESMTPS id e3sm4477001fga.13.2009.11.08.03.43.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Nov 2009 03:43:31 -0800 (PST) Date: Sun, 8 Nov 2009 12:43:30 +0100 From: Marc UBM Bocklet To: current@freebsd.org Message-Id: <20091108124330.b634560c.ubm.freebsd@gmail.com> X-Mailer: Sylpheed 2.7.0 (GTK+ 2.16.4; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 08 Nov 2009 15:59:22 +0000 Cc: Subject: gjournal crash with external usb drive after unclean shutdown X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Nov 2009 11:43:34 -0000 Hiho! :-) Following an unclean shutdown (panic, related to a bad network card in another machine), my gjournaled external usb drive reliably crashes my system when I connect it. I got a core dump available for poking around further. Textdump info is attached. I'm not sure if the disk is dying or the journal somehow got into a really bad state. textdump is available on request! :-) Some information: FreeBSD greatsheep.chaos.base 9.0-CURRENT FreeBSD 9.0-CURRENT #16: Fri Sep 25 19:16:18 CEST 2009 sheep@ubm.mine.nu:/usr/obj/usr/src/sys/SUBMARINE_SMP i386 Panic message: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x8a6c7000 fault code = supervisor read, page not present instruction pointer = 0x20:0x8086d3fe stack pointer = 0x28:0xdc71e964 frame pointer = 0x28:0xdc71e9e0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 2087 (g_journal da0) kgdb backtrace: (kgdb) bt #0 doadump () at pcpu.h:246 #1 0x804a4509 in db_fncall (dummy1=1, dummy2=0, dummy3=-2137208096, #dummy4=0xdc71e6fc "") at /usr/src/sys/ddb/db_command.c:548 2 #0x804a4901 in db_command (last_cmdp=0x809495bc, cmd_table=0x0, #dopager=1) at /usr/src/sys/ddb/db_command.c:445 3 0x804a4a5a in #db_command_loop () at /usr/src/sys/ddb/db_command.c:498 4 0x804a68cd #in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:229 5 #0x806358e6 in kdb_trap (type=12, code=0, tf=0xdc71e924) #at /usr/src/sys/kern/subr_kdb.c:535 6 0x8086f40f in trap_fatal #(frame=0xdc71e924, eva=2322362368) #at /usr/src/sys/i386/i386/trap.c:929 7 0x8086f6b0 in trap_pfault #(frame=0xdc71e924, usermode=0, eva=2322362368) #at /usr/src/sys/i386/i386/trap.c:851 8 0x808700c3 in trap #(frame=0xdc71e924) at /usr/src/sys/i386/i386/trap.c:533 9 0x80852feb #in calltrap () at /usr/src/sys/i386/i386/exception.s:165 10 0x8086d3fe #in generic_bcopy () at /usr/src/sys/i386/i386/support.s:498 Previous frame inner to this frame (corrupt stack?) dmesg lines leading up to the panic: ugen2.2: at usbus2 umass0: on usbus2 umass0: SCSI over Bulk-Only; quirks = 0x0800 umass0:1:0:-1: Attached to scbus1 da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) GEOM_JOURNAL: Journal 1159150689: da0 contains data. GEOM_JOURNAL: Journal 1159150689: da0 contains journal. GEOM_JOURNAL: Journal da0 consistent. (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 (da0:umass-sim0:0:0:0): Invalid command operation code (da0:umass-sim0:0:0:0): Unretryable error GEOM_JOURNAL: BIO_FLUSH not supported by da0. GEOM_JOURNAL: Error while reading data from da0 (error=5). GEOM_JOURNAL: Error while reading data from da0 (error=5). Any help or pointers are appreciated, thanks in advance! :-) Bye Marc