furagu has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!
I have a very strange problem, my code produces a segmentation fault. Here is the sample code to reproduce the problem:
#!/usr/bin/perl use DBI; use XML::LibXML; my $dbh = DBI->connect('DBI:Pg:dbname=mydb', 'user', 'password'); or die $DBI::errstr;
And the output is
Segmentation fault: 11 (core dumped)
I've figured that commenting out "use XML::LibXML;" makes the code work. Have no idea of what's going on :(
I have perl 5.10.1 under amd64-freebsd 8.0
The libraries are the latest versions installed from ports:
XML::LibXML 1.88,1
DBI 1.617
DBD::Pg 2.18.1_1
libxml2 2.7.8_1
Can somebody help me with this weird problem?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Segmentation fault in DBI + XML::LibXML
by perl514 (Pilgrim) on Feb 01, 2012 at 19:02 UTC | |
by furagu (Initiate) on Feb 02, 2012 at 03:13 UTC | |
Re: Segmentation fault in DBI + XML::LibXML
by mje (Curate) on Feb 02, 2012 at 08:14 UTC | |
Re: Segmentation fault in DBI + XML::LibXML
by furagu (Initiate) on Feb 05, 2012 at 17:39 UTC | |
Re: Segmentation fault in DBI + XML::LibXML
by Anonymous Monk on Feb 02, 2012 at 03:05 UTC |
Back to
Seekers of Perl Wisdom