Skip to Content.
Sympa Menu

freetds - Re: [freetds] Segfault in tds_convert_key

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Segfault in tds_convert_key
  • Date: 30 Apr 2003 20:17:38 +0200


...
>
> Seems very odd to me that it dies in that spot. TSQL connects
> to the mssql2k database no problem with the exact same code.
> I attempted to use gdb to discover exactly where it dies but it
> appears the memory is corrupted upon dead and gdb could not
> read any of the frames.
>
> Does this have anything to do with the charset problem? If I comment
> out the call to tds_answer_challenge(*) and rebuild the libraries it
> removes the segfault problem.
>
>

Usually I'm lucky with debugging stuff...
Try to use ISO-8859-1 for your coding. If this work it's a conversion
problem (tsql use always this conversion).
If this do not work try ElectricFence (there are versions for many
*nix). This library help to detect buffer overflows and underflows.

freddy77





Archive powered by MHonArc 2.6.24.

Top of Page