Re: CVS (STABLE_0_3) works for Madwifi/Atheros, but starts too late



Quoting Dan Williams <dcbw redhat com>:

> In GDB, when you get here, can you do:
> 
> print dhcp_resp
> print dhcp_resp.dhcp_msg
> print dhcp_resp.dhcp_msg.options
> 
> And send along the results?  That should give me the actual packet the DHCP 
> server passed back.

It looks like the DHCP client is _thinking_ that it got data, but really it
didn't.  It also feels to me like it's a race condition, because it is much
harder to reproduce since I installed the debuginfo package (whereas it
happened really quick without it).

-derek

NetworkManager: DHCP: Got some data of length 66.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 52.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 58.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 52.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 72.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 52.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 72.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 52.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 72.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 52.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 6,
IPPROTO_UDP = 17), won't use it.
NetworkManager: DHCP: Got some data of length 89.
NetworkManager: DHCP: Reply message was not UDP (ip_hdr->protocol = 1,
IPPROTO_UDP = 17), won't use it.
Detaching after fork from child process 6310.
---Type <return> to continue, or q <return> to quit---
Detaching after fork from child process 6311.
NetworkManager: DHCP: Got some data of length 212.
NetworkManager: DHCP: Reply message's source port (138) was not the DHCP server
port number (67), won't use it.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208362064 (LWP 5785)]
dhcp_init (iface=0x81c74c0) at client.c:767
767             memcpy (&(iface->siaddr),
iface->dhcp_options.val[dhcpServerIdentifier], 4);
(gdb) print dhcp_resp
$1 = {server_ip_addr = 0, server_hw_addr = "\000\000\000\000\000", dhcp_msg = {
    op = 0 '\0', htype = 0 '\0', hlen = 0 '\0', hops = 0 '\0', xid = 0,
    secs = 0, flags = 0, ciaddr = 0, yiaddr = 0, siaddr = 0, giaddr = 0,
    chaddr = '\0' <repeats 15 times>, sname = '\0' <repeats 63 times>,
    file = '\0' <repeats 127 times>, options = '\0' <repeats 311 times>}}
(gdb) print dhcp_resp.dhcp_msg
$2 = {op = 0 '\0', htype = 0 '\0', hlen = 0 '\0', hops = 0 '\0', xid = 0,
  secs = 0, flags = 0, ciaddr = 0, yiaddr = 0, siaddr = 0, giaddr = 0,
  chaddr = '\0' <repeats 15 times>, sname = '\0' <repeats 63 times>,
  file = '\0' <repeats 127 times>, options = '\0' <repeats 311 times>}
(gdb) print dhcp_resp.dhcp_msg.options
$3 = '\0' <repeats 311 times>
(gdb) quit

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord MIT EDU                        PGP key available




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]