Hi!

>>>>> "Sinisa" == Sinisa Milivojevic <[EMAIL PROTECTED]> writes:

>> I am not agree. I take _another program_ which work fine during ~2 year
>> with previouse mysql version (mysql-3.23.44 for example).
>> And I send dump from this program.
>> 
>> Why I interested libmysqlclient_r?
>> I have a program, which try to connect to mysql twice.
>> But the second connection freeze in mysql_real_connect.
>> I use libmysqlclient.so (mysql-3.23.42 & FreeBSD-4.4RC)
>> I try to upgrade to mysql-3.23.49 and use mysqlclient_r on test
>> computer and have many problems (I write about their before).
>> But now I attach to working process which freese and see:
>> (gdb) bt
>> #0  0x18237970 in _thread_kern_sched () from /usr/lib/libc_r.so.4
>> #1  0x182382d2 in _thread_kern_sched_state () from /usr/lib/libc_r.so.4
>> #2  0x1823b791 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
>> #3  0x1826df86 in _close () from /usr/lib/libc_r.so.4
>> #4  0x1823eb72 in _res_close () from /usr/lib/libc_r.so.4
>> #5  0x1823dc49 in res_send () from /usr/lib/libc_r.so.4
>> #6  0x182418ad in res_query () from /usr/lib/libc_r.so.4
>> #7  0x18241d88 in res_querydomain () from /usr/lib/libc_r.so.4
>> #8  0x18241aca in res_search () from /usr/lib/libc_r.so.4
>> #9  0x1824d692 in _gethostbydnsname () from /usr/lib/libc_r.so.4
>> #10 0x1824c14c in gethostbyname2 () from /usr/lib/libc_r.so.4
>> #11 0x1824c0c9 in gethostbyname () from /usr/lib/libc_r.so.4
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<cut>

>> Under FreeBSD gethostbyname is not thread-safe
>> And there is no thread-safe gethostbyname_r
>> (function exist but not thread-safe)
>> 
>> Are mysql know about this!!!

Just a note about this problem:

We will add a wrapper for gethostbyname() in 3.23.51 and the 4.0.2
that will fix things for OS where gethostbyname is not threadsafe.

Regards,
Monty

-- 
For technical support contracts, goto https://order.mysql.com/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Michael Widenius <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, CTO
/_/  /_/\_, /___/\___\_\___/   Helsinki, Finland
       <___/   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