*BSD News Article 50450


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!newshost.marcam.com!usc!howland.reston.ans.net!news-e1a.megaweb.com!newstf01.news.aol.com!uunet!in1.uu.net!demos!news.glas.apc.org!glas!vega
From: Vlad D. Nebolsin <vega@glas.apc.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: dos2unixtime fatal bug in 2.0.5-R
Message-ID: <APC&63'0'18d7dd12'9b9@glas.apc.org>
Date: Tue, 05 Sep 1995 04:38:57 +0400
X-Gateway: notes@glas.apc.org
Lines: 28

Hi there,

I found some strange bug in FreeBSD 2.0.5-R with mounted MS-DOS (6.22 version)
partition (rw mode):

if the MS-DOS time/date for any file or directory located on this mounted 
partition installed incorrect (for example 0/31/95 - wrong zero) your FBSD may 
suddenly (50/50 chances) crash with next log diagnose:

Sep  2 03:30:46 cuckoo /kernel: dos2unixtime(): month value out of range (14)
Sep  2 03:30:49 cuckoo /kernel: dos2unixtime(): month value out of range (14)
Sep  2 03:30:56 cuckoo /kernel: dos2unixtime(): month value out of range (0)
Sep  2 03:30:57 cuckoo last message repeated 2 times
...

then it was just rebooted.

I've tested it for a couple of times and my machine was rebooted almost 
every time I've just _entered_ any wrong MS-DOS directory on mounted partition.

How to avoid the crash of system? Check your MS-DOS partition inside MS-DOS 
before mounting it and fix all wrong installed time/dates. This way.

Sincerely,
Vlad.

P.S. I hope it will be fixed in next release or SNAP, isn't it Jordan?