I'm having trouble with perl dumping core with a *very* basic
DBD::Sybase script. Here is the output from the script:
$ ./syb.pl
Segmentation fault (core dumped)
$
Here it is in the debugger:
$ perl -d ./syb.pl
Loading DB routines from perl5db.pl version 1.0402
Emacs support available.
Enter h or `h h' for help.
main::(./syb.pl:6): my $dbh =
DBI->connect("dbi:Sybase:server=WEBBER1192","acs","foobar");
DB<1> n
Signal SEGV at /usr/lib/perl5/site_perl/5.005/i386-linux/DBI.pm line 495
DBI::install_driver('DBI', 'Sybase') called at
/usr/lib/perl5/site_perl/5.005/i386-linux/DBI.pm line 414
DBI::connect('DBI', 'dbi:Sybase:server=WEBBER1192', 'acs',
'foobar') called at ./syb.pl line 6
Aborted (core dumped)
$
I am on RH Linux 6.2 (2.2.5) with perl 5.005_03. DBD-Sybase-0.93
statically linked and DBI-1.19.
Oh, yeah...here's the script:
#!/usr/bin/perl
use DBI;
my $dbh = DBI->connect("dbi:Sybase:server=WEBBER1192","foo","bar");
my $sth = $dbh->prepare ("select name from syslogins");
$sth->execute();
while ( @row= $sth->fetchrow_array) {
print @row , "\n";
}
exit;
Thanks for any help.
Patrick