Hi!
>>>>> "gavin" == gavin <gavin@stripped> writes:
gavin> Hello, There appears to bug in libmysqlclient when dealing with threads
gavin> in C. Attached is a simple (yet messy) program that shows the segfault
gavin> that occours.
gavin> To repeat, enter in your MySQL info
gavin> compile with: gcc -o thread_crash thread_crash.c -lmysqlclient -lpthread
gavin> Then run.
gavin> If this turns out to be bad coding, and not a bug please let me know
gavin> what is wrong so that I can fix it on my side.
This problem and it's solutions is described in the MySQL manual section:
'C Threaded Function Descriptions'
(The problem is that you are not calling mysql_thread_init())
Regards,
Monty