Christian Hammers writes: > On Mon, Mar 11, 2002 at 04:11:08PM +0200, Sinisa Milivojevic wrote: > > > There is a problem with the myslq_read_default_group function! > > > It's DBI 1.21, DBD::MySQL 1.2216 and mysql-3.23.49, compiled on the very > > > latest Debian unstable (I'm the mysql maintainer of Debian). > > > This is the only code that I found in latest version of this program > > that has anything to do with options : > > > > my $dbh = DBI->connect("dbi:mysql:$dsn;mysql_read_default_group=mysqlhotcopy", > > $opt{user}, $opt{password}, > Yes, this line and every other perl script that uses the > mysql_read_default_group option segfaults on its invocation. Maybe it's a > problem specific to our Debian library version but we should try to track > it down nevertheless. > > Can you tell me how to make a little C programm with this option then > we have a change to use gdb to track down the crashing function. > > bye, > > -christian- > >
Sure. You only need to have a program with following functions : MYSQL mysql,*sock; mysql_init(&mysql); load_defaults(...........); // set groups to "client" and "mysqlhotcopy"... // take a look at mysql.cc on how to do that. if (!(sock = mysql_real_connect(&mysql,NULL,0,0,argv[1],0,NULL,0))) exit(1); Of course, you should set parameters correctly, but that is not difficult, I hope. Judging by the trace output, it looks like an error in your libmysqlclient library. Let us know, please how we can help you further, as we would also like that Debian builds our binary properly. Also, regarding other MySQL binaries, please follow instructions from our manual. Also, please change glibc to contain our modifications, or similar ones. This is very important for installations under heavy load. -- Regards, __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus <___/ 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