Sorry, it's seems like libmysql bug, not DBI.
With MySQL-5.5.7 everything works fine.
But after upgrade MySQL to version 5.5.8 (with reinstall DBD-mysql-4.017
to compile new
.../lib/perl5/site_perl/5.12.2/mach/auto/DBD/mysql/mysql.so) the problem
has returned again:
On FreeBSD 8.2-PRERELEASE:
$ perl -MDBI -MXML::LibXML -e '$sql=DBI->connect("DBI:mysql:test", "", "")'
DBI connect('test','',...) failed: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (2) at -e line 1
Segmentation fault (core dumped)
$
On FreeBSD 8.2-RC1:
$ perl -MDBI -MXML::LibXML -e '$sql=DBI->connect("DBI:mysql:test", "", "");'
DBI connect('test','',...) failed: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (2) at -e line 1
Bus error (core dumped)
$
Without XML::LibXML:
$ perl -MDBI -e '$sql=DBI->connect("DBI:mysql:test", "", ""); print "OK\n"'
DBI connect('test','',...) failed: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (2) at -e line 1
OK
$
(no problems....)
13.01.2011 16:46, h.m.brand@xs4all.nl via RT пишет:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=64743>
>
> On Thu, 13 Jan 2011 08:15:59 -0500, "Vladimir D Belousov via RT"
> <bug-DBI@rt.cpan.org> wrote:
>
>> OS: FreeBSD 8.2-RC1 amd64 (default kernel& env:
>> root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC)
>>
>> Perl: This is perl 5, version 12, subversion 2 (v5.12.2) built for
>> amd64-freebsd
>>
>> Perl modules:
>> DBI-1.615
>> DBD-mysql-4.017
>> mysql-client-5.5.8_2
>> XML-LibXML-1.70
>> libxml2-2.7.8_1
>>
>> How to repeat:
>> $ perl -MDBI -MXML::LibXML -e'my$db=DBI->connect("DBI:mysql:test","","")'
>> Bus error (core dumped)
> I've tested as follows:
>
> $ perl -Mautodie -MDBI -MXML::LibXML -we'my$db=DBI->connect("DBI:mysql:test","","")'
>
> PASSes on both these two OpenSUSE boxes:
> ---
> openSUSE 11.2 "Emerald"
> Linux 2.6.31.14-0.4-default/#1 HP xw6400 Xeon(R) CPU E5320 @ 1.86GHz/1596(4) x86_64 3962 Mb
> mysql-client-5.1.49-0.1.1.x86_64
> mysql Ver 14.14 Distrib 5.1.49, for suse-linux-gnu (x86_64) using readline 6.0
> libxml2-2.7.7-3.3.x86_64
>
> $ perl -MV=autodie,DBI,XML::LibXML
> autodie
> /pro/lib/perl5/5.10.1/autodie.pm: 2.10
> DBI
> /pro/lib/perl5/site_perl/5.10.1/x86_64-linux/DBI.pm: 1.616
> XML::LibXML
> /pro/lib/perl5/site_perl/5.10.1/x86_64-linux/XML/LibXML.pm: 1.70
> ---
> openSUSE 11.3 "Teal"
> Linux 2.6.34.7-0.7-desktop/#1 HP EliteBook 8540p Core(TM) i5 CPU M 540 @ 2.53GHz/1199(4) i686 3868 Mb
> mysql-community-server-client-5.1.46-2.18.i586
> mysql Ver 14.14 Distrib 5.1.46, for suse-linux-gnu (i686) using readline 6.1
> libxml2-2.7.7-4.3.1.i586
>
> $ perl -MV=autodie,DBI,XML::LibXML
> autodie
> /pro/lib/perl5/5.12.2/autodie.pm: 2.10
> DBI
> /pro/lib/perl5/site_perl/5.12.2/i686-linux-64int-ld/DBI.pm: 1.616
> XML::LibXML
> /pro/lib/perl5/site_perl/5.12.2/i686-linux-64int-ld/XML/LibXML.pm: 1.70
>