It is gdb-5.0, Mandrake 8 version, with patch for threaded application under
new glibc/kernel.
On Sunday 05 August 2001 12:54, you wrote:
> 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.
--
==========================================================================
Mail : [EMAIL PROTECTED] WWW : http://www.mindnever.org
Phone : +381 63 550 161 ICQ : 15414204
==========================================================================
---------------------------------------------------------------------
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