From owner-freebsd-current@FreeBSD.ORG Mon Jul 9 21:26:05 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 929DA16A468 for ; Mon, 9 Jul 2007 21:26:05 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5119713C480 for ; Mon, 9 Jul 2007 21:26:04 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I80jz-0005qe-Ky for freebsd-current@freebsd.org; Mon, 09 Jul 2007 23:25:55 +0200 Received: from 89-172-53-69.adsl.net.t-com.hr ([89.172.53.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jul 2007 23:25:55 +0200 Received: from ivoras by 89-172-53-69.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jul 2007 23:25:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Mon, 09 Jul 2007 23:25:46 +0200 Lines: 20 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-53-69.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) Sender: news Cc: freebsd-hackers@freebsd.org Subject: Debugging time 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: Mon, 09 Jul 2007 21:26:05 -0000 Hi After much frustration I found out what was wrong with my LiveCD (thread "LiveCD trouble"): it was all in the environment. I'm developing and testing everything under VMWare, and for some reason, when booted from the CD, FreeBSD thinks the "current date" is in 1937, which causes all sorts of trouble (among other things, it's not a valid date for time_t). The "BIOS" in the VM is set up correctly and it always shows the current date. The date is set wrong either on boot or very early after the kernel has booted (I've verified it's wrong before hostid rc.d script, which is one of the first to be executed). How can debug this? Can I show the "current date" from the loader prompt, before the kernel has booted? The same kernel and loader (except the early cdboot part) work fine when booted from a hard drive. Has anyone seen this behaviour, with or without VMWare?