From owner-freebsd-current@FreeBSD.ORG Fri Jul 31 18:02:04 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FBE3106564A; Fri, 31 Jul 2009 18:02:04 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout025.mac.com (asmtpout025.mac.com [17.148.16.100]) by mx1.freebsd.org (Postfix) with ESMTP id EC4358FC16; Fri, 31 Jul 2009 18:02:03 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp025.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KNN00GHHRF1RYA0@asmtp025.mac.com>; Fri, 31 Jul 2009 11:02:00 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <200907311325.54104.jhb@freebsd.org> Date: Fri, 31 Jul 2009 11:01:49 -0700 Message-id: References: <4A6DB30B.20705@zedat.fu-berlin.de> <200907310846.34200.jhb@freebsd.org> <718AFBEF-DA22-4A5B-8E9A-8C3C2E18DB47@mac.com> <200907311325.54104.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1074) Cc: Anton Shterenlikht , freebsd-current@freebsd.org, Alexandre Sunny Kovalenko Subject: Re: FreeBSD 8.0-BETA2/amd64 crashes on SMP under load 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: Fri, 31 Jul 2009 18:02:04 -0000 On Jul 31, 2009, at 10:25 AM, John Baldwin wrote: >> In other words: kgdb was designed to hide FreeBSD specifics from the >> core GDB >> code, because core GDB doesn't know how to deal with all FreeBSD >> details. >> Revision 178670 created a stronger dependency on core GDB and as such >> broke >> architectures that core GDB doesn't support for FreeBSD. > > So gdb doesn't work for core dumps on regular processes under ia64? It does, but kernel core files aren't matched, because the OSABI is standalone. Also, GDB doesn't have libkvm support for ia64, which is probably what makes it work on i386/amd64. > Still, > kgdb doesn't actually use the regular core target at all, it uses > its own > target that uses libkvm to service the actual memory I/O that > normally goes > to the core target. That's maybe the problom: is the kgdb target used at all? If it were, then why did ia64 break? Maybe we have a simple resolution problem where GDB just happens to pick the wrong core_stratum target on ia64... I haven't had the time for root cause hunting, so from here on things should be taken with plenty of salt. I can check PowerPC for example... > The previous code was very hacky and didn't allow you > to use the 'file' and 'core' commands as a result. Actually it was by design. -- Marcel Moolenaar xcllnt@mac.com