From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77683 invoked by alias); 14 Jan 2016 15:22:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 77670 invoked by uid 89); 14 Jan 2016 15:21:59 -0000 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 Received: from out3-smtp.messagingengine.com (HELO out3-smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 14 Jan 2016 15:21:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5B32420854 for ; Thu, 14 Jan 2016 10:21:56 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 14 Jan 2016 10:21:56 -0500 Received: from [192.168.1.102] (host86-141-131-231.range86-141.btcentralplus.com [86.141.131.231]) by mail.messagingengine.com (Postfix) with ESMTPA id E74DE6801B7; Thu, 14 Jan 2016 10:21:55 -0500 (EST) Subject: Re: gdb 7.8 consistently fails to run executable - error is References: <1408580171694-110722.post@n5.nabble.com> <1408732343936-110800.post@n5.nabble.com> <5423F775.7030208@onespin-solutions.com> <54294CED.9050602@onespin-solutions.com> <20141008121224.GB29235@calimero.vinschen.de> <5435302A.6030800@onespin-solutions.com> <1448291381719-122912.post@n5.nabble.com> Cc: Tim Chick To: cygwin@cygwin.com Reply-To: cygwin@cygwin.com From: Jon Turney Message-ID: <5697BD0E.10500@dronecode.org.uk> Date: Thu, 14 Jan 2016 15:53:00 -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 X-SW-Source: 2016-01/txt/msg00180.txt.bz2 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