From owner-freebsd-current@FreeBSD.ORG Tue Aug 7 19:11:47 2007 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 A0AD916A41B for ; Tue, 7 Aug 2007 19:11:47 +0000 (UTC) (envelope-from cosasvarias@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by mx1.freebsd.org (Postfix) with ESMTP id 5470913C465 for ; Tue, 7 Aug 2007 19:11:47 +0000 (UTC) (envelope-from cosasvarias@gmail.com) Received: by wr-out-0506.google.com with SMTP id 67so705715wri for ; Tue, 07 Aug 2007 12:11:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=GBJftAhMmrzvnkbibapWDV7YzTnVGNYIC+8HHKhkPb1qjgJRrD3LFLzdibPtJqXfNORuQ3ZefkYiTacX4jpcFEjGYe8J2gP5PqT+IjTHFyy9/XEd6ivz5BmNYVXqU0CtQW1KYwrHe42IMgxngVOl252tWQYzKI9F3z0kRVrXzss= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jBYP9wxy6ShmzPaG371r08NAWF9SpAeszwL5kC9l537WRqGGCBB6OLEnghi8hujSAzkdHFs9q1N+k6ELTdt7R5IHQq3PoMEn1vbQ/iHRoMMxOJz8h6XxuCL1f4PX6oOBaztONVQSvhH5cjA4ShurqfcD5OvkJurZ2vv8C7ek5d8= Received: by 10.90.52.18 with SMTP id z18mr6509420agz.1186513906516; Tue, 07 Aug 2007 12:11:46 -0700 (PDT) Received: by 10.90.50.2 with HTTP; Tue, 7 Aug 2007 12:11:46 -0700 (PDT) Message-ID: <5d95d4be0708071211q5ede78b3q93d1cc0b21578810@mail.gmail.com> Date: Tue, 7 Aug 2007 21:11:46 +0200 From: "A. Rios" To: current@freebsd.org In-Reply-To: <5d95d4be0708050332r5b00c5b7h73acb3ae8b94383c@mail.gmail.com> MIME-Version: 1.0 References: <5d95d4be0708050332r5b00c5b7h73acb3ae8b94383c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: panic and fs corruption in -current 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: Tue, 07 Aug 2007 19:11:47 -0000 On 8/5/07, A. Rios wrote: > > I compiled yesterday's kernel without problems, and it restarted fine. I > applied jeff roberson's ulehtt.diff (P4 with hyperthreading and 2GB RAM > here) > and disabled all kernel debugging (I was testing performance) > > Earlier this morning I was portupgrading and everything start to fail. One > of the > (random) panics was: > > Ok, now I have a kernel with debug symbols and I've found a way to reproduce the panic. It occurs when installing a port and after the message "SHA256 checksum OK for port XXXXX", at this point the system freezes and sometimes it dumps the memory and reboot itself, and other times it simply freezes and I have to restart the computer. I think the problem came from somewhere of the gcc/make toolchain but I don't know where to start. Kernel sources was fetched this morning, so the ulehtt patch isn't guilty. Since I don't have any experience with kgdb I can only follow the steps from the handbook (I don't know if it has anything to do with the panic, but it costs nothing to attach :) /usr/obj/usr/src/sys/7.agosto- 2.debug# kgdb kernel.debug/var/crash/vmcore.4 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd". Unread portion of the kernel message buffer: start = 0, len = 2758, fs = /usr panic: ffs_alloccg: map corrupted cpuid = 1 Uptime: 3m50s Physical memory: 2035 MB Dumping 434 MB: 419 403 387 371 355 339 323 307 291 275 259 243 227 211 195 179 163 147 131 115 99 83 67 51 35 19 3 #0 doadump () at pcpu.h:194 194 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); (kgdb)