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: Ed Avis <eda at waniasset dot com>
Subject: DBD::Sybase on freetds on Linux crashes given empty string
Date: Mar 26 2009 6:13PM

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