Skip to Content.
Sympa Menu

freetds - crashes on dbclose

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Tresztnyák László <treszt AT nt.areco.hu>
  • To: "Development Group TDS (Elektronikus levelek)" <freetds AT franklin.oit.unc.edu>
  • Subject: crashes on dbclose
  • Date: Tue, 21 Dec 1999 16:34:57 +0100


Hello,

I'm back with a new problem ;-)
(I use freeTDS from the CVS (21/12/1999), with Sybase ASA 6.03 and
PHP4B3 on a RedHat 6.0).
Sometimes the query process dies with segmentation fault. After some
debugging i found that

1. it is a "free(): invalid pointer" error in
tds_free_results(tds/mem.c:143) when it tries to free the current_row
field. (the pointer has the same address as in tds_alloc_row after
malloc)

2. i can do it with a simple PHP program:

$k=sybase_connect("idg","dba","sql");
$e=sybase_query("SELECT id,aktiv,sorszam FROM rovatok",$k);
sybase_close($kapcsolat);

if the last field in the SELECT is unsigned smallint. If I change the
order of the fields so that a field with another type is the last, it
works.

Have you any idea what's the real problem?

Laszlo




  • crashes on dbclose, Tresztnyák László, 12/21/1999

Archive powered by MHonArc 2.6.24.

Top of Page