Paul Martin wrote:
> On Sun, Oct 28, 2007 at 10:07:59PM +0000, Mark Scott wrote:
>> I have a home-built radio clock receiver for the DCF77 time signal
>> that has been working fine for a year while attached to an i386
>> machine.  I moved it to an amd64 machine and find that radioclkd
>> segfaults when decoding the DCF77 signal.
>>
>> I rebuilt the binary package locally to preserve debug info, and
>> attach the executable and a core file.
> 
> Looks like it's not 64-bit clean.
> 
> I have an amd64 machine of my own, but never connected my MSF receiver to
> it. Time for some digging.
> 

I guess the UTCtime function is the culprit. The algorithm (though not
the code) was lifted from the mktime routine in libntp. I would check a
current version of this against UTCtime. You could also test by
replacing UTCtime with mktime from libc, and setting the timezone to
UTC. If that makes it go away it is definitely the problem.

I don't have any 64bit machines that I can hook a receiver up to, to
test. All the ones I have access to are either running in 32bit mode or
are servers that I am not going to mess with.


JAB.

-- 
Jonathan A. Buzzard                 Email: jonathan (at) buzzard.me.uk
Northumberland, United Kingdom.       Tel: +44 1661-832195



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to