Vladimir Zidar writes:
> >Description:
>       mysql refuses connection [local/unix-socket] when client is ran under GDB,
>       and linked with pthread library. It doesn't need to call any pthread_*()
>         function, it just fails when linked with it.
>       
> >How-To-Repeat:
> 
> #include <stdio.h>
> #include <mysql/mysql.h>
> 
> 
> main()
> {
> MYSQL m;
> 
> if(mysql_connect(&m, NULL, "root", "mysqlroot")) {
>     printf("Connect okay\n");
>     mysql_close(&m);
>   } else {
>     fprintf(stderr, "MYSQL:%d %s\n", mysql_errno(&m), mysql_error(&m));
>   }
> }
> 
> 
> gcc m2.c -o m2 -D_REENTRANT -lmysqlclient_r
> 
> gdb ./m2
> 
> run
> 
> 

This looks most likely like gdb issue.

Try the latest gdb  snapshot available.

-- 
Regards,
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com

---------------------------------------------------------------------
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