From owner-freebsd-current@FreeBSD.ORG Sun Nov 13 17:56:14 2011 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 2931B1065670 for ; Sun, 13 Nov 2011 17:56:14 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm27-vm0.bullet.mail.sp2.yahoo.com (nm27-vm0.bullet.mail.sp2.yahoo.com [98.139.91.232]) by mx1.freebsd.org (Postfix) with SMTP id 0853D8FC0C for ; Sun, 13 Nov 2011 17:56:13 +0000 (UTC) Received: from [98.139.91.62] by nm27.bullet.mail.sp2.yahoo.com with NNFMP; 13 Nov 2011 17:56:13 -0000 Received: from [98.136.185.41] by tm2.bullet.mail.sp2.yahoo.com with NNFMP; 13 Nov 2011 17:56:13 -0000 Received: from [127.0.0.1] by smtp102.mail.gq1.yahoo.com with NNFMP; 13 Nov 2011 17:56:13 -0000 X-Yahoo-Newman-Id: 717966.23941.bm@smtp102.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: GwUqq1sVM1koCGaXh91ij3ERrNjaKZqJIn0uT8kHTwBc5iz nK9hzSkCv2h5DMP4Rt.mSOicv9aWqbaGrZ9AIx_xtkd4oNBK1NwPCHgJ5QDp Xt24SpdAsifHUwnB1jDX6aXdzCLGU50P1H6OwzGPJD5TjohVqlr4PqPj6j4Q lFMrnTln3lo770rRFZ5U779DMm_u_7bi8yylU2mDSzH.WkTo6dXYtivBGWLH YE8lcWGByAumpy.4fVHOCjwpX0DMkKavDDgthSgwlapO2Ua_U5gwl6N7allo YBwH.opnmG5KXZN6wx_tZeIpMNqH2gQu9u1c1ozDuzO2OcPp4QYt1f_B5zXg _XGxjZYN7qxlu_ycgJ85qQja2lRVRYsrhkAuLbR4HOS1VFJkuAcXTuMoR_T. qqF3uI3BSH0ZTXQ-- X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.20] (se@81.173.149.12 with plain) by smtp102.mail.gq1.yahoo.com with SMTP; 13 Nov 2011 09:56:13 -0800 PST Message-ID: <4EC004BC.6060406@freebsd.org> Date: Sun, 13 Nov 2011 18:56:12 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Attilio Rao References: <4EBB885E.9060908@freebsd.org> <4EBD10E6.9000302@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: [amd64] Reproducible cold boot failure (reboot succeeds) 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: Sun, 13 Nov 2011 17:56:14 -0000 Am 11.11.2011 13:15, schrieb Attilio Rao: > Can you try rebuilding your kernel and modules from scratch and see if > it fixes your problem? Sorry for the delay, but my system seems to need being turned off (S5) for many hours (whole night) to reproduce the problem ... I had already rebuilt my kernel multiple times in the last weeks. But just to be sure, I removed the build directories for kernel and world and built a new kernel after building and installing world from scratch. The next reboot (with boot blocks from the freshly built world) failed again ... But the first lines of boot messages look strange: ... WARNING: WITNESS option enabled, expect reduced performance. Table 'FACP' at 0xba918a58 Table 'APIC' at 0xba918b50 Table 'SSDT' at 0xba918be8 Table 'MCFG' at 0xba918dc0 Table 'HPET' at 0xba918e00 ACPI: No SRAT table found Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff81109000 Preloaded elf obj module "/boot/kernel/zfs.ko" at 0xffffffff81109370 <-- kldload: unexpected relocation type 67108875 kernel trap 12 with interrupts disabled The irritating detail is the load address of "zfs.ko", which is just 0x370 bytes above the kernel load address ... A verbose boot scrolls these lines off the screen to fast (and is to long to be preserved in dmesg.boot from the start), so I do not have any idea whether other values are reported in case of a successful boot. I had already assumed that memory was corrupted during early start-up, but now I think that gptzfsboot writes the zfs kernel module over the start of the loaded kernel. I'll try some more tests later today. Regards, STefan