I ran through the gdb debugger, and here is the output:
Program received signal SIGSEGV, Segmentation fault.
my_strcasecmp_8bit (cs=0x0, s=0xffffffff <Address 0xffffffff out of bounds>, t=0x6c <Address 0x6c out of bounds>) at ctype-simple.c:244
244 ctype-simple.c: No such file or directory.
in ctype-simple.c
Current language: auto; currently minimal
And from (gdb) backtrace:
my_strcasecmp_8bit (cs=0x1, s=0xffcfb6b6 <Address 0xffcfb6b6 out of bounds>, t=0x6c <Address 0x6c out of bounds>) at ctype-simple.c:244
#1 0xfd76c57c in get_charset_number (charset_name=0x69f38 "latin1", cs_flags=32) at charset.c:447
#2 0xfd76c9a0 in get_charset_by_csname (cs_name=0x69f38 "latin1", cs_flags=32, flags=16) at charset.c:564
#3 0xfd78ebfc in mysql_init_character_set (mysql=0x112b00) at client.c:1806
#4 0xfd78f5f0 in mysql_real_connect (mysql=0x112b00, host=0xfd8044cc "localhost", user=0xbcd78 "", passwd=0xe6150 "",
db=0x28 <Address 0x28 out of bounds>, port=0, unix_socket=0xfd801c6c "/tmp/mysql.sock", client_flag=3631699) at client.c:2222
#5 0xfd75c8ac in QMYSQLDriver:pen () from /homes/mlin/Qt-4.5.3/plugins/sqldrivers/libqsqlmysql.so
#6 0xff346c00 in QSqlDatabase:pen () from /homes/mlin/Qt-4.5.3/lib/libQtSql.so.4
#7 0x0001812c in Browser::addConnection ()
#8 0x00018b88 in Browser::addConnection ()
#9 0x0001cbb0 in Browser::qt_metacall ()
#10 0xfe00eba0 in QMetaObject::activate () from /homes/mlin/Qt-4.5.3/lib/libQtCore.so.4
#11 0xfe6258a4 in QAction::triggered () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#12 0xfe625c34 in QAction::activate () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#13 0xfea38cd8 in QMenuPrivate::activateCausedStack () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#14 0xfea3c05c in QMenuPrivate::activateAction () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#15 0xfea3efbc in QMenu::mouseReleaseEvent () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#16 0xfe67ea9c in QWidget::event () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#17 0xfea39974 in QMenu::event () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#18 0xfe62c62c in QApplicationPrivate::notify_helper () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#19 0xfe62e60c in QApplication::notify () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#20 0xfdffa64c in QCoreApplication::notifyInternal () from /homes/mlin/Qt-4.5.3/lib/libQtCore.so.4
#21 0xfe62d590 in QApplicationPrivate::sendMouseEvent () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#22 0xfe69d5d8 in QETWidget::translateMouseEvent () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#23 0xfe69baa4 in QApplication::x11ProcessEvent () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#24 0xfe6c25ec in QEventDispatcherX11:rocessEvents () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
#25 0xfdff9e44 in QEventLoop:rocessEvents () from /homes/mlin/Qt-4.5.3/lib/libQtCore.so.4
#26 0xfdffa000 in QEventLoop::exec () from /homes/mlin/Qt-4.5.3/lib/libQtCore.so.4
#27 0xfdfff04c in QCoreApplication::exec () from /homes/mlin/Qt-4.5.3/lib/libQtCore.so.4
#28 0x00017dfc in main ()
It seems like the problem is with the parameter pointers passed in to my_strcasecmp_8bit(). Anyone knows how to get around this problem? I installed the pre-compiled MySQL package on Solaris machine so don't necessarily have the source code to modify and rebuild the libmysqlclient_r.so.16.0.0 library.
any help is appreciated, thanks
ML




pen () from /homes/mlin/Qt-4.5.3/plugins/sqldrivers/libqsqlmysql.so
rocessEvents () from /homes/mlin/Qt-4.5.3/lib/libQtGui.so.4
Reply With Quote
Bookmarks