* root=dhcp broke
@ 2009-06-17 16:18 Warren Togami
[not found] ` <4A391744.4040607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Warren Togami @ 2009-06-17 16:18 UTC (permalink / raw)
To: initramfs
After that latest patch set, simply "root=dhcp" no longer boots.
"root=dhcp ip=dhcp" fails as well.
Warren
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <4A391744.4040607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: root=dhcp broke [not found] ` <4A391744.4040607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2009-06-17 17:12 ` Seewer Philippe [not found] ` <4A3923F7.6000900-omB+W0Dpw2o@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Seewer Philippe @ 2009-06-17 17:12 UTC (permalink / raw) To: Warren Togami; +Cc: initramfs Warren Togami wrote: > After that latest patch set, simply "root=dhcp" no longer boots. > > "root=dhcp ip=dhcp" fails as well. What's the contents of your dhcp root path? root=dhcp tests in the suite all pass. > > Warren > -- > To unsubscribe from this list: send the line "unsubscribe initramfs" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4A3923F7.6000900-omB+W0Dpw2o@public.gmane.org>]
* Re: root=dhcp broke [not found] ` <4A3923F7.6000900-omB+W0Dpw2o@public.gmane.org> @ 2009-06-17 17:15 ` Warren Togami [not found] ` <4A3924B9.2090303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Warren Togami @ 2009-06-17 17:15 UTC (permalink / raw) To: Seewer Philippe; +Cc: initramfs On 06/17/2009 01:12 PM, Seewer Philippe wrote: > Warren Togami wrote: >> After that latest patch set, simply "root=dhcp" no longer boots. >> >> "root=dhcp ip=dhcp" fails as well. > > What's the contents of your dhcp root path? root=dhcp tests in the suite > all pass. Harald saw the problem. The precedent for DHCP root= or root-path= syntax for NFSv3 is as documented here: http://sourceforge.net/apps/trac/dracut/wiki/commandline Begins with IP address, not "nfs:". "nfs4:" prefix is true of NFSv4, but "nfs:" would be a new invention. Harald is now fixing this. Warren -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4A3924B9.2090303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* root=dhcp dhclient segfaulting on F-11 [not found] ` <4A3924B9.2090303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2009-06-18 0:29 ` Warren Togami [not found] ` <4A398A7C.40003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Warren Togami @ 2009-06-18 0:29 UTC (permalink / raw) To: initramfs Harald applied fixes. Now with root=dhcp it is failing to boot because dhclient is segfaulting. ifup.eth0.561.out contains: ... + ip= + '[' -z '' ']' + do_dhcp + dhclient -1 -q -cf /etc/dhclient.conf -pf /tmp/dhclient.eth0.pid -lf /tmp/dhclient.eth0.lease eth0 /sbin/ifup: line 26: 563 Segmentation fault ... dhclient.eth0.564.out contains only: + '[' -f /tmp/net..up ']' + netif=eth0 + case $reason in + ip link set eth0 up + exit 0 dhclient.eth0.567.out contains: + '[' -f /tmp/net..up ']' + netif=eth0 + case $reason in + setup_interface ... (and it sets it up properly via DHCP)... ... (but eth0 is not configured by the time it hits the shell)... The following is a segfault at the emergency_shell when I have manually run "dhclient eth0". Program terminated with signal 11, Segmentation fault. #0 0x0806fd4d in add_timeout (when=0x4a3986b2, where=0x8056a20 <send_discover>, what=0x95fc5d0, ref=0, unref=0) at dispatch.c:143 143 q -> when . tv_sec = when -> tv_sec; (gdb) bt #0 0x0806fd4d in add_timeout (when=0x4a3986b2, where=0x8056a20 <send_discover>, what=0x95fc5d0, ref=0, unref=0) at dispatch.c:143 #1 0x08056dd7 in state_init (cpp=0x95fc5d0) at dhclient.c:1213 #2 0x080580f8 in bind_lease (client=0x95fc5d0) at dhclient.c:1494 #3 0x08058b72 in dhcpack (packet=0x95fcef8) at dhclient.c:1460 #4 0x080547cf in dhcp (packet=0x95fcef8) at dhclient.c:1693 #5 0x0807ae63 in do_packet (interface=0x95d4608, packet=0xbfdf25a4, len=300, from_port=17152, from={len = 4, iabuf = "\254\37d\376a)\n\b\2\0\0\0\0\0\0"}, hfrom=0xbfdf35ba) at options.c:3732 #6 0x0806db8f in got_one (h=0x95d4608) at discover.c:1393 #7 0x080a763e in omapi_one_dispatch (wo=0x0, t=0xbfdf39c8) at dispatch.c:473 #8 0x0806fed0 in dispatch () at dispatch.c:92 #9 0x0805aa2c in main (argc=2, argv=0xbfdf3c54) at dhclient.c:971 Warren Togami wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4A398A7C.40003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: root=dhcp dhclient segfaulting on F-11 [not found] ` <4A398A7C.40003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2009-06-18 2:17 ` Warren Togami [not found] ` <4A39A3D1.4070404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2009-06-18 7:32 ` Seewer Philippe 1 sibling, 1 reply; 10+ messages in thread From: Warren Togami @ 2009-06-18 2:17 UTC (permalink / raw) To: initramfs https://bugzilla.redhat.com/show_bug.cgi?id=506626 Filed the dhclient segfault here. I've been trying to debug this for the past 5 hours straight. I'm perplexed. Backing out to 1a945a576c0016c47f983d27727443ac33c5b6a8 prior to Phillippe's patch series dhclient does not crash. dhcpd.conf contains: option root-path "172.31.100.254:/opt/ltsp/i386"; Here's something curious... sh-4.0# dhclient -v eth0 Internet Systems Consortium DHCP Client 4.1.0 Copyright 2004-2008 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/52:54:00:12:34:56 Sending on LPF/eth0/52:54:00:12:34:56 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPOFFER from 172.31.100.254 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 172.31.100.254 DHCPDECLINE on eth0 to 255.255.255.255 port 67 dhclient[616]: segfault at 4a39a266 ip 0806fd4d sp bfa4eed0 error 4 in dhclient[8048000+84000] DHCPDECLINE? Haven't seen that before. Warren Togami wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4A39A3D1.4070404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: root=dhcp dhclient segfaulting on F-11 [not found] ` <4A39A3D1.4070404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2009-06-18 7:32 ` Seewer Philippe [not found] ` <4A39ED97.8040503-omB+W0Dpw2o@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Seewer Philippe @ 2009-06-18 7:32 UTC (permalink / raw) To: Warren Togami; +Cc: initramfs Warren Togami wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=506626 > > Filed the dhclient segfault here. I've been trying to debug this for > the past 5 hours straight. I'm perplexed. > > Backing out to 1a945a576c0016c47f983d27727443ac33c5b6a8 prior to > Phillippe's patch series dhclient does not crash. That is weird. I have no problems at all with isc-dhclient-V3.1.1 Question: Does it segfault in the test-suites as well? > > dhcpd.conf contains: > option root-path "172.31.100.254:/opt/ltsp/i386"; > > Here's something curious... > > sh-4.0# dhclient -v eth0 > Internet Systems Consortium DHCP Client 4.1.0 > Copyright 2004-2008 Internet Systems Consortium. > All rights reserved. > For info, please visit http://www.isc.org/sw/dhcp/ > > Listening on LPF/eth0/52:54:00:12:34:56 > Sending on LPF/eth0/52:54:00:12:34:56 > DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 > DHCPOFFER from 172.31.100.254 > DHCPREQUEST on eth0 to 255.255.255.255 port 67 > DHCPACK from 172.31.100.254 > DHCPDECLINE on eth0 to 255.255.255.255 port 67 > dhclient[616]: segfault at 4a39a266 ip 0806fd4d sp bfa4eed0 error 4 in > dhclient[8048000+84000] > > DHCPDECLINE? Haven't seen that before. See here: http://www.freesoft.org/CIE/RFC/2131/25.htm Regards, Philippe -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4A39ED97.8040503-omB+W0Dpw2o@public.gmane.org>]
* Re: root=dhcp dhclient segfaulting on F-11 [not found] ` <4A39ED97.8040503-omB+W0Dpw2o@public.gmane.org> @ 2009-06-18 8:18 ` Harald Hoyer [not found] ` <4A39F862.7060200-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Harald Hoyer @ 2009-06-18 8:18 UTC (permalink / raw) To: Seewer Philippe; +Cc: Warren Togami, initramfs On 06/18/2009 09:32 AM, Seewer Philippe wrote: > > > Warren Togami wrote: >> https://bugzilla.redhat.com/show_bug.cgi?id=506626 >> >> Filed the dhclient segfault here. I've been trying to debug this for >> the past 5 hours straight. I'm perplexed. >> >> Backing out to 1a945a576c0016c47f983d27727443ac33c5b6a8 prior to >> Phillippe's patch series dhclient does not crash. > > That is weird. I have no problems at all with isc-dhclient-V3.1.1 > > Question: Does it segfault in the test-suites as well? > WORKSFORME fine with: dhclient-4.1.0-20.fc11.x86_64 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4A39F862.7060200-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: root=dhcp dhclient segfaulting on F-11 [not found] ` <4A39F862.7060200-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2009-06-18 8:34 ` Seewer Philippe [not found] ` <4A39FC0C.8020305-omB+W0Dpw2o@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Seewer Philippe @ 2009-06-18 8:34 UTC (permalink / raw) To: Harald Hoyer; +Cc: Warren Togami, initramfs Harald Hoyer wrote: > On 06/18/2009 09:32 AM, Seewer Philippe wrote: >> >> >> Warren Togami wrote: >>> https://bugzilla.redhat.com/show_bug.cgi?id=506626 >>> >>> Filed the dhclient segfault here. I've been trying to debug this for >>> the past 5 hours straight. I'm perplexed. >>> >>> Backing out to 1a945a576c0016c47f983d27727443ac33c5b6a8 prior to >>> Phillippe's patch series dhclient does not crash. >> >> That is weird. I have no problems at all with isc-dhclient-V3.1.1 >> >> Question: Does it segfault in the test-suites as well? >> > > WORKSFORME > fine with: dhclient-4.1.0-20.fc11.x86_64 I've not been able to reproduce the segfault. But I've got the dhcp decline in vanilla isc dhclient-4.1. Apparently dhclient-4.1 calls the dhclient-script twice with reason BOUND. I have no idea why. But my dhclient-script has (sadly) a small bug, which causes the dhclient to loop endlessly and dhclient always declining. Patch below fixes this, but I have absolutely no idea why. diff --git a/modules.d/40network/dhclient-script b/modules.d/40network/dhclient-script index 80ab54c..4153eb8 100755 --- a/modules.d/40network/dhclient-script +++ b/modules.d/40network/dhclient-script @@ -43,12 +43,12 @@ if getarg rdnetdebug ; then set -x fi -# Huh? Interface configured? -[ -f "/tmp/net.$netif.up" ] && exit 0 - # We already need a set netif here netif=$interface +# Huh? Interface configured? +[ -f "/tmp/net.$netif.up" ] && exit 0 + case $reason in PREINIT) ip link set $netif up -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 10+ messages in thread
[parent not found: <4A39FC0C.8020305-omB+W0Dpw2o@public.gmane.org>]
* Re: root=dhcp dhclient segfaulting on F-11 [not found] ` <4A39FC0C.8020305-omB+W0Dpw2o@public.gmane.org> @ 2009-06-18 11:30 ` Seewer Philippe 0 siblings, 0 replies; 10+ messages in thread From: Seewer Philippe @ 2009-06-18 11:30 UTC (permalink / raw) To: Harald Hoyer; +Cc: Warren Togami, initramfs The Bug causing dhclient to recall BIND has been identified: dhclient-script runs with #!/bin/sh -e, causing setup_interface to fail if no hostname is provided by dhcp as it is the last statement in that function. Please apply the patch below which removes -e diff --git a/modules.d/40network/dhclient-script b/modules.d/40network/dhclient-script index 4153eb8..f86c258 100755 --- a/modules.d/40network/dhclient-script +++ b/modules.d/40network/dhclient-script @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh setup_interface() { ip=$new_ip_address -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: root=dhcp dhclient segfaulting on F-11 [not found] ` <4A398A7C.40003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2009-06-18 2:17 ` Warren Togami @ 2009-06-18 7:32 ` Seewer Philippe 1 sibling, 0 replies; 10+ messages in thread From: Seewer Philippe @ 2009-06-18 7:32 UTC (permalink / raw) To: Warren Togami; +Cc: initramfs Warren Togami wrote: [snip] > dhclient.eth0.567.out contains: > + '[' -f /tmp/net..up ']' > + netif=eth0 > + case $reason in > + setup_interface > ... (and it sets it up properly via DHCP)... > ... (but eth0 is not configured by the time it hits the shell)... Interface configuration is delegated to netroot now. So dhclient-script only writes config-files and does not actually configure the interface. Regards, Philippe -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-06-18 11:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17 16:18 root=dhcp broke Warren Togami
[not found] ` <4A391744.4040607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-17 17:12 ` Seewer Philippe
[not found] ` <4A3923F7.6000900-omB+W0Dpw2o@public.gmane.org>
2009-06-17 17:15 ` Warren Togami
[not found] ` <4A3924B9.2090303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 0:29 ` root=dhcp dhclient segfaulting on F-11 Warren Togami
[not found] ` <4A398A7C.40003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 2:17 ` Warren Togami
[not found] ` <4A39A3D1.4070404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 7:32 ` Seewer Philippe
[not found] ` <4A39ED97.8040503-omB+W0Dpw2o@public.gmane.org>
2009-06-18 8:18 ` Harald Hoyer
[not found] ` <4A39F862.7060200-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 8:34 ` Seewer Philippe
[not found] ` <4A39FC0C.8020305-omB+W0Dpw2o@public.gmane.org>
2009-06-18 11:30 ` Seewer Philippe
2009-06-18 7:32 ` Seewer Philippe
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.