Bug 739931

Summary: ntpd segfault on NETDEV_UP event after a network restart
Product: [openSUSE] openSUSE 12.1 Reporter: Marius Tomaschewski <mt>
Component: NetworkAssignee: Peter Varkoly <varkoly>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Full backtrace

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.