Re: problem with libmysqlclient_r.so

2002-05-16 Thread Michael Widenius
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

Re: problem with libmysqlclient_r.so

2002-05-16 Thread Andrey Kotrekhov
Hi! 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

Re: problem with libmysqlclient_r.so

2002-05-16 Thread Michael Widenius
Hi! Michael == Michael Chang [EMAIL PROTECTED] writes: For example, have you called mysql_thread_init() before calling mysql_real_connect() in all your threads ? Michael However, to my understanding, mysql_thread_init() is not needed if Michael only one database connection is used, and

Re: problem with libmysqlclient_r.so

2002-05-16 Thread Michael Widenius
Hi! Andrey == Andrey Kotrekhov [EMAIL PROTECTED] writes: Andrey -L .-A Andrey Are mysql know about this!!! Sorry but if your OS doesn't support gethostbyname_r(), then mysql_real_connect() is not thread safe (I have just updated our documentation about this) Andrey Thank you. I have

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Michael Widenius
Hi! Andrey == Andrey Kotrekhov [EMAIL PROTECTED] writes: cut Andrey #12 0x180e7cdc in mysql_real_connect () Andreyfrom /usr/local/mysql/lib/libmysqlclient.so.10 Andrey #13 0x1812f93c in MysqlConnection::real_connect (this=0x80c9c18, Andrey db=0x80fe8b0 zzz, host=0x80fb040

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. Andrey Are mysql know about this!!! Sorry but if your OS doesn't support gethostbyname_r(), then mysql_real_connect() is not thread safe (I have just updated our documentation about this) Thank you. Another issue is that if your client dies in the dbug_ code, this means

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: äÏÂÒÙÊ ÄÅÎØ. Hmm... I use mysql_init() in each thread but: 8.4.4.4 my_thread_init() . This is automatically called by my_init() and mysql_connect(). ~ And in manual: To get a threaded client where you can

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Michael Chang
For example, have you called mysql_thread_init() before calling mysql_real_connect() in all your threads ? However, to my understanding, mysql_thread_init() is not needed if only one database connection is used, and that database connection is established when the program starts, before any

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Sinisa Milivojevic
Michael Chang writes: For example, have you called mysql_thread_init() before calling mysql_real_connect() in all your threads ? However, to my understanding, mysql_thread_init() is not needed if only one database connection is used, and that database connection is established when the

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Andrey Kotrekhov
is multithreaded, so check with `ldd` whether you have linked in libstdc++ ... I think problem is in libmysqlclient_r.so becouse I compile program which work fine many month with libmysqlclient_r. And program died in the same place. #0 _db_enter_ (_func_=0x28252311 mysql_real_query, _file_=0x28251d48

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Andrey Kotrekhov
Hi! äÏÂÒÙÊ ÄÅÎØ. I think problem is in libmysqlclient_r.so becouse I compile program which work fine many month with libmysqlclient_r. And program died in the same place. #0 _db_enter_ (_func_=0x28252311 mysql_real_query, _file_=0x28251d48 libmysql.c, _line_=1784, _sfunc_

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: Hi! 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.

Re: problem with libmysqlclient_r.so

2002-04-24 Thread Andrey Kotrekhov
Hi! Andrey Kotrekhov writes: my program crash in another plase (gdb) bt #0 _db_enter_ (_func_=0x280fe4dc mysql_ping, _file_=0x280fdd48 libmysql.c, _line_=2248, _sfunc_=0xbfa87d3c, _sfile_=0xbfa87d40, _slevel_=0xbfa87d44, _sframep_=0xbfa87d48) at dbug.c:712 #1

Re: problem with libmysqlclient_r.so

2002-04-24 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: Hi! % g++ -v Using builtin specs. gcc version 2.95.3 20010315 (release) [FreeBSD] And libstdc++ is include in compiller How can I see version of libstdc++ ? In /usr/src/contrib/libstdc++/Makefile.in I see VERSION = 2.10.0 INTERFACE = 3 Is there right?

Re: problem with libmysqlclient_r.so

2002-04-23 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. program crash in my_fopen this is stack of program : (gdb) bt #0 0x180ef7f2 in my_fopen () from /usr/local/mysql/lib/libmysqlclient_r.so.10 #1 0x180f0b20 in search_default_file () from /usr/local/mysql/lib/libmysqlclient_r.so.10 [skip] Hi! First of all,

Re: problem with libmysqlclient_r.so

2002-04-23 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: my program crash in another plase (gdb) bt #0 _db_enter_ (_func_=0x280fe4dc mysql_ping, _file_=0x280fdd48 libmysql.c, _line_=2248, _sfunc_=0xbfa87d3c, _sfile_=0xbfa87d40, _slevel_=0xbfa87d44, _sframep_=0xbfa87d48) at dbug.c:712 #1 0x280eceae in

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Andrey Kotrekhov
PROTECTED] [EMAIL PROTECTED] - Original Message - From: Andrey Kotrekhov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 21, 2002 4:55 PM Subject: problem with libmysqlclient_r.so Hello, All! I have program which try to connect

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Gelu
: Andrey Kotrekhov [EMAIL PROTECTED] To: Gelu [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, April 22, 2002 12:30 PM Subject: Re: problem with libmysqlclient_r.so Hi, I use mysql++ And each object Connection use own MYSQL mysql; mysql_init called in Connection constructor. Hi, You use

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: Hello, All! I have program which try to connect to different mysql servers twice at the same time. When I use libmysqlclient.so sometimes one or two mysql connection freeze in mysql_real_connect But when I try to use libmysqlclient_r.so program crash in

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. Andrey Kotrekhov writes: Hello, All! I have program which try to connect to different mysql servers twice at the same time. When I use libmysqlclient.so sometimes one or two mysql connection freeze in mysql_real_connect But when I try to use libmysqlclient_r.so

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: äÏÂÒÙÊ ÄÅÎØ. #1 0x180f0b20 in search_default_file () from /usr/local/mysql/lib/libmysqlclient_r.so.10 Will I need to compile mysql with --with-debug option to see parameters? Best regards. ___ Andrey Kotrekhov

problem with libmysqlclient_r.so

2002-04-21 Thread Andrey Kotrekhov
Hello, All! I have program which try to connect to different mysql servers twice at the same time. When I use libmysqlclient.so sometimes one or two mysql connection freeze in mysql_real_connect But when I try to use libmysqlclient_r.so program crash in my_fopen this is stack of program :

Re: problem with libmysqlclient_r.so

2002-04-21 Thread Gelu
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 21, 2002 4:55 PM Subject: problem with libmysqlclient_r.so Hello, All! I have program which try to connect to different mysql servers twice at the same time. When I use libmysqlclient.so sometimes one or two mysql connection freeze