[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash system!!!



On Thu, Jan 15, 2004 at 11:24:41AM -0500, Alex Feldman wrote:
> Hello
> 
> I'm writing Device Driver under OpenBSD for our Network adapters.
> I catched the case when I had kernel crash. It's really hard duplicate (you
> will need our hardware and driver), but this is what happened:
> 
> * The crash happened on ADSL driver. The driver has software timer that
> running every ~1 second.
> During this time I calculate statistics/check the line status. Everything
> looks find, except one place:
> 	if (ticks > hz * 0.2)

You can't do floating point calculations in kernel.

> 
> if I change this line to
> 	if (ticks > ((hz * 2) / 10)
> 
> everything is perfect.
> I can't send you memory dump because computer is just freeze.
> 
> If you need more information, please let me know.
> 
> Regards,
> 
> Alex Feldman
> Senior Software Engineer
> Sangoma Technologies Corp
> Tel:   905.474.1990 x104
> Fax:  905.474.9223
> Email: al.feldman@sangoma.com
> Web site: www.sangoma.com

-- 
   Alexander Yurchenko (aka grange)