Re: libmysqlclient[_r].so + pthreads + gdb
Vladimir Zidar writes: > It is gdb-5.0, Mandrake 8 version, with patch for threaded application under > new glibc/kernel. > That one is not very good for threaded apps. That is why we use gdb from snapshots. -- 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
Re: libmysqlclient[_r].so + pthreads + gdb
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 > > #include > > > > > > 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
Re: libmysqlclient[_r].so + pthreads + gdb
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 > #include > > > 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
libmysqlclient[_r].so + pthreads + gdb
>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 #include 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 >Fix: Don't know. >Submitter-Id: >Originator:root >Organization: == Mail : [EMAIL PROTECTED] WWW : http://www.mindnever.org Phone : +381 63 550 161 ICQ : 15414204 == > >MySQL support: [none] >Synopsis: libmysqlclient_r + pthreads + gdb fails to connect to server >Severity: critical >Priority: high >Category: mysql >Class: sw-bug >Release: mysql-3.23.36 (Linux-Mandrake MySQL RPM) >Environment: System: Linux noteboox 2.4.4 #3 Sat Jul 21 21:12:31 CEST 2001 i686 unknown Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs gcc version 2.96 2731 (Linux-Mandrake 8.0 2.96-0.48mdk) Compilation info: CC='gcc' CFLAGS='-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-omit-frame-pointer' CXX='g++' CXXFLAGS='-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-omit-frame-pointer' LDFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 Apr 27 02:08 /lib/libc.so.4 -> libc.so.4.7.6 -rwxr-xr-x 1 root root 634880 Apr 29 1996 /lib/libc.so.4.7.6 lrwxrwxrwx 1 root root 13 May 2 02:37 /lib/libc.so.6 -> libc-2.2.2.so -rwxr-xr-x 1 root root 1216268 Feb 21 11:38 /lib/libc-2.2.2.so -rw-r--r-- 1 root root 26366908 Feb 21 11:31 /usr/lib/libc.a -rw-r--r-- 1 root root 178 Feb 21 11:31 /usr/lib/libc.so Configure command: ./configure --enable-shared --enable-thread-safe-client --enable-assembler --with-mysqld-user=mysql --with-unix-socket-path=/var/lib/mysql/mysql.sock --prefix=/ --with-extra-charsets=complex --exec-prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var/lib/mysql --infodir=/usr/share/info --includedir=/usr/include --mandir=/usr/share/man --with-berkeley-db --without-innobase '--with-comment=Linux-Mandrake MySQL RPM' Perl: This is perl, version 5.005_03 built for i586-linux a -- == 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