ELDK 2.1.0, kernel 2.4.21, MPC8245, ntpd
Hi all,
I get a "Segmentation fault (core dumped)" on my system using ntpd. I checked the archives, and there is one messeage about something like this on a 405.
Is anybody working on this ? Did I missed some patches ?
cheers & thanks
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 7 lines · emanuel stiebler
Hi all,
I get a "Segmentation fault (core dumped)" on my system using ntpd. I checked the archives, and there is one messeage about something like this on a 405.Is anybody working on this ? Did I missed some patches ?
If you clock is sufficiently out of date.. (I.e. 50/60 more? years wrong) then you can get into an overflow situation. While I've never seen it segv, I have seen it do other 'interesting' things.
Try setting your clock to Jan 1 2000, then run ntpd and see what happens.
--Mark
Quoted 6 lines
cheers & thanks
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Dear Emanuel,
Quoted 2 lines · in message <[email protected]> you wrote:
I get a "Segmentation fault (core dumped)" on my system using ntpd.
This is caused by some (I2C based RTC's in "11 minute mode".
Quoted 4 lines
I checked the archives, and there is one messeage about something like this on a 405.
Is anybody working on this ? Did I missed some patches ?
We fixed this by making this mode configurable (and disable it by default) in our version of the linuxppc_2_4_devel tree; the patch was added on May 29, so just "cvs update" your source tree.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] "A complex system that works is invariably found to have evolved from
a simple system that worked." - John Gall, _Systemantics_
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 5 lines · emanuel stiebler
I get a "Segmentation fault (core dumped)" on my system using ntpd. I checked the archives, and there is one messeage about something like this on a 405.
Is anybody working on this ? Did I missed some patches ?
No idea, but if you're using ELDK binaries, you might check with their mailing list.
And then there's always compiling ntpd yourself and running it under gdb or gdbserver to see where it's crashing...
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 8 lines · Mark Hatle
Quoted 6 lines · emanuel stiebler
Hi all,
I get a "Segmentation fault (core dumped)" on my system using ntpd. I checked the archives, and there is one messeage about something like this on a 405.
Quoted 8 lines
Quoted 1 line
Is anybody working on this ? Did I missed some patches ?
If you clock is sufficiently out of date.. (I.e. 50/60 more? years wrong) then you can get into an overflow situation. While I've never seen it segv, I have seen it do other 'interesting' things.
Try setting your clock to Jan 1 2000, then run ntpd and see what happens.
I checked that already ;-)
I set the clock manually before that, and the difference between the server and the local clock was less than a minute.
Thanks
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 8 lines · Wolfgang Denk
Dear Emanuel,
Quoted 1 line · in message <[email protected]> you wrote:
I get a "Segmentation fault (core dumped)" on my system using ntpd.
This is caused by some (I2C based RTC's in "11 minute mode".
Sorry Wolfgang,
this one is a STMicro M48T86 (ds12887 compatible), and is sitting on the local bus ...
Quoted 9 lines
Quoted 4 lines
I checked the archives, and there is one messeage about something like this on a 405.
Is anybody working on this ? Did I missed some patches ?
We fixed this by making this mode configurable (and disable it by default) in our version of the
linuxppc_2_4_develtree; the patch was added on May 29, so just "cvs update" your source tree.
I have to check again, but the kernel was made on july 15. And usually I update my sources before build. But I check again ...
Thanks,
emanuel
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/