5 messages in com.mysql.lists.perlRe: bug: segfaults with mysql_read_de...| From | Sent On | Attachments |
|---|---|---|
| Christian Hammers | 10 Mar 2002 13:26 | |
| Sinisa Milivojevic | 11 Mar 2002 06:10 | |
| Christian Hammers | 11 Mar 2002 06:21 | |
| Sinisa Milivojevic | 11 Mar 2002 08:00 | |
| Michael Widenius | 18 Mar 2002 14:26 |
| Subject: | Re: bug: segfaults with mysql_read_default_group!![]() |
|---|---|
| From: | Sinisa Milivojevic (sin...@mysql.com) |
| Date: | 03/11/2002 06:10:46 AM |
| List: | com.mysql.lists.perl |
Christian Hammers writes:
Hello
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).
bye,
-christian-
There is no section "ch" in /etc/mysql/my.cnf and no ~ch/.my.cnf. The same problem also occurs in mysqlhotcopy which looks for a section of this name.
$ cat t.pl #!/usr/bin/perl use DBI; $dbh = DBI->connect("dbi:mysql:test:mysql_read_default_group=ch","ch","");
$ ./t.pl ... open("/etc/mysql/my.cnf", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000 read(3, "# You can copy this to one of:\n#"..., 4096) = 1892 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40026000, 4096) = 0 open("/var/lib/mysql/my.cnf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/home/ch/.my.cnf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++
Sorry, but, I could not trace the above code in mysqlhotcopy ....
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},
-- Regards, __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <sin...@mysql.com> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus <___/ www.mysql.com




