FreeTDS 0.91.96 - tdssrv/tdspool apps

Sergio NNX <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Thanks Frediano for your pronto answers.

I'm in the process of testing as much as I can now (as you can see!) and I have a few extra questions:

a) What's the purpose/use of 'tdssrv'? Is it supposed to be used in conjunction with 'freeclose' test or tdspool app?
b) tdspool app doesn't seem to work at all, I'm afraid. I get this error message:

                       'Could not open initial connection 0'

plus a lovely runtime exception! Grrr!

Program received signal SIGSEGV, Segmentation fault.
0x774e1711 in ntdll!RtlLeaveCriticalSection ()
   from C:\Windows\system32\ntdll.dll
(gdb) bt
#0  0x774e1711 in ntdll!RtlLeaveCriticalSection ()
   from C:\Windows\system32\ntdll.dll
#1  0x765d5d03 in SHStartNetConnectionDialogW ()
   from C:\Windows\syswow64\shell32.dll
#2  0x774b32f2 in ntdll!LdrLoadAlternateResourceModuleEx ()
   from C:\Windows\system32\ntdll.dll
#3  0x02bf08e0 in ?? ()
#4  0x77550c96 in ntdll!RtlValidateHeap () from C:\Windows\system32\ntdll.dll
#5  0x00bf0000 in ?? ()
#6  0x7750a967 in ntdll!AlpcMaxAllowedMessageLength ()
   from C:\Windows\system32\ntdll.dll
#7  0x00bf0000 in ?? ()
#8  0x774b32f2 in ntdll!LdrLoadAlternateResourceModuleEx ()
   from C:\Windows\system32\ntdll.dll
#9  0x02bf09b0 in ?? ()
#10 0x750598cd in msvcrt!free () from C:\Windows\syswow64\msvcrt.dll
#11 0x00bf0000 in ?? ()
#12 0x004643b7 in CRYPTO_free ()
#13 0x0043d0e1 in SSL_CTX_free ()
#14 0x00541354 in tds_tls_deinit ()
#15 0x0053a5c2 in __do_global_dtors ()
    at ../mingwrt-4.0.0-1-mingw32-src/src/libcrt/crt/gccmain.c:50
#16 0x7505c3e9 in msvcrt!isspace () from C:\Windows\syswow64\msvcrt.dll
#17 0x750636bb in msvcrt!exit () from C:\Windows\syswow64\msvcrt.dll
#18 0x00402278 in pool_mbr_init ()
#19 0x005412c2 in main ()

By looking at some source code inside src/pool folder, I can see an issue in member.c, where it reads:

...
#if HAVE_GETHOSTNAME
...
...
#endif

However, winsockets were/are never initialised. (Note: this doesn't fix the runtime exception)

I need some help with the runtime exception. My C language knowledge is less than basic!

Thanks again.

Sergio.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.