From owner-freebsd-ppc@FreeBSD.ORG Tue Jun 11 04:20:38 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 77DE6944; Tue, 11 Jun 2013 04:20:38 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-bk0-x235.google.com (mail-bk0-x235.google.com [IPv6:2a00:1450:4008:c01::235]) by mx1.freebsd.org (Postfix) with ESMTP id D3CF1199C; Tue, 11 Jun 2013 04:20:37 +0000 (UTC) Received: by mail-bk0-f53.google.com with SMTP id e11so3084017bkh.40 for ; Mon, 10 Jun 2013 21:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=4bSlMJywfx8M1mNzH2YydM/Ow6ZMEfUr1emSAVWpPqY=; b=cLBncvhuLMlW9psvWW2T7UKawsJvbjFtxSkLmgj/ekh25RlnWELqiNtQwsQF4vWyLF 0eS/KzmW2jDYFAQWA+83d4x/emwWnVC9zv7Zv6W7a/Qf2WrtUH5lA8iWrGCHpqevNbzt acYvzUNZkXRmz2IUxcuWMrgV5JyqD9K5FAkz4ruDBW+q9BXS+txl4lIt9Ov9sSn0ZeFK Y6MuNMK2V4je4+S+mgOhiybwP9C8hQQUO7RrrY1FjsrMRh85riG/L5QyF/H2wljyfEsM 9x/hdF760i/0HhdEqPK3m2FYa8kvzOYlYO5gTXH8MjlIeYkeT1q5eC72CzuqX5BV3TgK MTBw== MIME-Version: 1.0 X-Received: by 10.204.169.137 with SMTP id z9mr2004779bky.33.1370924436842; Mon, 10 Jun 2013 21:20:36 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.204.236.132 with HTTP; Mon, 10 Jun 2013 21:20:36 -0700 (PDT) In-Reply-To: <51B5D539.8050102@freebsd.org> References: <51AF6661.3060007@freebsd.org> <51B345BE.5030905@freebsd.org> <51B4A389.4020607@freebsd.org> <51B5D28C.505@freebsd.org> <51B5D539.8050102@freebsd.org> Date: Mon, 10 Jun 2013 21:20:36 -0700 X-Google-Sender-Auth: LxkD-hI-O6Piq-voJqCP2nU6vf8 Message-ID: Subject: Re: Strange panic on ppc64 From: Justin Hibbits To: Nathan Whitehorn Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD PowerPC ML X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2013 04:20:38 -0000 On Mon, Jun 10, 2013 at 6:31 AM, Nathan Whitehorn wrote: > On 06/10/13 08:20, Nathan Whitehorn wrote: > > This is now getting interesting. Reading the tea leaves, what has > > happened is that the kernel has called into Open Firmware. Open Firmware > > has then crashed early on, before setting up its own trap handlers, > > which has then flung you back into FreeBSD's handlers with a totally > > bogus environment, causing a second panic, which then causes a *third* > > panic when trying to acquire a lock. It would be interesting to know > > what the OF environment looked like and what commands it was trying to > > execute (in r3), but that may be tricky to get... > > -Nathan > > _______________________________________________ > > One other point: you can trace this pretty easily by just putting > something like: > > if (pmap_bootstrapped) printf("Open Firmware call %p\n", args); > > in the top of openfirmware(). If I understood the debugger output > correctly, something should be making a firmware call immediately before > the crash. > > As a random guess about what is happening, it is possible OF is trying > to allocate memory for itself. We just ignore the possibility that it > might want to do that at present, but that is not necessarily a good > assumption. > -Nathan > I added that, both on entry and exit. I also have it printing out the name of the ofw call, since the first item is always a pointer to the name. I'll be able to report more tomorrow. - Justin