I'm using Free Pascal 1.0.4 and MySQL 3.22.32
System is RedHat 7.2 (but the same is on RH 6.2)

The Free Pascal package contains mysql unit which makes able to pipe sql
queryes from pascal to mysql.

All worked fine until 3.22.32.
But in 3.23.xx (tested on 3.23.38 and 3.23.44),the error with incorrect
mysql_close(sock) is occuring after ever call to mysql.

Below is gdb calls stack:
(gdb) run
Starting program: /home/mazay/dl-utils/uncalls

>From 18:00 to 18:59 total records add to UNCALLS  : 0

Program received signal SIGSEGV, Segmentation fault.
__libc_free (mem=0xb07d1) at malloc.c:3136
3136    malloc.c: No such file or directory.
        in malloc.c
(gdb) where
#0  __libc_free (mem=0xb07d1) at malloc.c:3136
#1  0x40039722 in my_no_flags_free () from 
/usr/lib/mysql/libmysqlclient.so.10
#2  0x4003676d in mysql_close () from
/usr/lib/mysql/libmysqlclient.so.10
#3  0x0805ba1e in mysql_query ()
#4  0x0805c591 in mysql_query ()
#5  0x0804862f in mysql_query ()
(gdb)

Anybody have any ideas?
Maybe errors caused by changes in mysql C API ?

Will thanks for your advice.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to