From owner-freebsd-amd64@FreeBSD.ORG Thu Sep 6 18:30:02 2007 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 663C516A419 for ; Thu, 6 Sep 2007 18:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2D19F13C46E for ; Thu, 6 Sep 2007 18:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l86IU2Yr082233 for ; Thu, 6 Sep 2007 18:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l86IU1LI082230; Thu, 6 Sep 2007 18:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 6 Sep 2007 18:30:01 GMT Resent-Message-Id: <200709061830.l86IU1LI082230@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joshua Isom Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CF0116A418 for ; Thu, 6 Sep 2007 18:23:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5CF3E13C45B for ; Thu, 6 Sep 2007 18:23:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l86INEfN043753 for ; Thu, 6 Sep 2007 18:23:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l86INEsk043752; Thu, 6 Sep 2007 18:23:14 GMT (envelope-from nobody) Message-Id: <200709061823.l86INEsk043752@www.freebsd.org> Date: Thu, 6 Sep 2007 18:23:14 GMT From: Joshua Isom To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Fri, 14 Sep 2007 10:57:46 +0000 Cc: Subject: amd64/116159: Panic while debugging on CURRENT X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2007 18:30:02 -0000 >Number: 116159 >Category: amd64 >Synopsis: Panic while debugging on CURRENT >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 06 18:30:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Joshua Isom >Release: CURRENT kernel, STABLE userland >Organization: >Environment: FreeBSD freebsd 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Sep 5 06:32:03 CDT 2007 root@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When I use a 6-STABLE userland with a 7-CURRENT kernel(for support for my dvd drive), I can predictably cause a panic in the kernel while debugging a program, and all as a non root user. Looking at the coredump seems to provide no information but once it paniced I was able to get this information. kdb_enter() at kdb_enter+0x31 panic() at panic+0x173 postsig() at postsig+0x155 thread_export_context() at thread_export_context+0x1c7 thread_userret() at thread_userret+0x481 userret() at userret+0xfb trap() at trap+0x22d calltrap() at calltrap+0x8 trap 0xc, rip=0xdc0038, rsp=0x7fffffffe730, rbp=0x7fffffffee760 The way I cause this is to debug a program that segfaults, and type in "next" or a similar command into gdb. When I tried upgrading to a full CURRENT system, debugging anything seemed to be broken(one command would become zombied and I couldn't figure out which). I don't have any problems with debugging with a 6-STABLE system. >How-To-Repeat: $ gdb foo > run program went boom > next kernel goes boom >Fix: Unknown, but everything works in 6-STABLE. >Release-Note: >Audit-Trail: >Unformatted: