PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: DBD::Sybase on freetds on Linux crashes given empty string
Date: Mar 26 2009 8:18PM

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
mpeppler@peppler.org         -                     http://www.peppler.org
Sybase DBA/Developer         -      TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ          -      http://www.peppler.org/FAQ/linux.html