public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Dominik Straßer" <dominik.strasser@onespin-solutions.com>
To: cygwin@cygwin.com
Subject: Re: gdb 7.8 consistently fails to run executable - error is
Date: Mon, 29 Sep 2014 14:18:00 -0000	[thread overview]
Message-ID: <54294CED.9050602@onespin-solutions.com> (raw)
In-Reply-To: <5423F775.7030208@onespin-solutions.com>

Hi all,
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.

So there's no way for the user to work around this apart from shortening
the directory or file names.

Best regards

Dominik

Am 25.09.2014 um 13:07 schrieb Dominik Straßer:
> Hi,
> I am running into the same issue.
> My path is stripped down as far as possible:
> $ echo $PATH
> /usr/local/bin:/usr/bin
> 
> But still no cigar.
> 
> $ gdb
> /local/night/fizz_build_Win7_with_icons/libraries/compilelib/unittest/exec/cygwin64/MINGW/normal_mt_so/unittest.exe
> GNU gdb (GDB) 7.8
> Copyright (C) 2014 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-pc-cygwin".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from
> /local/night/fizz_build_Win7_with_icons/libraries/compilelib/unittest/exec/cygwin64/MINGW/normal_mt_so/unittest.exe...done.
> (gdb) r
> Starting program:
> /local/night/fizz_build_Win7_with_icons/libraries/compilelib/unittest/exec/cygwin64/MINGW/normal_mt_so/unittest.exe
> [New Thread 30016.0x7544]
> dll path too long
> 
> strace revealend nothing.
> 
> Unfortunately MinGW's gdb doesn't work for other reasons, so I am back
> to printf :-(
> 
> Regards
> 
> Dominik
> 
> Am 22.08.2014 um 20:32 schrieb DGStevens:
>> Hi Achim-
>>
>> Thanks.  Unfortunately, the change didn't seem to help regarding my issue
>> with GDB.  I don't know if it matters, but I fired up an old computer
>> running XP.  I updated all of the Cygwin software, and tried the same test. 
>> It worked fine on XP, but it seems to fail on Win7, at least for me.
>>
>> FWIW, I tried manually trimming the path to just:
>>
>> $> echo $PATH
>> .:/home/Deans/bin:/usr/local/bin:/usr/bin
>>
>> ...
>>
>> $> cygcheck -s
>>
>> Cygwin Configuration Diagnostics
>> Current System Time: Fri Aug 22 00:02:07 2014
>>
>> Windows 7 Professional Ver 6.1 Build 7601 Service Pack 1
>>
>> Running under WOW64 on AMD64
>>
>> Path:   .
>>         C:\cygwin\home\Deans\bin
>>         C:\cygwin\usr\local\bin
>>         C:\cygwin\bin
>> ...
>>
>>
>>
>>
>> --
>> View this message in context: http://cygwin.1069669.n5.nabble.com/gdb-7-8-consistently-fails-to-run-executable-error-is-dll-path-too-long-tp110722p110800.html
>> Sent from the Cygwin list mailing list archive at Nabble.com.
>>
>> --
>> 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
>>
> 

-- 
Dominik Strasser       | Phone:  +49 89 99013-436
OneSpin Solutions GmbH | Fax:    +49 89 99013-100
Nymphenburgerstr. 20a
80335 Muenchen         | dominik.strasser@onespin-solutions.com
Geschaeftsfuehrung: Dr. Raik Brinkmann, Oliver Habeck
Vorsitzender des Beirats: Paul Hill
Sitz: Muenchen; Amtsgericht Muenchen HRB 139464
UstID#: DE 814413215

--
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

  reply	other threads:[~2014-09-29 12:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-21  0:16 gdb 7.8 consistently fails to run executable - error is "dll path too long" DGStevens
2014-08-21  8:02 ` gdb 7.8 consistently fails to run executable - error is Achim Gratz
2014-08-22 18:32   ` DGStevens
2014-09-25 12:19     ` Dominik Straßer
2014-09-29 14:18       ` Dominik Straßer [this message]
2014-10-08 12:12         ` Corinna Vinschen
2014-10-08 12:38           ` Dominik Straßer
2015-11-23 14:44             ` Tim Chick
2016-01-12 13:58               ` Vanda Vodkamilkevich
2016-01-12 17:30                 ` Corinna Vinschen
2015-11-23 15:09             ` Tim Chick
2016-01-14 15:53               ` Jon Turney
2016-01-14 19:48                 ` Tim Chick
2016-01-14 20:20                   ` Jon Turney
2016-01-21 15:01                     ` Tim Chick
2016-01-27 21:47                       ` Jon Turney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54294CED.9050602@onespin-solutions.com \
    --to=dominik.strasser@onespin-solutions.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).