X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=ua0 PO49SwIJSvJCKvadi16BDkzhTPutgFxALd+RbaXPmm5O1PC+gH51tDSF/GIxhH9V 9sqqlp79E4aeSoroaNUwJjcTPlWb0J54RzfQmEWaBWsHZUuBqyLhqDYgXC1xYZYG CDL6a+99/tZyF5/lX2z9cvEx445QEgvdwbb4WWT8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=32Oyf1ulI 4hv2FxUtSufR6lqeu0=; b=Y79fhQsHiJ6NVpc2L2JKIK11qEgFaN3Kw8OzPybLG aiy2k0cLcBwDcAwCbzSQT7uNMDDUNkG0Q+XYh+yiqvitRhPHKfRlW4Gg4YLz59cC 1TCRbKP1tQUF3TRrKOMU2O4I8mqNT31KAj+O92ELWK/0S33K3U/bJkyJbkqIrXkS xc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f178.google.com X-Received: by 10.180.149.165 with SMTP id ub5mr19536694wib.14.1421274667385; Wed, 14 Jan 2015 14:31:07 -0800 (PST) Message-ID: <54B6EE1F.60705@gmail.com> Date: Wed, 14 Jan 2015 23:30:55 +0100 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "cygwin AT cygwin DOT com" Subject: tracing malloc/free call Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Debugging a program I am trying to catch where this call is happening 17 1499678 [main] ncview 1484 free: (0x6000D7961), called by 0x180115A0B unfortunately the 0x180115A0B address is not real caller address /usr/src/debug/cygwin-1.7.33-1/winsup/cygwin/malloc_wrapper.cc extern "C" void free (void *p) { malloc_printf ("(%p), called by %p", p, __builtin_return_address (0)); if (!use_internal) user_data->free (p); else { __malloc_lock (); dlfree (p); __malloc_unlock (); } } Any way to improve the tracing ? $ uname -svr CYGWIN_NT-6.1 1.7.33-2(0.280/5/3) 2014-11-13 15:47 Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple