From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5446 invoked by alias); 31 Aug 2007 09:58:01 -0000 Received: (qmail 5430 invoked by uid 22791); 31 Aug 2007 09:58:00 -0000 X-Spam-Check-By: sourceware.org Received: from rwcrmhc15.comcast.net (HELO rwcrmhc15.comcast.net) (204.127.192.85) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 31 Aug 2007 09:57:54 +0000 Received: from rickmce (c-68-55-175-129.hsd1.md.comcast.net[68.55.175.129]) by comcast.net (rwcrmhc15) with SMTP id <20070831095752m15001criqe>; Fri, 31 Aug 2007 09:57:53 +0000 From: "Rick Davis" To: "Ecos-Discuss" Date: Fri, 31 Aug 2007 09:58:00 -0000 Message-ID: <009401c7ebb5$65c20310$31460930$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] network problem more info X-SW-Source: 2007-08/txt/msg00178.txt.bz2 To try to narrow down my memory issue. I wrote a client program that just creates a socket, connects to port 80 and then shuts down and closes the socket. Every time I run it 32 bytes of memory is allocated. If I keep running the application the memory is consumed. If I let thing sit for minutes, some of the memory is returned. I added more debug and what I am seeing is memory type M_SONAME is being allocated twice and freed once. The sequence I am seeing is as follows. Function size type flags address malloc'd cyg_current_time address to free --------------------------------------------------------------------- cyg_net_malloc: 148 5 1 0x001e0770 58571 cyg_net_malloc: 72 5 1 0x001e0710 58572 cyg_net_malloc: 20 5 1 0x001e06f0 58573 cyg_net_malloc: 16 98 1 0x001e06d0 58574 cyg_net_free: 98 0x001e06d0 58576 cyg_net_malloc: 16 98 8 0x001e06d0 58577 cyg_net_free: 5 0x001e06f0 91872 cyg_net_free: 5 0x001e0710 91872 cyg_net_free: 5 0x001e0770 91873 As you can see, 5 malloc, 4 free. The one not freed is type 98 (M_SONAME) Rick Davis -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss