Hello,
Thank you very much for your quick answer .
(I had forgotten to give my OS : solaris 2.7 on Sparc)
This has solved the connection problem. So, now I can launched mysqlgui because
I'm able to connect to mysqld .
Unfortunately, mysqlgui crashes on 'Select QUERY' when
* I chose 'file' or 'screen' for result (so, not count)
* the result contains more than 0 item
Do you have an idea or any suggestion ?
Thank you very much ?
Herve
**** stack (core file) ****
Program received signal SIGSEGV, Segmentation fault.
type_info::operator== (this=0x0, arg=@0x2686b8) at ../../gcc-2.95.2/gcc/cp/tinfo.cc:46
(gdb) where
#0 type_info::operator== (this=0x0, arg=@0x2686b8) at
../../gcc-2.95.2/gcc/cp/tinfo.cc:46
#1 0x1693dc in operator== (a=@0xffbeddc0, b=@0x2686b8) at
../mysql++-1.7.8/sqlplusint/type_info1.hh:184
#2 0x715e8 in do_sql () at do_sql.cc:759
#3 0x6b7c4 in get_results () at main.cc:921
#4 0xad9d0 in Fl_Button::handle () at ../FL/Flve_Input.H:39
#5 0xa944c in send () at ../FL/Flve_Input.H:39
#6 0xa95f4 in Fl::handle () at ../FL/Flve_Input.H:39
#7 0xbd5a4 in fl_handle () at ../FL/Flve_Input.H:39
#8 0xbca58 in do_queued_events () at ../FL/Flve_Input.H:39
#9 0xbccf4 in fd_callback () at ../FL/Flve_Input.H:39
#10 0xbcc38 in fl_wait () at ../FL/Flve_Input.H:39
#11 0xa8ad0 in Fl::wait () at ../FL/Flve_Input.H:39
#12 0xa8b30 in Fl::run () at ../FL/Flve_Input.H:39
#13 0x6f218 in main () at main.cc:1249
**** source in type_info::operator== (when seg. fault occurs) ****
// We can't rely on common symbols being shared between shared objects.
bool std::type_info::
operator== (const std::type_info& arg) const
{
return (&arg == this) || (strcmp (name (), arg.name ()) == 0);
}
*** some values from void do_sql() (do_sql.cc) ****
print *ress
$20 = {row_count = 0, field_count = 2, current_field = 1, fields = 0x2a8018, data =
0x0,
data_cursor = 0x0, field_alloc = {free = 0x2a8008, used = 0x0, pre_alloc = 0x0,
min_malloc = 16,
block_size = 8164, error_handler = 0}, row = 0x28b760, current_row = 0x0, lengths =
0x2a6060,
handle = 0x2a3ce0, eof = 0 '\000'}
print result
$22 = {mysql = 0x2a3cd8, mysql_res = 0x2a6018, throw_exceptions = false, initialized =
true,
_names = 0x28b778, _types = 0x28b790, _fields =
{<const_subscript_container<MysqlFields,st_mysql_field,const st_mysql_field &,unsigned
int,int>>
= {_vptr. = 0xff286830}, res = 0xffbedeb8}, _table = {static npos = 4294967295, static
nilRep =
{len = 0, res = 0, ref = 16, selfish = false}, dat = 0x29c0d0 "amsusermed"}}
Sinisa Milivojevic wrote:
> Herve Gaudillat writes:
> > Hello,
> >
> > Currently, I'm evaluating the last version of MySQL products :
> >
> > mysql-3.23.33
> > mysql++-1.7.8
> > mysqlgui-1.7.4 (beta)
> >
> > I have big pb to launch mysql++ and mysqlGui : it crashes during DB
> > connection
> >
> > After spending many days trying to solve this issue by myself (reading
> > doc., reading newsgroup, changing of compilation option from
> > enable-exception
> > to disable-exception, recompiling mysql-3.23-33...), I don't see any
> > other
> > possibility than to post this 'help needed' message ...
> >
> >
> > Considering the following traces and info. , do you thing that the info
> > contain in mysql++-1.7.8 README file could apply to me ("It has also
> > noted that on certain SPAC Solaris install. , C++ exceptions did not
> > work
> > with gcc 2.95.2") ?
> > Do you have any other idea, suggestion, ... ?
> >
> > Thank you very much for your help
> >
> > Herve
> >
> >
> >
> > *** this is the core analysis result after launch of mysql++/simple1
> > example ***
> >
> > Core was generated by `simple1'.
> > Program terminated with signal 11, Segmentation Fault.
> > Reading symbols from
> >
>/home/sw/hgaudill/MYSQL/mysql++-1.7.8/examples/../sqlplusint/.libs/libsqlplus.so.1...done.
> >
> > Reading symbols from /usr/local/lib//libz.so...done.
> > Reading symbols from
> > /home/sw/hgaudill/MYSQL/local/lib/libmysqlclient.so.10...
> > done.
> > Reading symbols from
> > /tools/gcc/gcc-2.95.2/SunOS5.7/lib/libstdc++.so.2.10.0...
> > done.
> > Reading symbols from /usr/lib/libm.so.1...done.
> > Reading symbols from /usr/lib/libc.so.1...done.
> > Reading symbols from /usr/lib/libcrypt_i.so.1...done.
> > Reading symbols from /usr/lib/libgen.so.1...done.
> > Reading symbols from /usr/lib/libsocket.so.1...done.
> > Reading symbols from /usr/lib/libnsl.so.1...done.
> > Reading symbols from /usr/lib/libdl.so.1...done.
> > Reading symbols from /usr/lib/libmp.so.2...done.
> > Reading symbols from
> > /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
> > Reading symbols from /usr/lib/nss_files.so.1...done.
> > Reading symbols from /usr/lib/nss_nis.so.1...done.
> > #0 0xff0c568c in _malloc_unlocked ()
> >
> >
> > *** it crashes when 'mysql_real_connect' is called ****
> >
> > bool Connection::real_connect (cchar *db, cchar *host, cchar *user,
> > cchar *passwd, uint port, my_bool compress = 0,
> > unsigned int connect_timeout = 60,
> > const char *socket_name = "", unsigned int client_flag =0)
> >
> > {
> > mysql.options.compress = compress;
> > mysql.options.connect_timeout=connect_timeout;
> > locked = true; mysql.options.my_cnf_file="my";
> > if (mysql_real_connect(&mysql,host,user,passwd,db,
> > port,socket_name,client_flag))
> > .....
> >
> > **** connection parameter value are ****
> >
> > MysqlConnection::real_connect (this=0xffbee690, db=0x2ef08
> > "mysql_cpp_data", host=0x2ee18 "", user=0x2ee18 "", passwd=0x2ee18
> > "", port=3306, compress=0 '\000', connect_timeout=60, socket_name=0x0,
> > client_flag=0)
> > ... at connection.cc:46
>
> Hi!
>
> There is a bug in connection.cc, I am sending a correct one in a
> separate mail.
>
> Regards,
>
> Sinisa
>
> ____ __ _____ _____ ___ == MySQL AB
> /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
> /*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED]
> /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus
> /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____
> ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
> /*/ \*\ Developers Team