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:subject:references:cc:to:reply-to:from :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Lvtvn9DcZmtz6wiR fd7fVMTiXdYVi6ZJiSgrnri81oMQlb+F17J0Z+etW8A4zcbzad9rU/Y4sYFNlusq iEQO9MAk1Y1uB9TAt0/0Xu+929lY24T8+4nvPeUtUpmbcQM8bb9tlR3q49OMaFso z+zpBlNl01HvvCXBVqte1Ol8nh8= 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:subject:references:cc:to:reply-to:from :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=wyitStds3x3C4fPaKIHVEs Obt8U=; b=svs5dY2W+acLWHVQB1VeJJbzmZ/FpdAw64cOpDcrWdIFLQ00AI4OEN 36TteDULWz0yOjPMqCR/p4TyALTFjhjMcb0nydlqRwm9u8YUK1yVW0ZeUA2gsawd FR1FX48175913NcDHvBbAInwKfaXjlMcLDkEdlGQlV5u3O64shTQQ= 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,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*R:D*cygwin.com, Hx-languages-length:2068, 6237, dug X-HELO: out3-smtp.messagingengine.com Subject: Re: gdb 7.8 consistently fails to run executable - error is References: <1408580171694-110722 DOT post AT n5 DOT nabble DOT com> <1408732343936-110800 DOT post AT n5 DOT nabble DOT com> <5423F775 DOT 7030208 AT onespin-solutions DOT com> <54294CED DOT 9050602 AT onespin-solutions DOT com> <20141008121224 DOT GB29235 AT calimero DOT vinschen DOT de> <5435302A DOT 6030800 AT onespin-solutions DOT com> <1448291381719-122912 DOT post AT n5 DOT nabble DOT com> Cc: Tim Chick To: cygwin AT cygwin DOT com Reply-To: cygwin AT cygwin DOT com From: Jon Turney Message-ID: <5697BD0E.10500@dronecode.org.uk> Date: Thu, 14 Jan 2016 15:21:50 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1448291381719-122912.post@n5.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 23/11/2015 15:09, Tim Chick wrote: >> Am 08.10.2014 um 14:12 schrieb Corinna Vinschen: >>> On Sep 29 14:13, Dominik Straßer wrote: >>>> Hi all, >> Hi Corinna, >> >>>> I've dug into the gdb sources. The problem is in the cygwin-only >>>> part and is not about the PATH variable but about one single DLL >>>> file name. >>>> >>>> This path length is *fixed* to 512 characters >>>> (SO_NAME_MAX_PATH_SIZE) for the *realpath* of the DLL. >>> > >>> >>> I'm not sure how to fix this problem yet. I'll look into it when I >>> had a chance to catch up with my insane mail backlog. >> I only see a chance by makin this a dynamic storage. >> as indicated in solist.h > > Dear All, > > I experienced the same problem. > > The error will occur if the path of the dll is too long, OR if gdb can not > access the dll for some reason. If the dll can not be accesed, then the call > to realpath() fails, and you get the "dll path too long" message. > > In my case, the path was never too long. Making the change below lets you > debug your applications: Thanks very much for the patch. I've built and uploaded a test release of gdb 7.10.1 with a tweaked version of this patch added. Perhaps you could try that and see if it improves things for you? I wasn't able to reproduce the problem where realpath() fails for some DLL, even using a non-administrator account. Can you provide some more information about what path realpath() is failing for, and do you have any idea why? > --- gdb-7.9.1-1.src/gdb.i686/src/gdb-7.9.1/gdb/windows-nat.c.orig 2015-11-23 > 11:43:17.834000000 +0000 > +++ gdb-7.9.1-1.src/gdb.i686/src/gdb-7.9.1/gdb/windows-nat.c 2015-11-23 > 14:17:30.302252500 +0000 > @@ -623,7 +623,8 @@ windows_make_so (const char *name, LPVOI > free (rname); > } > else > - error (_("dll path too long")); > + warning (_("dll path too long, or can not be accessed '\"%s\"'"), > + name); > } > /* Record cygwin1.dll .text start/end. */ > p = strchr (so->so_name, '\0') - (sizeof ("/cygwin1.dll") - 1); > -- 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