From owner-freebsd-hackers@freebsd.org Fri Aug 12 17:35:17 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72FBDBB8439 for ; Fri, 12 Aug 2016 17:35:17 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-yb0-x22b.google.com (mail-yb0-x22b.google.com [IPv6:2607:f8b0:4002:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3473C12D7 for ; Fri, 12 Aug 2016 17:35:17 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-yb0-x22b.google.com with SMTP id d10so5577402ybi.1 for ; Fri, 12 Aug 2016 10:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=1VirmK7KnlgpHZDS+Ar6YCwVFU5VUXjoBRlcG7hRxB8=; b=s7si5rbwx73cThmDGuJldWq5zGUbjCyEsTb9ynASvQ59YOvsLeMh9JBsT2vmeyrtzZ +98t/iAfNEa/YejA6rhcJHjSfIRXjz9iNsq4GVcKJ7ZlMWV4PNukfOhIMl/2tKeGSIDy j09D8ahJTyrbKNDsDFW4pDvchnWAj1m3tlFNwqdTKjN6kfsTScaY6mPnzAX7X2dG/0GL IWSmkz/05Kga/2EvKY6ycnssSdii3OQwIxbkOFFffg5Z1dKgV+TYAHYUNu+28/xD/JYf orH7ozExwOIPTdPI1MRgwYI/eTtD0it6NOcgW93XhUzDBqe1qtRE5dpZrhtRcVLwsazC rH2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1VirmK7KnlgpHZDS+Ar6YCwVFU5VUXjoBRlcG7hRxB8=; b=GZLP70C3btBBcsDWnETbjsAbGxSyfvkkx9RS9SmCF8R7u/EvB6maEznKRAbgp0Y4TU DQhFXzEG7fv9vb2XuHjVZjU9v9Aj8jGJSZMxIuw0YTEJtoAIj9DpK33BjmGzjM1kpp8i b/TOYRLxNYs1NU5WNxZLawd+qnhQbgky0OnVdGTKh9wB0Z3XUDTVklj5B+xVs0wTKKvp xnA2AKQIIyCCInJ86MOar4wApZfW6AH0Y8G8NEDXKuCrtEHAYQ9YAxZiPF6KrwuSweOh PZHpwF1CgtxpubnWFlRTW9uKeW7ejeFxz1byhL561aV3zTRU3uSkLBFSfhcdNg6wCVOR Oalg== X-Gm-Message-State: AEkoouuOQuTrI8Y10MG+1PIJfBDlLLu5blwTRBoe6Z8n4gIYaiXUdN8sRsPHqv0jYJZPptYwjoSPBbnbFhFOgg== X-Received: by 10.37.118.68 with SMTP id r65mr10768312ybc.3.1471023316041; Fri, 12 Aug 2016 10:35:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.37 with HTTP; Fri, 12 Aug 2016 10:35:15 -0700 (PDT) From: Zaphod Beeblebrox Date: Fri, 12 Aug 2016 13:35:15 -0400 Message-ID: Subject: Panic not dumping to USB. To: FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2016 17:35:17 -0000 My swap spaces are too small to hold some of the panic's. Either that, or this is also happening to them. I added a 64G USB drive to the machine for the express purpose of crash dumps. I formatted it with GPT and a label (so that it wouldn't get mixed up with SCSI drives). The first partition has the type freebsd-swap and the label 'crash' ... so /dev/gpt/crash is my configured crash dump location. Luckily I have a serial console, so this is what's happening at crash-time: panic: dva_get_dsize_sync(): bad DVA 1573890:1587590144 cpuid = 0 KDB: stack backtrace: #0 0xffffffff80e55fed at kdb_backtrace+0x8d #1 0xffffffff80df76af at vpanic+0x1df #2 0xffffffff80df74d0 at vpanic+0 #3 0xffffffff822b8b01 at dva_get_dsize_sync+0xb1 #4 0xffffffff822b8d9e at bp_get_dsize+0x12e #5 0xffffffff8225a786 at dmu_tx_count_free+0x2f6 #6 0xffffffff8225a334 at dmu_tx_hold_free+0x384 #7 0xffffffff8223e9aa at dmu_free_long_range_impl+0xfa #8 0xffffffff8223e850 at dmu_free_long_range+0x60 #9 0xffffffff82312dfe at zfs_rmnode+0xbe #10 0xffffffff822ed36f at zfs_zinactive+0xef #11 0xffffffff82339da7 at zfs_freebsd_reclaim+0x87 #12 0xffffffff81619894 at VOP_RECLAIM_APV+0x174 #13 0xffffffff80f15e39 at VOP_RECLAIM+0x39 #14 0xffffffff80f0ff99 at vgonel+0x3e9 #15 0xffffffff80f105e1 at vrecycle+0xb1 #16 0xffffffff8233614e at zfs_inactive+0x1ae #17 0xffffffff82339d14 at zfs_freebsd_inactive+0x34 Uptime: 1d5h2m19s Dumping 10472 out of 49114 MB:..1%..11%SESC[0mESC[2;30;40mESC[0mESC[1m^@ESC[01;0 ... obviously, that last bit after 11% is the console rebooting. Note that dumping begins after Uptime. Is that normal? In this case, the 10472 would fit on the 16G swap, but I'm not sure what the problem is. It definitely fits on the 64G USB stick.