DBD::Sybase on freetds on Linux crashes given empty string
Ed Avis <[email protected]> Thu, 26 Mar 2009 18:13:14 +0000 (UTC)
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
I have DBD::Sybase 1.09 and freetds 0.82 on Fedora Linux 10. I find that trying
to execute an empty SQL string crashes, for example
use DBI;
use DBD::Sybase;
my $dbh
= DBI->connect("dbi:Sybase:MY_SERVER", 'username', 'password');
$dbh->do('');
produces some output like
*** glibc detected *** perl: free(): invalid next size (fast): 0x08f472d8 ***
======= Backtrace: =========
/lib/libc.so.6[0x19a3a4]
/lib/libc.so.6(cfree+0x96)[0x19c356]
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/libperl.so
(truncated)
Can anyone else reproduce this? Is the bug likely to be in freetds or in
DBD::Sybase?
--
Ed Avis <[email protected]>