DragonFly BSD
DragonFly bugs List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Core dumps...


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Fri, 12 Nov 2004 21:38:40 +0900

On Thu, Nov 11, 2004 at 12:02:48PM -0800, Matthew Dillon wrote:
> 
> :> :[ adamk@sorrow - ~ ]: gnome-terminal 
> :> :Fatal error 'gc cannot wait for a signal' at line ? in file /usr/src/lib/libc_r/uthread/uthread_gc.c (errno = ?)
> :> :Abort trap (core dumped)
> :> :
> :> :Same for mozilla, thunderbird, firefox, etc..
> :> :
> :> :I left my machine, brushed my teeth, came back, and suddenly it's working again.  Any ideas what happened? 
> :> :
> :> :Adam
> :> 
> :>...
> :
> :I'm seeing this too when my laptop resumed from suspended state, and my
> :workaround is to adjust your system clock (with ntpdate for instance)
> :a few times. You'll get "Invalid argument" error from ntpdate, but just ignore
> :it and try a few times.
> 
>     Well, they say a fresh look always helps, and it looks like that
>     is true.  In about 5 seconds I found an overflow in the
>     'cputimer_freq64_nsec * delta' calculations in kern_clock.c.
> 
>     It turns out that cputimer_freq_nsec is such a large number that
>     it doesn't take a delta much larger then cputimer_freq to overflow
>     it, and the delta calculation can certainly exceed cputimer_freq
>     due to all sorts of reasons... interrupt latency, blockages, and other
>     things.  laptop resumption only being one of them.
> 
>     So I would like both of you to please try this patch and tell me what
>     happens.

Thanks Matt, I'll try your patch as soon as I go home where my laptop is.

> Index: kern_clock.c
> ===================================================================
[patch]



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