This is the mail archive of the
mailing list for the Cygwin project.
Re: gdb 7.8 consistently fails to run executable - error is
- From: Dominik Straßer <dominik dot strasser at onespin-solutions dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 29 Sep 2014 14:13:33 +0200
- Subject: Re: gdb 7.8 consistently fails to run executable - error is
- Authentication-results: sourceware.org; auth=none
- References: <1408580171694-110722 dot post at n5 dot nabble dot com> <loom dot 20140821T100019-590 at post dot gmane dot org> <1408732343936-110800 dot post at n5 dot nabble dot com> <5423F775 dot 7030208 at onespin-solutions dot com>
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.
Am 25.09.2014 um 13:07 schrieb Dominik Straßer:
> I am running into the same issue.
> My path is stripped down as far as possible:
> $ echo $PATH
> But still no cigar.
> $ gdb
> GNU gdb (GDB) 7.8
> Copyright (C) 2014 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> 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:
> Find the GDB manual and other documentation resources online at:
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from
> (gdb) r
> Starting program:
> [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 :-(
> 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
>> $> 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: .
>> 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
80335 Muenchen | firstname.lastname@example.org
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple