From nobody@FreeBSD.org  Wed Sep 26 12:48:19 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 54BF21065701
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Sep 2012 12:48:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 409868FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Sep 2012 12:48:19 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8QCmIRZ015134
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Sep 2012 12:48:18 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q8QCmIm8015133;
	Wed, 26 Sep 2012 12:48:18 GMT
	(envelope-from nobody)
Message-Id: <201209261248.q8QCmIm8015133@red.freebsd.org>
Date: Wed, 26 Sep 2012 12:48:18 GMT
From: Oliver Adler <bug_reporter@a999.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: zfs import panics kernel
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172092
>Category:       kern
>Synopsis:       [zfs] [panic] zfs import panics kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 26 12:50:15 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Apr 20 01:32:08 UTC 2014
>Originator:     Oliver Adler
>Release:        9.0-RELEASE-p3
>Organization:
N/A
>Environment:
FreeBSD i5.a999.de 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Using a 2.5" external USB 3.0 disk with 750 GB. On the disk is a bootable 9.0 FBSD. The disk was used as boot disk on a i386 atom system. Then using it on a amd64 system with
  zpool import -o altroot=/mnt -f zroot
orked fine. After shutting down the system with 
  shutdown -p
now the disk can no more be used.

Issuing 
  zpool list
or 
  zpool import -o altroot=/mnt -f zroot
on the amd64 system panics the kernel. Also attaching the device to the i386 system panics the atom system.

The failed assertion is in the file 
  ddt.c line 129.

I have a picture of the panic.

My assumption is, that there is a problem with deduplication (because on the disk is one dataset with switched on dedup).

The data of the disk is no more accessible.
>How-To-Repeat:
Using this disk, plugging it to either the amd64 or the i386 system
Issuing 
  zpool list 
and the panic shows up

If you have any patches to test I will do this. I will keep the disk in this state for some time. If I can help in any way, please ask me.
>Fix:


>Release-Note:
>Audit-Trail:

From: Oliver Adler <bug_reporter@a999.de>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: kern/172092: zfs import panics kernel
Date: Thu, 27 Sep 2012 11:32:26 +0200

 Hello,
 meanwhile I managed to get a crashdump. It is sufficient to call
 
 # zpool import
 
 
 Dump header from device /dev/label/i5swapnew
   Architecture: amd64
   Architecture Version: 2
   Dump Length: 776949760B (740 MB)
   Blocksize: 512
   Dumptime: Thu Sep 27 12:44:03 2012
   Hostname: 
   Magic: FreeBSD Kernel Dump
   Version String: FreeBSD 9.0-RELEASE-p3 #0: Thu Sep 27 09:33:57 CEST 2012
     root@i5.a999.de:/usr/src/sys/amd64/compile/DDB
   Panic String: solaris assert: ddt_object_info(ddt, type, class, &doi) == 0, file: /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/ddt.c, line: 129
   Dump Parity: 3775408702
   Bounds: 0
   Dump Status: good
 
 The download links are:
 https://www.hidrive.strato.com/lnk/lPSmkaqB
 https://www.hidrive.strato.com/lnk/slSGk1wz
 
 The Password is: FreeBSD
 
 If you need any more details, I will provide them.
 
 Greetings
 
 Oliver
 
 -- 
 Oliver Adler
 eMail      : bug_reporter@a999.de
 Phone      : +49 (0)8056/909794
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Apr 20 01:31:49 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer(s). 

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