Why does socket fail under gdb?
All of a sudden socket crashes under gdb (but works fine normally). ANY help is much appreciated.

<pre>
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 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 "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /cygdrive/c/Users/First Last/Code/Mist/bin/win32/test.exe...done.
(gdb) break Util/TCP_Connection.cpp:110
Breakpoint 1 at 0x4424c3: file Util/TCP_Connection.cpp, line 110.
(gdb) run -server run
Starting program: /cygdrive/c/Users/First Last/Code/Mist/bin/win32/test.exe -server run
[New Thread 77152.0x1b0f8]
dll path too long
[New Thread 77152.0x1a380]
110       socket = socket(AF_INET, SOCK_STREAM, 0);
(gdb) n
warning: Could not load shared library symbols for //./globalroot/systemroot/syswow64/mswsock.dll.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGTRAP, Trace/breakpoint trap.
0x3567125a in ?? () from /cygdrive/c/Windows/syswow64/mswsock.dll
(gdb) bt
#0  0x3567125a in ?? () from /cygdrive/c/Windows/syswow64/mswsock.dll
#1  0x753b8b9d in inet_ntoa () from /cygdrive/c/Windows/syswow64/WS2_32.DLL
#2  0x753b8972 in inet_ntoa () from /cygdrive/c/Windows/syswow64/WS2_32.DLL
#3  0x753b89da in inet_ntoa () from /cygdrive/c/Windows/syswow64/WS2_32.DLL
#4  0x753b3d70 in WSCInstallProvider ()
   from /cygdrive/c/Windows/syswow64/WS2_32.DLL
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

#5  0x00000002 in ?? ()
#6  0x00000000 in ?? ()

</pre>
Why does socket fail under gdb?
===

All of a sudden socket crashes under gdb (but works fine normally). ANY help is much appreciated.

<pre>
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 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 "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /cygdrive/c/Users/First Last/Code/Mist/bin/win32/test.exe...done.
(gdb) break Util/TCP_Connection.cpp:110
Breakpoint 1 at 0x4424c3: file Util/TCP_Connection.cpp, line 110.
(gdb) run -server run
Starting program: /cygdrive/c/Users/First Last/Code/Mist/bin/win32/test.exe -server run
[New Thread 77152.0x1b0f8]
dll path too long
[New Thread 77152.0x1a380]
110       socket = socket(AF_INET, SOCK_STREAM, 0);
(gdb) n
warning: Could not load shared library symbols for //./globalroot/systemroot/syswow64/mswsock.dll.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGTRAP, Trace/breakpoint trap.
0x3567125a in ?? () from /cygdrive/c/Windows/syswow64/mswsock.dll
(gdb) bt
#0  0x3567125a in ?? () from /cygdrive/c/Windows/syswow64/mswsock.dll
#1  0x753b8b9d in inet_ntoa () from /cygdrive/c/Windows/syswow64/WS2_32.DLL
#2  0x753b8972 in inet_ntoa () from /cygdrive/c/Windows/syswow64/WS2_32.DLL
#3  0x753b89da in inet_ntoa () from /cygdrive/c/Windows/syswow64/WS2_32.DLL
#4  0x753b3d70 in WSCInstallProvider ()
   from /cygdrive/c/Windows/syswow64/WS2_32.DLL
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

#5  0x00000002 in ?? ()
#6  0x00000000 in ?? ()

</pre>