lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #24440] TCP connection close problem on 64-bit host


From: David Woodhouse
Subject: [lwip-devel] [bug #24440] TCP connection close problem on 64-bit host
Date: Fri, 03 Oct 2008 13:19:24 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.2) Gecko/2008092318 Fedora/3.0.2-1.fc9 Firefox/3.0.2

URL:
  <http://savannah.nongnu.org/bugs/?24440>

                 Summary: TCP connection close problem on 64-bit host
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: dwmw2
            Submitted on: Fri 03 Oct 2008 02:19:22 PM BST
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

When I build the simhost project for x86_64 Linux, telnet into it and type
'quit', I see bogus ACK numbers in the resulting fin packets.

It looks like pcb->rcv_nxt is being scribbled on by tcp_accept(), which is
called from do_close_internal() and casts its argument to some other kind of
structure.


tcp_output_segment, pcb 0x629730, pcb->rcv_nxt (at 0x629760) is 6566caf6
quit
Closed
tcp_accept: tcp_pcb 0x629730, accept (nil). Set pcb->accept at 0x629760
tcp_output_segment, pcb 0x629730, pcb->rcv_nxt (at 0x629760) is 0



Catching it in the act in gdb...

Hardware watchpoint 2: *(int *) 6461504

Old value = -2094160047
New value = 0
tcp_accept (pcb=0x629810, accept=0)
at ../../../../../lwip/src/core/tcp.c:1118
1118    }
(gdb) bt
#0  tcp_accept (pcb=0x629810, accept=0)
    at ../../../../../lwip/src/core/tcp.c:1118
#1  0x000000000040f1a0 in do_close_internal (conn=0x62a1c0)
    at ../../../../../lwip/src/api/api_msg.c:606
#2  0x000000000040ff1c in do_close (msg=0x445d4018)
    at ../../../../../lwip/src/api/api_msg.c:1124
#3  0x0000000000410107 in tcpip_thread (arg=0x0)
    at ../../../../../lwip/src/api/tcpip.c:269
#4  0x000000372940729a in start_thread (arg=<value optimized out>)
    at pthread_create.c:297
#5  0x00000037288e439d in clone () from /lib64/libc.so.6





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?24440>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]