X-Spam-Check-By: sourceware.org
Message-ID: <45FAC763.5020206@cwilson.no.fastmail.spam.com>
Date: Fri, 16 Mar 2007 11:35:47 -0500
From: Charles Wilson <news@cwilson.no.fastmail.spam.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: cygwin@cygwin.com
CC: Libtool Patches <libtool-patches@gnu.org>
Subject: Re: mdemo ltdl failure
References: <20070225191816.GB2990@iam.uni-bonn.de> <45E3B6CA.50600@cwilson.fastmail.fm> <20070227220200.GC2982@iam.uni-bonn.de> <20070307222815.5072.qmail@iam.uni-bonn.de> <45FAB925.9090200@cwilson.fastmail.fm> <01ff01c767e5$b2148750$2e08a8c0@CAM.ARTIMI.COM>
In-Reply-To: <01ff01c767e5$b2148750$2e08a8c0@CAM.ARTIMI.COM>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dave Korn wrote:

>> What's odd is that this bug in argz_insert() is very ticklish: it
>> triggers on "tests/mdemo/Makefile", but not when argz_insert is called
>> with "./tests/mdemo/Makefile".
> 
>   Isn't that just exactly what you would expect, given that you're talking
> about sorting things in ascii order?  The period collates very early in ascii
> sort order, whereas a lower-case t comes much later; hence if you specify the
> '.' you get the makefile at the start of the list instead of the end.

Ah, but in the ./ case, the sequence is:

"./tests/mdemo/config", NULL
"./tests/mdemo/foo1", NULL
"./tests/mdemo/foo2", NULL
"./tests/mdemo/libfoo2", NULL
"./tests/mdemo/libmlib", NULL
"./tests/mdemo/libsub", NULL
"./tests/mdemo/libtool", NULL
"./tests/mdemo/main", NULL
"./tests/mdemo/Makefile", == *pargz

So again, the sort order is exactly the same: everything gets 
argz_append()ed, until entry=="<stuff>/Makefile" comes along, which 
needs to be argz_insert()ed.

>> I need to verify this using a debug-built cygwin kernel, but it looks
>> like within newlib's argz_insert(), the call to realloc() is not
>> operating correctly in this instance.
> 
>   Sounds like it should be quite easy to PPAST then.

Not really.  I remembered the business with the detached .dbg info, so 
I'm trying to use that (without success -- more in a separate thread).

--
Chuck


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

