Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380203 - net-misc/ntp-4.2.6_p3[ipv6]: ntpd: segmentation fault in ? at ?
Summary: net-misc/ntp-4.2.6_p3[ipv6]: ntpd: segmentation fault in ? at ?
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 09:11 UTC by Marc Schiffbauer
Modified: 2015-04-04 07:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info,4.34 KB, text/plain)
2011-08-22 09:11 UTC, Marc Schiffbauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2011-08-22 09:11:27 UTC
Created attachment 284205 [details]
emerge --info

ntpd crashes on startup until built with USE="-ipv6" or until started with the "-4" command line option.

Debug output of manual ntpd call:

ntpd -d -n -p /var/run/ntpd.pid -u ntp:ntp
ntpd 4.2.6p3@1.2290-o Mon Aug 22 08:59:33 UTC 2011 (1)
22 Aug 11:00:12 ntpd[11922]: proto: precision = 0.146 usec
[...]
event at 0 0.0.0.0 c012 02 freq_set kernel 77.298 PPM
transmit: at 1 188.40.110.137->72.18.205.156 mode 3 len 48
auth_agekeys: at 1 keys 1 expired 0
22 Aug 11:00:14 ntpd[11922]: Deleting interface #21 eth0, 2a01:4f8:100:8843::6#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::6 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: Deleting interface #20 lo, ::1#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr ::1 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: Deleting interface #19 eth0, 2a01:4f8:100:8843::3#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::3 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: Deleting interface #18 eth0, 2a01:4f8:100:8843::7#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::7 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: Deleting interface #17 eth0, 2a01:4f8:100:8843::5#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::5 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: Deleting interface #16 eth0, 2a01:4f8:100:8843::2#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::2 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: 2607:fc18:dead:beef::9 interface 2a01:4f8:100:8443::2 -> (none)
22 Aug 11:00:14 ntpd[11922]: Deleting interface #15 eth0, 2a01:4f8:100:8843::4#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::4 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: Deleting interface #14 eth0, 2a01:4f8:100:8843::9#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::9 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
22 Aug 11:00:14 ntpd[11922]: Deleting interface #13 eth0, 2a01:4f8:100:8843::8#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
restrict: op 4 addr 2a01:4f8:100:8843::8 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
Segmentation fault


(I changed the ipv6 addresses)

gdb bt output 
(ntp built with FEATURES=splitdebug and USE=debug):
Program received signal SIGSEGV, Segmentation fault.
0x0000004cf27699c9 in T.275 ()
(gdb) bt
#0  0x0000004cf27699c9 in T.275 ()
#1  0x0000004cf276a255 in interface_update ()
#2  0x0000004cf278a9bb in timer ()
#3  0x0000004cf276da67 in ntpdmain ()
#4  0x00000381a7cc1cfc in ?? ()
#5  0x0000000000000000 in ?? ()
(gdb)


My ntp.conf

~ # cat /etc/ntp.conf | grep -vE '^(#|$)'
server 0.gentoo.pool.ntp.org
server 1.gentoo.pool.ntp.org
server 2.gentoo.pool.ntp.org
server 3.gentoo.pool.ntp.org
driftfile       /var/lib/ntp/ntp.drift
restrict default nomodify nopeer
restrict 127.0.0.1
Comment 1 SpanKY gentoo-dev 2015-04-04 07:56:07 UTC
this still an issue with latest stable versions ?

if so, please build ntp with debugging info and get a better backtrace