[freetds] [ freetds-Patches-1120675 ] new features in ctlib
freddyz77 at tin.it
Fri Feb 11 08:27:18 EST 2005
Il giorno ven, 11-02-2005 alle 10:28 +0000, Thompson, Bill D (London) ha
> In order to get this code to compile with my ancient compiler, I had to
> change a bit of your code in login.c
> My compiler will only accept initialisation with constant values...
> I've rejigged the structure of the ctlib include files
> (previously pretty much everything was in cspublic.h)
> - so the diff shows big differences, although really there is little
> There are mercifully few changes necessary to tds code (shows how mature
> it is I guess)
> I'm pretty sure none of these should functionally affect odbc code...
ODBC works correctly :) ctlib not :(
- cancel test fails. It gets all rows instead of stopping... I don't
understand why and enabling logging just core cause tdsdump_log is not
- ct_cursor fails with "ct_cmd_props() CS_CUR_STATUS != CS_CURSTAT_NONE"
Also it has a problem with memory, from log (attached):
==10866== 1 errors in context 1 of 1:
==10866== Invalid read of size 2
==10866== at 0x1B90D4A3: ct_cmd_props (ct.c:2476)
==10866== by 0x804935D: main (ct_cursor.c:256)
==10866== Address 0x1BABAC80 is 64 bytes inside a block of size 72
It try to read freed memory
==10866== at 0x1B905269: free (vg_replace_malloc.c:153)
==10866== by 0x1B916048: tds_free_cursor (mem.c:677)
==10866== by 0x1B918689: tds_process_cursor_tokens (token.c:3361)
==10866== by 0x1B91C1CF: tds_process_result_tokens (token.c:750)
==10866== by 0x1B910CA4: ct_results (ct.c:1132)
==10866== by 0x8049245: main (ct_cursor.c:248)
cursor seems already freed here...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7987 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20050211/9f7b4f79/attachment.gz
More information about the FreeTDS