Hello,
I am having issues with the MySQL C API. I have googled, and it seems
many other people are having this issue too, but unfortunately I have
yet to find a solution.
It seems that whenever anything calls mysql_ping(), it causes a
Segmentation fault. I am currently using MySQL 4.1.10a. I have tested on
a 4.0.24 version of MySQL and we don't seem to see any problems.
I wrote a quick test program to compare behavior on both systems (it is
in no way robust, just a quick check):
#include <mysql.h>
int main ()
{
MYSQL mysql_;
mysql_init(&mysql_);
return mysql_ping(&mysql_);
}
Compiled with GCC 2.96 and using MySQL 4.0.24 it returns and error code
of 255 as expected. Compiled with GCC 3.4.3 using MySQL 4.1.10a it
segfaults. Using gdb I have determined that it seg faults when trying to
run mysql_ping().
Can anyone shed any light onto this issue? Or is there a better place to
discuss problems like this?
Thanks,
Ash Christopher