freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib
- From: Frediano Ziglio <freddyz77 AT tin.it>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib
- Date: Fri, 11 Feb 2005 14:27:18 +0100
Il giorno ven, 11-02-2005 alle 10:28 +0000, Thompson, Bill D (London) ha
scritto:
> Freddy,
>
> 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...
>
Ok, fixed.
> 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
> changed.
>
> 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...
>
> Bill
>
Committed!
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
reentrant...
- 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
free'd
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...
freddy77
Attachment:
cursor_problem.txt.gz
Description: GNU Zip compressed data
-
[freetds] [ freetds-Patches-1120675 ] new features in ctlib,
SourceForge.net, 02/11/2005
- <Possible follow-up(s)>
-
RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib,
Thompson, Bill D (London), 02/11/2005
- RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib, Frediano Ziglio, 02/11/2005
- RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib, ZIGLIO, Frediano, VF-IT, 02/14/2005
-
RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib,
Thompson, Bill D (London), 02/16/2005
-
RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib,
Frediano Ziglio, 02/16/2005
- RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib, Frediano Ziglio, 02/16/2005
-
RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib,
Frediano Ziglio, 02/16/2005
- [freetds] [ freetds-Patches-1120675 ] new features in ctlib, SourceForge.net, 02/17/2005
- RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib, Thompson, Bill D (London), 02/17/2005
- RE: [freetds] [ freetds-Patches-1120675 ] new features in ctlib, ZIGLIO, Frediano, VF-IT, 02/17/2005
Archive powered by MHonArc 2.6.24.