Skip to Content.
Sympa Menu

freetds - RE: [freetds] tdspool: Segmentation fault on connect

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Carlos S. Alonso de Linaje" <calonso AT i-network.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] tdspool: Segmentation fault on connect
  • Date: Tue, 29 Jul 2003 15:08:55 +0200

I'm sorry but the problem is not when the code compare, the problem is that sometimes *s has the position
65 (!!!=Segmentation). I only see this at first time when you login with tdspool.... I'm still debugging :-)

So the lines i tell before are not exactly.... it works better if you comment the lines of tds_dstr_set function
(lines 103 and 104)

When i comment this lines all work fine (at the moment! :-)





At 03:00 PM 7/29/2003 +0200, you wrote:

>
> Temporary solution!!!
>
> The problem is in lines 68,69 at src/tds/tdsstring.c
>
> free() does'nt works!!! (pointer problem)
>
> Comment both lines if you have Segmentation fault
> and recompile
> Right now is working but with a memory problem....
> Any solution?
> Any patch?
>
> Regards.
>

Try code like

void
tds_dstr_free(char **s)
{
if (*s && *s != tds_str_empty)
free(*s);
}

If this work there is some problem in upper layer (*s shouldn't be
NULL...)

freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 7/24/2003

Carlos S. Alonso de Linaje García
Director Técnico
I-network
C/Marqués de Riscal 11, 2ª planta
28010 Madrid
Tel: +34. 91.702.17.57
"Si buscas resultados distintos, no hagas lo mismo" (Albert Einstein)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 7/24/2003



Archive powered by MHonArc 2.6.24.

Top of Page