www.delorie.com/archives/browse.cgi | search |
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 | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=XfQWN2c+XEaicbR/pxu2OI8UKWhPgJYGlPI+I2jrxbB | |
9dUNdF38DozGDPYuBdetspR4pbZ+0pNnF6uNr8RtrNREQJqHuja+HLKSk+Z2lPMs | |
Vg0mueE1L59yRjB1l4cy493JyDqNheYMIvS/F6NUB9++UlusAC/3HHi0FMK70odQ | |
= | |
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 | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
s=default; bh=jyhuLa7KdYIxWmdVhMYRRvvX/TM=; b=HdEhDeSNGKC8KrYGJ | |
nS9UBdIOoca09f67XLgskz5A0IzTXOWaXNwm/ngUXYBJIUZ8TEtqGg6uMDUm/2lz | |
89d6KQSg4DsIJNjdm8yTjE/TiFOfw6u1lHFe9wn7582z/EjCfMjAp+/nJfbzuoK5 | |
qM6ldFi2bSAI66UEmS8iNnn5Og= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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-we0-f176.google.com |
X-Received: | by 10.181.8.66 with SMTP id di2mr62642193wid.49.1421353081457; Thu, 15 Jan 2015 12:18:01 -0800 (PST) |
Message-ID: | <54B8206C.5090104@gmail.com> |
Date: | Thu, 15 Jan 2015 21:17:48 +0100 |
From: | Marco Atzeri <marco DOT atzeri AT gmail DOT com> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
MIME-Version: | 1.0 |
To: | Alexander DOT Kleinsorge AT gmx DOT de, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Re: tracing malloc/free call |
References: | <trinity-2b354d37-64f8-425c-b700-f3d872c5d0fb-1421351998667 AT 3capp-gmx-bs27> |
In-Reply-To: | <trinity-2b354d37-64f8-425c-b700-f3d872c5d0fb-1421351998667@3capp-gmx-bs27> |
X-IsSubscribed: | yes |
On 1/15/2015 8:59 PM, Alexander DOT Kleinsorge AT gmx DOT de wrote: > Hi Marco, > freeing an address that is not alligned to typically 4 or 8 bytes is > never possible, > because malloc would never return such. > Your pointer ends with 0x..1 so it cannot be alligned on any architecture. > regards, > Alexander I know. The application is crashing. It is clearly a free call with a corrupted pointer, but not knowing the caller address make difficult to identify what is corrupting the pointer. > Your Post: > > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |