crashes on dbclose

Tresztnyák László treszt at nt.areco.hu
Tue Dec 21 10:34:57 EST 1999


  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
  



More information about the FreeTDS mailing list