From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 21 01:50:23 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07E55A29 for ; Fri, 21 Nov 2014 01:50:23 +0000 (UTC) Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C130BDFF for ; Fri, 21 Nov 2014 01:50:22 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id uz6so3271600obc.2 for ; Thu, 20 Nov 2014 17:50:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GkjS78OXJb3dZoe1beknaEoVHUNskmvNESny3d1jy98=; b=FSvgVYlhFsClXSsN5vUeKISStUwxyvk+yMHH/dEy5YnzvS7GEMmevOY0a4iWSd7D8c O0JXLBfICTbv5nNKWXa4FX4vuH0rrpPMdj7glp0c4klIuDXhXO1h6/nrZw6B/eo92KmJ UhobsV/DWfllAXSJOPSXJaLfgfMFdWkYAnHwrQ39K/F69evstuoca8Q9DQXSol9F76s7 Ja4LS2JC6retI4WwVa6J2GW4ypWeGNGQ5MnL3i08EXi22vd3wOF1px/XWg/7y5P5PA2I twXxtpLPD3/Unbj7VyDbmHnNZp+FMEdYGL1+i5rvsskoqGEgcgRIdJS4kXRaW9JP31HQ gC3Q== MIME-Version: 1.0 X-Received: by 10.182.44.229 with SMTP id h5mr167328obm.86.1416534622130; Thu, 20 Nov 2014 17:50:22 -0800 (PST) Received: by 10.76.0.138 with HTTP; Thu, 20 Nov 2014 17:50:22 -0800 (PST) Date: Thu, 20 Nov 2014 20:50:22 -0500 Message-ID: Subject: Debugging the ZDB debugger. From: Zaphod Beeblebrox To: FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 01:50:23 -0000 So ... I have several zfs filesystems with errors that may or may not be real. I've talked about this in the mailing lists before, and I was endeavoring to chase this all down with zdb ... to see what was real. zdb -dd vr2/tmp <--- works zdb -ddd vr2/tmp <--- crashes zdb -dddd vr2/tmp <--- also crashes. When I run "gdb -c zdb.core zdb" I get a whole bunch of: [New Thread 803406c00 (LWP 101333/zdb)] [New Thread 803406800 (LWP 101332/zdb)] [New Thread 803406400 (LWP 100598/zdb)] (probably 30 or so) and then: (gdb) bt #0 0x00000000004098a9 in ?? () #1 0x0000000000406222 in ?? () #2 0x000000000040528f in ?? () #3 0x0000000800632000 in ?? () #4 0x0000000000000000 in ?? () Seeing this, I went to the /usr/src/cddl/usr.sbin/zdb directory and tried recompiling ... but it already puts -g in there --- so ... What do I need to do to debug the debugger?