Bug 739931 - ntpd segfault on NETDEV_UP event after a network restart
Summary: ntpd segfault on NETDEV_UP event after a network restart
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 12.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Final
Hardware: x86-64 SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Peter Varkoly
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 11:09 UTC by Marius Tomaschewski
Modified: 2014-10-28 14:54 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Full backtrace (8.29 KB, text/plain)
2012-01-06 11:32 UTC, Marius Tomaschewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Tomaschewski 2012-01-06 11:09:12 UTC
while ntp is started, execute ntpd and call rcnetwork restart

 network[7232]: Shutting down network interfaces:
 network[7232]: eth0      device: Intel Corporation 82567LM-3 Gigabit Network C
 ifdown:     eth0      device: Intel Corporation 82567LM-3 Gigabit Network C
 network[7232]: ..doneShutting down service network  .  .  .  .  .  .  .  .  ...done
 network[7657]: Setting up network interfaces:
 network[7657]: eth0      device: Intel Corporation 82567LM-3 Gigabit Network C
 ifup:     eth0      device: Intel Corporation 82567LM-3 Gigabit Network C
 kernel: [ 6106.294129] e1000e 0000:00:19.0: irq 49 for MSI/MSI-X
 kernel: [ 6106.348052] e1000e 0000:00:19.0: irq 49 for MSI/MSI-X
 kernel: [ 6106.348550] ADDRCONF(NETDEV_UP): eth0: link is not ready
 kernel: [ 6106.348691] ntpd[7169]: segfault at 8 ip 00007f599a113dee sp 00007fffdf6671d0 error 4 in ntpd[7f599a0f7000+a1000]
 ntp[7928]: Shutting down network time protocol daemon (NTPD)..done
 kernel: [ 6108.784864] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
 kernel: [ 6108.785323] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 ifup-dhcp:     eth0      Starting DHCP4+DHCP6 client

Note, that there are two events:
  ADDRCONF(NETDEV_UP): eth0: link is not ready
  ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
but it crashes after the first one...

Backtrace of the ntpd process I've attached:

Program received signal SIGSEGV, Segmentation fault.
0x00007f4a9cf7adee in remove_interface (ep=0x7f4a9d266c80) at ntp_io.c:1098
1098                    UNLINK_SLIST(unlinked, *pmclisthead, ep, mclink, endpt);
(gdb) bt
#0  0x00007f4a9cf7adee in remove_interface (ep=0x7f4a9d266c80) at ntp_io.c:1098
#1  update_interfaces (receiver=0, data=0x0, port=123) at ntp_io.c:2010
#2  0x00007f4a9cf7c185 in interface_update (receiver=<optimized out>, data=<optimized out>) at ntp_io.c:1617
#3  0x00007f4a9cf982d5 in timer () at ntp_timer.c:394
#4  0x00007f4a9cf8128f in ntpdmain (argc=0, argv=0x7fff2776e428) at ntpd.c:1104
#5  0x00007f4a9cf72179 in main (argc=<optimized out>, argv=<optimized out>) at ntpd.c:356
Comment 1 Marius Tomaschewski 2012-01-06 11:09:45 UTC
# rpm -q ntp
ntp-4.2.6p3-16.14.2.x86_64
Comment 2 Marius Tomaschewski 2012-01-06 11:32:22 UTC
Created attachment 470037 [details]
Full backtrace
Comment 3 Marius Tomaschewski 2014-10-28 14:54:45 UTC
12.1 is EOL.