Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534158 - net-misc/ntp-4.2.8 - ntpd with lo netmask 0.0.0.0: segmentation fault in isc_interfaceiter_create (mctx=mctx@entry=0xffffffff, iterp=iterp@entry=0xbf92151c) at ./../lib/isc/unix/ifiter_getifaddrs.c:92
Summary: net-misc/ntp-4.2.8 - ntpd with lo netmask 0.0.0.0: segmentation fault in isc_...
Status: RESOLVED DUPLICATE of bug 533966
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-31 22:30 UTC by Steve Bjork
Modified: 2015-04-08 20:46 UTC (History)
0 users

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


Attachments
emerge --info for ntpd coredump system (inf,4.40 KB, text/plain)
2014-12-31 22:31 UTC, Steve Bjork
Details
script of ntpd -D6 and gdb backtrace (ntp-debug,9.36 KB, text/plain)
2015-01-02 05:53 UTC, Steve Bjork
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Bjork 2014-12-31 22:30:13 UTC
net-misc/ntp-4.2.8-r2:0 will coredump when lo has a netmask of 0.0.0.0

[1174795.255340] ntpd[4925]: segfault at b8827000 ip b73020d1 sp bfa6d760 error 6 in libc-2.20.so[b71fb000+175000]

Changing the lo netmask to 255.255.255.255 lets ntpd run ok.





Reproducible: Always

Steps to Reproduce:
1. start ntpd. coredump.
2. ifconfig lo netmask 255.255.255.255
3. start ntpd. works.
4. ifconfig lo netmask 0.0.0.0
5. start ntpd. coredump.
6. ifconfig lo netmask 255.255.255.255
7. start ntpd. works.





starshine log # equery list ntp
 * Searching for ntp ...
[IP-] [  ] net-misc/ntp-4.2.8-r2:0

(will attach emerge --list)
Comment 1 Steve Bjork 2014-12-31 22:31:30 UTC
Created attachment 392826 [details]
emerge --info for ntpd coredump system
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-01 12:00:45 UTC
Please attach a full gdb backtrace of the segmentation fault.
Comment 3 Steve Bjork 2015-01-02 05:53:45 UTC
Created attachment 392926 [details]
script of ntpd -D6 and gdb backtrace
Comment 4 Steve Bjork 2015-01-02 05:57:12 UTC
Used to generate the coredump and backtrace:

lo had netmask 0.0.0.0

ntp configuration was a single line:

server 127.127.1.0 noselect
Comment 5 SpanKY gentoo-dev 2015-04-08 20:46:46 UTC

*** This bug has been marked as a duplicate of bug 533966 ***