dbTalk Databases Forums  

do not set opt_read_default_file in Connector::connect - it causes

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss do not set opt_read_default_file in Connector::connect - it causes in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
virtan
 
Posts: n/a

Default do not set opt_read_default_file in Connector::connect - it causes - 02-16-2006 , 04:34 AM






Hi.

Setting opt_read_default_file causes SIGSEGV in mysqlclient_r on debian sarge
during mysql_real_connect() in some cases.

This is a stack in the moment of SIGSEGV:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1121786800 (LWP 18492)]
0x4240032f in my_stat () from /usr/lib/libmysqlclient_r.so.14
(gdb) bt
#0 0x4240032f in my_stat () from /usr/lib/libmysqlclient_r.so.14
#1 0x423f6b6c in free_defaults () from /usr/lib/libmysqlclient_r.so.14
#2 0x423f6a61 in free_defaults () from /usr/lib/libmysqlclient_r.so.14
#3 0x423f686a in load_defaults () from /usr/lib/libmysqlclient_r.so.14
#4 0x42412e2d in mysql_read_default_options () from
/usr/lib/libmysqlclient_r.so.14
#5 0x42413ba1 in mysql_real_connect () from /usr/lib/libmysqlclient_r.so.14
#6 0x419c9f7c in mysqlpp::Connection::connect (this=0x41a021b4,
db=0x41a00e94 "test", host=0x41a00eac "localhost",
user=0x41a00edc "virtan", passwd=0x400fee8c "", port=3306, compress=0
'\0', connect_timeout=5, socket_name=0x0,
client_flag=0) at connection.cpp:169
<...>

[virtan@virtan ~/tmp] dpkg -S /usr/lib/libmysqlclient_r.so.14
libmysqlclient14: /usr/lib/libmysqlclient_r.so.14


Is this option really need to be set by default ?

--
virtan
virtan (AT) virtan (DOT) com
http://www.virtan.com

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.