Re: DBD::Sybase on freetds on Linux crashes given empty string
Michael Peppler <[email protected]> Thu, 26 Mar 2009 21:18:10 +0100
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
On Mar 26, 2009, at 7:13 PM, Ed Avis wrote:
> 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?
>
I'll try it tomorrow - but the problem could also be in DBI.
However, from the stack trace this would appear to be in perl itself.
Michael
--
Michael Peppler - Peppler Consulting
SaRL
[email protected] - http://www.peppler.org
Sybase DBA/Developer - TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ - http://www.peppler.org/FAQ/linux.html