From owner-freebsd-current@FreeBSD.ORG Sat Feb 4 07:54:34 2012 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 4C1741065670 for ; Sat, 4 Feb 2012 07:54:34 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 212EA8FC0A for ; Sat, 4 Feb 2012 07:54:33 +0000 (UTC) Received: from julian-mac.elischer.org (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id q147sVee027793 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 3 Feb 2012 23:54:33 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <4F2CE485.5020909@freebsd.org> Date: Fri, 03 Feb 2012 23:55:49 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.25) Gecko/20111213 Thunderbird/3.1.17 MIME-Version: 1.0 To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: problem with kgdb and modules 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: Sat, 04 Feb 2012 07:54:34 -0000 so We upgraded our development machines from 8 stable to 9 stable. and now kgdb can't debug inside modules. instead of getting anything useful, we just get: (kgdb) bt #0 0xffffffff81814600 in ?? () from /boot/kernel/netgraph.ko #1 0xffffffff81812d80 in ?? () from /boot/kernel/ng_socket.ko #2 0x0000000000000037 in ?? () #3 0x0000000000000002 in ?? () #4 0xfffffe0007176aa0 in ?? () #5 0xfffffe0007176aa0 in ?? () #6 0xffffffff818134a0 in ?? () from /boot/kernel/ng_socket.ko #7 0xffffffff81813960 in ?? () from /boot/kernel/ng_socket.ko #8 0xffffff860fa3cad0 in ?? () #9 0xffffffff808cc76e in socreate (dom=Variable "dom" is not available. ) at ../../../kern/uipc_socket.c:411 but stopping in the kernel itself, we DO see stuff.. (kgdb) break socreate Breakpoint 1 at 0xffffffff808cc628: file ../../../kern/uipc_socket.c, line 372. (kgdb) c Continuing. [New Thread 100198] [Switching to Thread 100198] Breakpoint 1, socreate (dom=32, aso=0xffffff860fa3caf0, type=2, proto=1, cred=0xfffffe000c63f600, td=0xfffffe011501a000) at ../../../kern/uipc_socket.c:372 372 if (proto) (kgdb) bt #0 socreate (dom=32, aso=0xffffff860fa3caf0, type=2, proto=1, cred=0xfffffe000c63f600, td=0xfffffe011501a000) at ../../../kern/uipc_socket.c:372 #1 0xffffffff808cf710 in sys_socket (td=0xfffffe011501a000, uap=0xffffff860fa3cbc0) at ../../../kern/uipc_syscalls.c:199 #2 0xffffffff80b5599a in amd64_syscall (td=0xfffffe011501a000, traced=0) at subr_syscall.c:131 #3 0xffffffff80b40b57 in Xfast_syscall () at ../../../amd64/amd64/exception.S:387 #4 0x00000008011c82ac in ?? () etc. it looks as if modules no longer have stack frames compiled in. does anyone know the culprit?