From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 17 23:53:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D031337B401 for ; Thu, 17 Apr 2003 23:53:38 -0700 (PDT) Received: from ns.gfk.ru (ns.gfk.ru [62.205.179.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E8FC43F93 for ; Thu, 17 Apr 2003 23:53:37 -0700 (PDT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from mx.gfk.ru ([10.0.0.30]) by ns.gfk.ru ([62.205.179.194]) with SMTP (MDaemon.PRO.v6.5.2.R) for ; Fri, 18 Apr 2003 10:52:42 +0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Fri, 18 Apr 2003 10:52:41 +0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Sound drivers Thread-Index: AcLtmfvwVlZsG3tLQ9KFsTWY6JG2pwX1mOlQ From: "Yuriy Tsibizov" To: X-MDRemoteIP: 10.0.0.30 X-Return-Path: Yuriy.Tsibizov@gfk.ru X-MDaemon-Deliver-To: freebsd-hackers@FreeBSD.ORG Subject: How to debug panic()s in device_attach function of kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 18 Apr 2003 06:53:39 -0000 I'm trying to debug panic()s in one of my drivers (I can compile it only = as module now),=20 but I can't find a way to get address where it was loaded by kldload.=20 I can't run kldstat (as recommended by developers' handbook, 17.6) = because it panic()s=20 during kldloading (after LOR of ZONE_LOCKs after malloc(0) somewhere in = device_attach of my driver).=20 Can I get this address inside kdb? Another question, what is correct behavior of malloc(0, M_DEVBUF, = M_NOWAIT | M_ZERO)?=20 Yuriy Tsibizov