Debugging with cygwin tools

Doug Coleman
Fri Oct 5 20:16:00 GMT 2007

René Berber-2 wrote:
> Doug Coleman wrote:
>> I'm having the exact same problem on win64 with gdb.  The PATH variable
>> has
>> been set manually to avoid possible syntax errors, but the same problem
>> exists when I don't shorten the PATH.  Cygcheck doesn't list any dlls as
>> missing.  gdb works on my win32 computer.
>> Any other ideas?
> [snip]
>> Error: dll starting at 0x77d41000 not found.
>> Segmentation fault (core dumped)
> Same exact location.  Can you run 'info files' before 'run'?  What dll is
> in
> that address?
> -- 
> René Berber

So I attached to the running process and that works!  Here is an info files
from that.

I also tried adding /cygdrive/k/WINDOWS/syswow64 to PATH -- it still errors
at 0x77d41000.


$ gdb ./factor-nt 4496
GNU gdb (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
Attaching to program `/cygdrive/k/factor/factor-nt.exe', process 4496
Loaded symbols for /cygdrive/k/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/advapi32.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/rpcrt4.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/secur32.dll
Loaded symbols for /usr/bin/cygintl-8.dll
Loaded symbols for /usr/bin/cygiconv-2.dll
Loaded symbols for /usr/bin/cygreadline6.dll
Loaded symbols for /usr/bin/cygncurses-8.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/user32.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/gdi32.dll
Loaded symbols for /cygdrive/k/WINDOWS/system32/imm32.dll

[Switching to thread 4496.0xccc]
(gdb) info files
Symbols from "/cygdrive/k/factor/factor-nt.exe".
Win32 child process:
        Using the running image of attached thread 4496.0xccc.
        While running this, GDB does not access memory from...
Local exec file:
        `/cygdrive/k/factor/factor-nt.exe', file type pei-i386.
        Entry point: 0x401280
        0x00401000 - 0x004017b8 is .text
        0x00402000 - 0x00402030 is .data
        0x00403000 - 0x00403040 is .rdata
        0x00404000 - 0x00404380 is .bss
        0x00405000 - 0x0040509b is .edata
        0x00406000 - 0x0040631c is .idata
        0x00407000 - 0x0041dd04 is .rsrc
        0x0041e000 - 0x0041e094 is .reloc
        0x7d610000 - 0x7d695e57 is .text in
        0x7d6a0000 - 0x7d6a3600 is .data in
        0x7d6b0000 - 0x7d6de250 is .rsrc in
        0x7d6e0000 - 0x7d6e32ac is .reloc in
        0x7d4d0000 - 0x7d55305e is .text in
        0x7d560000 - 0x7d562600 is .data in
        0x7d570000 - 0x7d5da6c8 is .rsrc in
        0x7d5e0000 - 0x7d5e6294 is .reloc in
        0x61001000 - 0x610fcaf4 is .text in /usr/bin/cygwin1.dll
        0x610fd000 - 0x610ff710 is .autoload_text in /usr/bin/cygwin1.dll
        0x61100000 - 0x6110af70 is .data in /usr/bin/cygwin1.dll
        0x6110b000 - 0x6113e520 is .rdata in /usr/bin/cygwin1.dll
        0x6113f000 - 0x611483d0 is .bss in /usr/bin/cygwin1.dll
        0x61149000 - 0x61150c9b is .edata in /usr/bin/cygwin1.dll
        0x61151000 - 0x61151448 is .rsrc in /usr/bin/cygwin1.dll
        0x61152000 - 0x6116210c is .reloc in /usr/bin/cygwin1.dll
        0x61163000 - 0x61163104 is .cygwin_dll_common in
        0x61165000 - 0x61170000 is .idata in /usr/bin/cygwin1.dll
        0x61170000 - 0x61200000 is .cygheap in /usr/bin/cygwin1.dll
        0x77f51000 - 0x77fbff79 is .text in
        0x77fc0000 - 0x77fc2600 is .data in
        0x77fc4000 - 0x77fe50c8 is .rsrc in
        0x77fe6000 - 0x77fea2e8 is .reloc in
        0x7da30000 - 0x7dabce60 is .text in
        0x7dac0000 - 0x7dac69a6 is .orpc in
        0x7dad0000 - 0x7dad0800 is .data in
        0x7dae0000 - 0x7dae0408 is .rsrc in
        0x7daf0000 - 0x7daf4d8c is .reloc in
        0x7d8e0000 - 0x7d8ee699 is .text in
        0x7d8f0000 - 0x7d8f0600 is .data in
        0x7d900000 - 0x7d900418 is .rsrc in
        0x7d910000 - 0x7d910a6c is .reloc in
        0x6f5c1000 - 0x6f5c67c0 is .text in /usr/bin/cygintl-8.dll
        0x6f5c7000 - 0x6f5c7090 is .data in /usr/bin/cygintl-8.dll
        0x6f5c8000 - 0x6f5c8920 is .rdata in /usr/bin/cygintl-8.dll
        0x6f5c9000 - 0x6f5c95e0 is .bss in /usr/bin/cygintl-8.dll
        0x6f5ca000 - 0x6f5ca5ae is .edata in /usr/bin/cygintl-8.dll
        0x6f5cb000 - 0x6f5cb7bc is .idata in /usr/bin/cygintl-8.dll
        0x6f5cc000 - 0x6f5cc474 is .reloc in /usr/bin/cygintl-8.dll
        0x674c1000 - 0x674d6dd0 is .text in /usr/bin/cygiconv-2.dll
        0x674d7000 - 0x674d7020 is .data in /usr/bin/cygiconv-2.dll
        0x674d8000 - 0x675b47a0 is .rdata in /usr/bin/cygiconv-2.dll
        0x675b5000 - 0x675b51b0 is .bss in /usr/bin/cygiconv-2.dll
        0x675b6000 - 0x675b6172 is .edata in /usr/bin/cygiconv-2.dll
        0x675b7000 - 0x675b72ec is .idata in /usr/bin/cygiconv-2.dll
        0x675b8000 - 0x675b8cd0 is .reloc in /usr/bin/cygiconv-2.dll
        0x703c1000 - 0x703db600 is .text in /usr/bin/cygreadline6.dll
        0x703dc000 - 0x703df1b0 is .data in /usr/bin/cygreadline6.dll
        0x703e0000 - 0x703e12b0 is .rdata in /usr/bin/cygreadline6.dll
        0x703e2000 - 0x703e3550 is .bss in /usr/bin/cygreadline6.dll
        0x703e4000 - 0x703e8264 is .edata in /usr/bin/cygreadline6.dll
        0x703e9000 - 0x703e9ab0 is .idata in /usr/bin/cygreadline6.dll
        0x703ea000 - 0x703ec7b0 is .reloc in /usr/bin/cygreadline6.dll
        0x6c181000 - 0x6c1a70d0 is .text in /usr/bin/cygncurses-8.dll
        0x6c1a8000 - 0x6c1a86e0 is .data in /usr/bin/cygncurses-8.dll
        0x6c1a9000 - 0x6c1b6910 is .rdata in /usr/bin/cygncurses-8.dll
        0x6c1b7000 - 0x6c1b7920 is .bss in /usr/bin/cygncurses-8.dll
        0x6c1b8000 - 0x6c1ba8b0 is .edata in /usr/bin/cygncurses-8.dll
        0x6c1bb000 - 0x6c1bb848 is .idata in /usr/bin/cygncurses-8.dll
        0x6c1bc000 - 0x6c1bf624 is .reloc in /usr/bin/cygncurses-8.dll
        0x7d940000 - 0x7d9a4494 is .text in
        0x7d9b0000 - 0x7d9b0e00 is .data in
        0x7d9c0000 - 0x7d9ea810 is .rsrc in
        0x7d9f0000 - 0x7d9f2ec8 is .reloc in
        0x7d810000 - 0x7d853a57 is .text in
        0x7d860000 - 0x7d861200 is .data in
        0x7d870000 - 0x7d8703d0 is .rsrc in
        0x7d880000 - 0x7d88183c is .reloc in
        0x7def0000 - 0x7df05283 is .text in
        0x7df10000 - 0x7df10400 is .data in
        0x7df20000 - 0x7df24c28 is .rsrc in
        0x7df30000 - 0x7df30cd0 is .reloc in
View this message in context:
Sent from the Cygwin Users mailing list archive at

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list