MPC5200, Hang in send() to a socket

David Wolfe david.wolfe at
Sat Jul 24 01:36:28 EST 2004

[ I?igo Lopez Barranco writes: ]
> Hi. I'm testing a program to send files thru a TCP socket on an MPC5200.

> programs stops forever in one of the writings to the socket after
> having sent a random number of packets. Strace says that it stops on a
> send(), and netstat shows that the connection is stablished, and stays
> this way:

I see this problem too during a FTP put operation. The network remains up
as a concurrently executing ping has no problem and I can restart the FTP
transfer which will happily transfer an random number of packets before
halting again. I also noticed a nasty memory leak associated with this
-- if I rerun the FTP transfer enough times the system will run out of
memory. It may be related to lost RX packets. The RX error count seen
from "ifconfig" adds up very quickly on a put. FTP get doesn't provoke
this bug nearly as much.

I'm looking into the driver, though I am quite unfamiliar with Linux
networking kernel code.

David Wolfe
Digital Audio, Radio & Telematics
Freescale Semiconductor

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list